From nobody Mon May 15 13:26:31 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 4QKgBH2H63z4Bc8q for ; Mon, 15 May 2023 13:26:31 +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 4QKgBH02Mlz4SC8 for ; Mon, 15 May 2023 13:26:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1684157191; 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=3MepR5DO6rpPwY6XqPKu5WgpjMZd55RQRTOsEmmImpc=; b=LBrmZenSefaLW6cHL6UqHCV8vkseESIe9Ud4dtH2xFqeUuNvXxbosVBbWc7U25R2aE1mH6 hL05BY6m9hvbc3eC+EwvzIbCoRaubgvCBbBLgLICB5fq9YrJfNyfyJWjK9Sj3SB3kFP9Ze ljgJA6MNKIClRj1AEG/EN9pG+nXgqyHgjxoFCnIUGrMLFMbeqIINMupkqEglwkhtrmCUEo OhxJc1vfG1AWGS2VEDJkURHqxeF4Fj+Xne3K6B6wJc1Qd05SHR6WVTWf78+GqY0pX377xn TZaaEmaMLFx2fovyUspbjyNMfdBM+VYB+hSTxmnETmOFESQ8aZPOHveS28g8Mw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1684157191; a=rsa-sha256; cv=none; b=YUnOHDQOVMaZMAalcQJJHOqZueeHgWwNmaNxZnA07WWp0abaoZ/lJbFBlu6YRzbw+LwkfW xe/xBp4yOguYILfUneXd5RToj3ngylFlWKYt8VIrI3fgajtAhUxOH3Rlh9NiTdMro5rbhY TCdYdDnzhFMb2Xv/xw0oEGxKjpTmM9Al3upTy1mJf325HLAS7+/qP44jdkO0l6igY6TFkV JRKqXmrjgPlgTzl2atgG8z1vpZ8Iptf7MHl8MiJbvo/tOqIa1UR393dvIgV9Dx5hz0+2X4 KCXf1bGIbaDZ+z8mO6rNPY8VFTqmQepleBfcybu2sKkVulZjenFm3kvMGRkhRg== 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 4QKgBG6F10zhYn for ; Mon, 15 May 2023 13:26:30 +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 34FDQUFv042901 for ; Mon, 15 May 2023 13:26:30 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 34FDQUTP042900 for bugs@FreeBSD.org; Mon, 15 May 2023 13:26:30 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 271438] panic due to memory corruption at zfs/disk probing stage during install of 20230504 snapshot Date: Mon, 15 May 2023 13:26:31 +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: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: bcran@FreeBSD.org 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=3D271438 Bug ID: 271438 Summary: panic due to memory corruption at zfs/disk probing stage during install of 20230504 snapshot Product: Base System Version: CURRENT Hardware: amd64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: bcran@FreeBSD.org Created attachment 242195 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D242195&action= =3Dedit dmesg from a dual-EPYC PowerEdge R7525 During an install of FreeBSD 14-CURRENT snapshot 20230504, my dual-EPYC PowerEdge R7525 system panics at the zfs/disk probing stage due to memory corruption. It appears to be because of memory corruption, because I've also seen it ca= use bsdinstall to simply segfault. I ended up working around the panic by disabling the mrsas controller during install, and re-enabling it later.=20 panic: mtx_lock() of spin mutex (null) @ /usr/src/sys/kern/kern_clock.c:269 cpuid =3D 67 time =3D 1683225642 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe037aa72= db0 vpanic() at vpanic+0x152/frame 0xfffffe037aa72e00 panic() at panic+0x43/frame 0xfffffe037aa72e60 __mtx_lock_flags() at __mtx_lock_flags+0x13b/frame 0xfffffe037aa72eb0 deadlkres() at deadlkres+0xef/frame 0xfffffe037aa72ef0 fork_exit() at fork_exit+0x80/frame 0xfffffe037aa72f30 fork_trampoline() at fork_trampoline+0xe/frame 0xfffffe037aa72f30 --- trap 0, rip =3D 0, rsp =3D 0, rbp =3D 0 --- KDB: enter: panic [ thread pid 0 tid 101238 ] Stopped at kdb_enter+0x32: movq $0,0xddd833(%rip) db> Start of dmesg: FreeBSD 14.0-CURRENT #0 main-n262746-4194bbb34c60: Thu May 4 08:05:46 UTC = 2023 root@releng1.nyi.freebsd.org:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64 FreeBSD clang version 15.0.7 (https://github.com/llvm/llvm-project.git llvmorg-15.0.7-0-g8dfdcc7b7bf6) WARNING: WITNESS option enabled, expect reduced performance. SRAT: Too many memory domains VT(efifb): resolution 1024x768 CPU: AMD EPYC 7713 64-Core Processor (1996.32-MHz K8-class CPU) Origin=3D"AuthenticAMD" Id=3D0xa00f11 Family=3D0x19 Model=3D0x1 Steppi= ng=3D1 Features=3D0x178bfbff Features2=3D0x7efa320b AMD Features=3D0x2e500800 AMD Features2=3D0x75c237ff Structured Extended Features=3D0x219c97a9 Structured Extended Features2=3D0x40069c Structured Extended Features3=3D0x10 XSAVE Features=3D0xf AMD Extended Feature Extensions ID EBX=3D0x91bef75f SVM: NP,NRIP,VClean,AFlush,DAssist,NAsids=3D32768 TSC: P-state invariant, performance statistics real memory =3D 277021196288 (264188 MB) avail memory =3D 266164191232 (253833 MB) disk info: root@:~ # gpart show =3D> 6 233308149 nvd0 GPT (890G) 6 233308149 - free - (890G) =3D> 6 233308149 diskid/DISK-S61ANA0R100142 GPT (890G) 6 233308149 - free - (890G) =3D> 34 937571901 ada0 GPT (447G) 34 2014 - free - (1.0M) 2048 937568256 1 ms-basic-data (447G) 937570304 1631 - free - (816K) =3D> 34 937571901 diskid/DISK-74ff0e529b990010 GPT (447G) 34 2014 - free - (1.0M) 2048 937568256 1 ms-basic-data (447G) 937570304 1631 - free - (816K) =3D> 34 3125627501 da0 GPT (1.5T) 34 2014 - free - (1.0M) 2048 1048576 1 efi (512M) 1050624 2929686528 2 linux-data (1.4T) 2930737152 62500864 3 linux-swap (30G) 2993238016 132389519 - free - (63G) =3D> 34 3125627501 da1 GPT (1.5T) 34 2014 - free - (1.0M) 2048 32768 1 ms-reserved (16M) 34816 3125592064 2 ms-basic-data (1.5T) 3125626880 655 - free - (328K) =3D> 34 3125627501 diskid/DISK-S61ENE0R302148 GPT (1.5T) 34 2014 - free - (1.0M) 2048 1048576 1 efi (512M) 1050624 2929686528 2 linux-data (1.4T) 2930737152 62500864 3 linux-swap (30G) 2993238016 132389519 - free - (63G) =3D> 34 3125627501 diskid/DISK-202229EBAC90 GPT (1.5T) 34 2014 - free - (1.0M) 2048 32768 1 ms-reserved (16M) 34816 3125592064 2 ms-basic-data (1.5T) 3125626880 655 - free - (328K) =3D> 17 544157 cd0 MBR (1.0G) 17 544157 - free - (1.0G) =3D> 17 544157 iso9660/14_0_CURRENT_AMD64_CD MBR (1.0G) 17 544157 - free - (1.0G) --=20 You are receiving this mail because: You are the assignee for the bug.=