From nobody Sat Aug 14 15:43:16 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 666BB17480E1 for ; Sat, 14 Aug 2021 15:43:16 +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 4Gn4T01tCGz4RZl for ; Sat, 14 Aug 2021 15:43:16 +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 28AF124BC1 for ; Sat, 14 Aug 2021 15:43:16 +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 17EFhGlL007786 for ; Sat, 14 Aug 2021 15:43:16 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 17EFhGnh007785 for bugs@FreeBSD.org; Sat, 14 Aug 2021 15:43:16 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 257838] Garbage on a memory stick can cause GEOM raid taste g_raid_tr_iostart() to page-fault. Date: Sat, 14 Aug 2021 15:43:16 +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 Only Me 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=3D257838 Bug ID: 257838 Summary: Garbage on a memory stick can cause GEOM raid taste g_raid_tr_iostart() to page-fault. Product: Base System Version: 13.0-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: rtm@lcs.mit.edu Created attachment 227185 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D227185&action= =3Dedit Causes a kernel page fault if placed at the end of a memory stick. If I dd the attached data to the end of a memory stick, or run mdconfig -f si160.img I get a kernel page fault on my 13.0-RELEASE-p3 machine: GEOM_RAID: SiI-36f0f5d40c31: Array SiI-36f0f5d40c31 created. GEOM_RAID: SiI-36f0f5d40c31: Disk md0 state changed from NONE to FAILED. GEOM_RAID: SiI-36f0f5d40c31: Subdisk @aA=C2=B8sD|/s:0-md0 state changed fro= m NONE to FAILED. GEOM_RAID: SiI-36f0f5d40c31: Array started. GEOM_RAID: SiI-36f0f5d40c31: Volume @aA=C2=B8sD|/s state changed from START= ING to SUBOPTIMAL. GEOM_RAID: SiI-36f0f5d40c31: Provider raid/r0 for volume @aA=C2=B8sD|/s cre= ated. GEOM_RAID: Warning! I/O request to an absent disk! [unknown][READ(offset=3D12642167526035968, length=3D-12642167526035968)] GEOM_RAID: Warning! I/O request to an absent disk! [unknown][READ(offset=3D= 0, length=3D0)] GEOM_RAID: Warning! I/O request to a disk in a wrong state (NONE)! [unknown][READ(offset=3D0, length=3D0)] Fatal trap 12: page fault while in kernel mode cpuid =3D 0; apic id =3D 00 fault virtual address =3D 0x78 fault code =3D supervisor write data, page not present instruction pointer =3D 0x20:0xffffffff80b618b8 stack pointer =3D 0x0:0xfffffe0063d5aa80 frame pointer =3D 0x0:0xfffffe0063d5aaa0 code segment =3D base 0x0, limit 0xfffff, type 0x1b =3D DPL 0, pres 1, long 1, def32 0, gran 1 processor eflags =3D interrupt enabled, resume, IOPL =3D 0 current process =3D 725 (g_raid SiI-36f0f5d4) trap number =3D 12 panic: page fault cpuid =3D 0 time =3D 1628953025 KDB: stack backtrace: #0 0xffffffff80c57515 at kdb_backtrace+0x65 #1 0xffffffff80c09ef1 at vpanic+0x181 #2 0xffffffff80c09d63 at panic+0x43 #3 0xffffffff8108b1b7 at trap_fatal+0x387 #4 0xffffffff8108b20f at trap_pfault+0x4f #5 0xffffffff8108a86d at trap+0x27d #6 0xffffffff810619a8 at calltrap+0x8 #7 0xffffffff80b843a4 at g_raid_tr_iostart_concat+0x244 #8 0xffffffff80b62c70 at g_raid_worker+0x530 #9 0xffffffff80bc7e2e at fork_exit+0x7e #10 0xffffffff81062a2e at fork_trampoline+0xe --=20 You are receiving this mail because: You are the assignee for the bug.=