From nobody Mon Aug 02 12:27:20 2021 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 A22B012D9873 for ; Mon, 2 Aug 2021 12:27:20 +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 4GdchS45X3z3r7m for ; Mon, 2 Aug 2021 12:27:20 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) 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 71AD51F660 for ; Mon, 2 Aug 2021 12:27:20 +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 172CRKu5019324 for ; Mon, 2 Aug 2021 12:27:20 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 172CRKXa019323 for bugs@FreeBSD.org; Mon, 2 Aug 2021 12:27:20 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 257557] Garbage on disk (or USB memory stick) can cause GEOM taste ffs_sbget() to crash. Date: Mon, 02 Aug 2021 12:27:20 +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: 13.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: rtm@lcs.mit.edu 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 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D257557 Bug ID: 257557 Summary: Garbage on disk (or USB memory stick) can cause GEOM taste ffs_sbget() to crash. Product: Base System Version: 13.0-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: rtm@lcs.mit.edu Created attachment 226873 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D226873&action= =3Dedit A usb key image that causes a kernel page fault. A USB memory stick with the attached content, if inserted in my 13.0-RELEASE-p3 amd64 machine, causes a crash. Here's a kernel backtrace: panic: vm_fault_lookup: fault on nofault entry, addr: 0xfffffe0009409000 cpuid =3D 0 time =3D 1627895621 KDB: stack backtrace: #0 0xffffffff80c57515 at kdb_backtrace+0x65 #1 0xffffffff80c09ef1 at vpanic+0x181 #2 0xffffffff80c09d63 at panic+0x43 #3 0xffffffff80f289ab at vm_fault+0x144b #4 0xffffffff80f27481 at vm_fault_trap+0xb1 #5 0xffffffff8108b3b8 at trap_pfault+0x1f8 #6 0xffffffff8108a86d at trap+0x27d #7 0xffffffff81061978 at calltrap+0x8 #8 0xffffffff80efc974 at ffs_sbget+0x3c4 #9 0xffffffff80b54a77 at g_label_ufs_taste_common+0x57 #10 0xffffffff80b533af at g_label_taste+0x1df #11 0xffffffff80b51aba at g_new_provider_event+0x7a #12 0xffffffff80b4cc3e at g_run_events+0x12e #13 0xffffffff80bc7e2e at fork_exit+0x7e #14 0xffffffff810629fe at fork_trampoline+0xe You can also get the crash with % sudo mdconfig -f fat12.img fat12.img contains garbage that apparently looks enough like an FFS file system that GEOM taste's call to ffs_sbget() proceeds, but then crashes near the end. --=20 You are receiving this mail because: You are the assignee for the bug.=