From nobody Sat Aug 24 14:57:07 2024 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 4Wrg5H6DFYz5TGbS for ; Sat, 24 Aug 2024 14:57:07 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Wrg5H40Wsz46BT for ; Sat, 24 Aug 2024 14:57:07 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1724511427; a=rsa-sha256; cv=none; b=HMNWhKO2o8LMr3fEXSkbZ0EQDLBQkTD2j68/0Pf5QpBJPdAEqsMSdOXU6ZRQSJTYLQqO5p 93Ql+pyVMvDWMbS9G6N1Rq8vzfppQwRy0rtpAerwt8t5pB59MOyyqEyPEQYT4wWl+Lk2bH jpRPLMVfTNWisqAhN/ciS57ty/kdtk82DzovdIrg72raO6AlyQO970TAvbue6Ym1EAFTdi IhDLjgV3Hq7n3N25Gt1KSvVH+o8aXhrVQheSWo+ky2x1lg6i0XbDhBQ94hrkuCaB0BD2nw Xefz4JxFvegJB0vwQ+7c5GjbqDqs/sre9UTZjJ7HwC3FBsgvDedDGsHJ1OPJ4w== 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=1724511427; 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; bh=ISuWhKd6wiYt35Pit4X1pTgaEhw7rzQ7VgipuFlx05Y=; b=cLfOR+6FglMeWLio7P1CenvLNBL1cGNr1WJbO5EcFVa2a6hm3/eTlds2sRjdRZFN0zmHpZ 3QLRkJHSn+VJwZPVoL9463H7HMVN0FC41kzcfvthuv3WrgacSJelDVTnvBrHN3K9ow0T9S s4nxOZHzftka0Fz5u/DQHr/Kn7JmTrhlGm0pC11YdqGXDDaGxPA9qzFBCT0Ak/HuBHH+dO 2S6E7C0ZjtZjToZz5Sjs8KawlvIduG98ZxeYirsnchhCt0K4ZNab/jDekXTo6hc+dhdMxC nnQn7j6kwW5CMlqvtv+9kE3aGZaFLeqjQR0rrVYWIvELU/8Kz+Y84dHaKdJm4Q== 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 4Wrg5H3YtQzylZ for ; Sat, 24 Aug 2024 14:57:07 +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 47OEv7Qg059964 for ; Sat, 24 Aug 2024 14:57:07 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 47OEv7ue059962 for bugs@FreeBSD.org; Sat, 24 Aug 2024 14:57:07 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 281035] agp driver kernel panic on 14.1 - agp_close(): page fault while in kernel mode Date: Sat, 24 Aug 2024 14:57:07 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 14.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: doktornotor@mailinator.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter attachments.created Message-ID: 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=3D281035 Bug ID: 281035 Summary: agp driver kernel panic on 14.1 - agp_close(): page fault while in kernel mode Product: Base System Version: 14.1-RELEASE Hardware: amd64 OS: Any Status: New Severity: Affects Some People Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: doktornotor@mailinator.com Created attachment 253058 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D253058&action= =3Dedit Boot log with the agp_close() kernel panic and backtrace Poking /dev/agpgart is enough to trigger kernel panic via loaded agp(4) dri= ver [0]. While this was originally discovered by running > env ZPOOL_IMPORT_PATH=3D/dev zpool import -Na which in turn tries to openat(2) everything under /dev tree including /dev/agpgart, which then triggers agp_close() [1] call in the driver, and t= hen you get kernel panic. Attached there is a boot log including the moment whe= re the system crashes, that is when the above zpool import is called.) I believe simply doing=20 > echo > /dev/agpgart will do the same job - feel feel to try if you have some vintage hardware to crash. ***=20 Note: I do NOT have any hardware to reproduce, test any fixes or whatever e= lse here, provide core dumps or whatever similar. However, this was reproduced = by multiple users [2] and caused completely unexpected fatal system crashes. *** Recompiling the kernel without the agp(4) driver avoids this issue. Also, u= sing=20 > set hint.agp.0.disabled=3D1 at loader prompt avoids the issue (also confirmed by multiple users). Suggestion: Perhaps follow the kernel warning > WARNING: Device "agp" is Giant locked and may be deleted before FreeBSD 1= 5.0. and delete the driver from FreeBSD as soon as practicable. Having it in ker= nel in this state is doing more harm than good. (There is also another bug unso= lved and open since 2014, which also results in unbootable systems [3]). [0] https://man.freebsd.org/cgi/man.cgi?query=3Dagp&sektion=3D4&format=3Dht= ml [1] https://github.com/freebsd/freebsd-src/blob/5cbb98c8259c48ba22c8359f4c14f54= 38329ce58/sys/dev/agp/agp.c#L829 [2] https://forum.opnsense.org/index.php?topic=3D42373.0 [3] https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D187015 --=20 You are receiving this mail because: You are the assignee for the bug.=