From nobody Wed Oct 25 16:57:05 2023 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4SFw822Fnkz4xlBx for ; Wed, 25 Oct 2023 16:57:06 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4SFw82084gz4dNm for ; Wed, 25 Oct 2023 16:57:06 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1698253026; a=rsa-sha256; cv=none; b=DzfQL/9kV/PEXgr1eEtjqYS4EXVfTN0eVIrXXz073FNhjsryLLZMiNxj4FP6vG9oe1cp10 YNaHmLlFFY8SKshb/TXSJamabgZUmngKumGrXE87Cdo795gf9KV71O+DrLnG3xkaz5JWnl T6svSNC7QQdoEhDU7IUpWEeOA2rnQK4x4Aj5w/WD3bH/7zwCWrS0nPjgKkXPbOO/9uMr1A 5SK/XFb2SX3a8SNswkmxH4vlaaxHsrScs5hOVZIWQOB5ov0Mot9kmZi6eAbz/RIy3ictoI /OmWBhlV6XWmSFlnnNmj8NV9xOmeiDBNw140g9XDPtJlhQ18v/3jkXuDkEKVIg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1698253026; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=dGidkrtIlHUhxkmT6y6JoueWHbVEbXjlzSEYSUiFoTU=; b=sJTHjoZAfXIaYXt5r7jMqS40nOlH2HdM702KEggja6YwsDsULZITge9Fuk6KsWLrELHiIv 54Iv0n8ibplKPpVnwBf3vOcR332UuE3lqftnGMXaB6XI1sKYRr53N3TlciRg5G17MBJfRi WX0Fulfuwcc1Nh84bFzuqjXSWWERIgqo4qRhfMgk+yxf2FwJ42z4GXWzli0ilkzeooGkYW 7q1Q/jnAmHC2FhlSEosbMz3N8KI4rif1hJ6ha7uEfFfryg/67hMS0yrnVbth3P7t/OvKwX FwN30XHRt/w+VT6fPmxPROKajM6dr5zK2ZtSaSQkn45mpQ3inwvIztf/izL+Uw== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4SFw816GgWz1Bv8 for ; Wed, 25 Oct 2023 16:57:05 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 39PGv5eu090500 for ; Wed, 25 Oct 2023 16:57:05 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 39PGv5Rr090499 for bugs@FreeBSD.org; Wed, 25 Oct 2023 16:57:05 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 271333] kernel panic 13.2-RELEASE with drmn0: [drm] GPU HANG Date: Wed, 25 Oct 2023 16:57:05 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 13.2-RELEASE X-Bugzilla-Keywords: crash X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D271333 --- Comment #8 from commit-hook@FreeBSD.org --- A commit in branch releng/14.0 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3D87dbb943df73022dd98487c123aeb125d= a11c4af commit 87dbb943df73022dd98487c123aeb125da11c4af Author: Mark Johnston AuthorDate: 2023-10-17 14:26:18 +0000 Commit: Mark Johnston CommitDate: 2023-10-25 16:53:01 +0000 linuxkpi: Handle direct-mapped addresses in linux_free_kmem() See the analysis in PR 271333. It is possible for driver code to allocate a page, store its address as returned by page_address(), then call free_page() on that address. On most systems that'll result in the LinuxKPI calling kmem_free() with a direct-mapped address, which is not legal. Fix the problem by making linux_free_kmem() check the address to see whether it's direct-mapped or not, and handling it appropriately. Approved by: re (gjb) PR: 271333, 274515 Reviewed by: hselasky, bz Tested by: trasz MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D40028 (cherry picked from commit 6223d0b67af923f53d962a9bf594dc37004dffe8) (cherry picked from commit 4862eb8604d503b52e7c3aa7ff32155b75a1ff93) sys/compat/linuxkpi/common/src/linux_page.c | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) --=20 You are receiving this mail because: You are the assignee for the bug.=