From owner-freebsd-bugs@freebsd.org Sun Sep 29 10:33:41 2019 Return-Path: Delivered-To: freebsd-bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 016A7FCA6F for ; Sun, 29 Sep 2019 10:33:41 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 46h21w6K9gz4RD2 for ; Sun, 29 Sep 2019 10:33:40 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id D6FECFCA6E; Sun, 29 Sep 2019 10:33:40 +0000 (UTC) Delivered-To: bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id D6BEAFCA6D for ; Sun, 29 Sep 2019 10:33:40 +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) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46h21w5DpPz4RD1 for ; Sun, 29 Sep 2019 10:33:40 +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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 9732A18CBA for ; Sun, 29 Sep 2019 10:33:40 +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 x8TAXe6t031587 for ; Sun, 29 Sep 2019 10:33:40 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x8TAXecP031586 for bugs@FreeBSD.org; Sun, 29 Sep 2019 10:33:40 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 240917] panic: (scsi_da.c:2128) _mtx_lock_sleep: recursed on non-recursive mutex CAM device lock Date: Sun, 29 Sep 2019 10:33:40 +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: 12.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: bugzilla.freebsd@omnilan.de 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 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 MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Sep 2019 10:33:41 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D240917 Bug ID: 240917 Summary: panic: (scsi_da.c:2128) _mtx_lock_sleep: recursed on non-recursive mutex CAM device lock Product: Base System Version: 12.1-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: bugzilla.freebsd@omnilan.de Hello, I'm getting a very similar panic on 12.1-BETA1 like this one: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D226578 panic: _mtx_lock_sleep: recursed on non-recursive mutex CAM device lock @ /usr/local/share/deploy-tools/RELENG_12_1/src/sys/cam/scsi/scs i_da.c:2128=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20 cpuid =3D 0=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20 time =3D 1569751253=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 KDB: stack backtrace:=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20 db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe0041383= 610=20=20 vpanic() at vpanic+0x19d/frame 0xfffffe0041383660 panic() at panic+0x43/frame 0xfffffe00413836c0 __mtx_lock_sleep() at __mtx_lock_sleep+0x4e1/frame 0xfffffe0041383750 __mtx_lock_flags() at __mtx_lock_flags+0xee/frame 0xfffffe00413837a0 daasync() at daasync+0x187/frame 0xfffffe00413837f0 xpt_async_process_dev() at xpt_async_process_dev+0x152/frame 0xfffffe004138= 3840=20 xptdevicetraverse() at xptdevicetraverse+0x13f/frame 0xfffffe0041383890 xpttargettraverse() at xpttargettraverse+0x6b/frame 0xfffffe00413838d0=20= =20=20=20=20=20=20=20=20=20 xpt_async_process() at xpt_async_process+0x2d4/frame 0xfffffe00413839e0 xpt_done_process() at xpt_done_process+0x388/frame 0xfffffe0041383a20=20=20= =20=20=20=20=20=20=20=20=20 xpt_done_td() at xpt_done_td+0xf6/frame 0xfffffe0041383a70 fork_exit() at fork_exit+0x84/frame 0xfffffe0041383ab0 fork_trampoline() at fork_trampoline+0xe/frame 0xfffffe0041383ab0=20=20=20= =20=20=20=20 --- trap 0, rip =3D 0, rsp =3D 0, rbp =3D 0 ---=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20 KDB: enter: panic #0 doadump (textdump=3D0) at RELENG_12_1/src/sys/amd64/include/pcpu.h:234 : : : #9 0xffffffff805cf53a in vpanic (fmt=3D, ap=3D)=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20 at /usr/local/share/deploy-tools/RELENG_12_1/src/sys/kern/kern_shutdown.c:869= =20=20=20=20=20=20 #10 0xffffffff805cf2e3 in panic (fmt=3D) at /usr/local/share/deploy-tools/RELENG_12_1/src/sys/kern/kern_shutdown.c:807= =20=20=20=20=20=20 #11 0xffffffff805b52d1 in __mtx_lock_sleep (c=3D, v=3D= , opts=3D,=20=20=20=20=20=20=20=20=20=20= =20=20=20=20 file=3D, line=3D) at /usr/local/share/deploy-tools/RELENG_12_1/src/sys/kern/kern_mutex.c:523=20 #12 0xffffffff805b4d7e in __mtx_lock_flags (c=3D0xfffff8000296ece8, opts=3D= 0,=20=20=20=20=20=20=20 file=3D0xffffffff80a68048 "/usr/local/share/deploy-tools/RELENG_12_1/src/sys/cam/scsi/scsi_da.c", line=3D2128)=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20 at /usr/local/share/deploy-tools/RELENG_12_1/src/sys/kern/kern_mutex.c:= 255=20=20 #13 0xffffffff8033b947 in daasync (callback_arg=3D0xfffff80003af2400, code= =3D16384, path=3D0xfffff8000276ab80, arg=3D0xfffff800037ea000)=20=20=20=20=20=20=20 at /usr/local/share/deploy-tools/RELENG_12_1/src/sys/cam/scsi/scsi_da.c:2128= =20=20=20=20=20=20=20 #14 0xffffffff802e48a2 in xpt_async_process_dev (device=3D0xfffff8000296e80= 0, arg=3D)=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 at /usr/local/share/deploy-tools/RELENG_12_1/src/sys/cam/cam_xpt.c:4426= =20=20=20=20=20 #15 0xffffffff802e37bf in xptdevicetraverse (target=3D, start_device=3D,=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20 tr_func=3D0xfffff80048287000, arg=3D0xfffff80048287000) at /usr/local/share/deploy-tools/RELENG_12_1/src/sys/cam/cam_xpt.c:2355=20=20= =20=20=20=20=20=20 #16 0xffffffff802e34ab in xpttargettraverse (bus=3D0xfffff8000234ac00, start_target=3D,=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 tr_func=3D0xffffffff802e46f0 , arg=3D0xfffff8004= 8287000)=20 at /usr/local/share/deploy-tools/RELENG_12_1/src/sys/cam/cam_xpt.c:2316= =20=20=20=20=20 #17 0xffffffff802e02c4 in xpt_async_process (periph=3D, ccb=3D0xfffff80048287000)=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 at /usr/local/share/deploy-tools/RELENG_12_1/src/sys/cam/cam_xpt.c:4382= =20=20=20=20=20 #18 0xffffffff802e0a88 in xpt_done_process (ccb_h=3D0xfffff80048287000)=20= =20=20=20=20=20=20=20=20=20=20 at /usr/local/share/deploy-tools/RELENG_12_1/src/sys/cam/cam_xpt.c:5516= =20=20=20=20=20 #19 0xffffffff802e2ba6 in xpt_done_td (arg=3D0xffffffff80d45300) at /usr/local/share/deploy-tools/RELENG_12_1/src/sys/cam/cam_xpt.c:5543=20 #20 0xffffffff805962e4 in fork_exit (callout=3D0xffffffff802e2ab0 , arg=3D0xffffffff80d45300, frame=3D0xfffffe0041383ac0)=20=20=20=20=20=20=20 at /usr/local/share/deploy-tools/RELENG_12_1/src/sys/kern/kern_fork.c:1= 065=20=20 ---Type to continue, or q to quit--- #21 0xffffffff80912e9e in fork_trampoline () at /usr/local/share/deploy-tools/RELENG_12_1/src/sys/amd64/amd64/exception.S:1= 077 #22 0x0000000000000000 in ?? () This bug report doesn't reference any commit. https://svnweb.freebsd.org/base?view=3Drevision&revision=3D331097 seems to = be the corresponding commit, and looking at the code, the proposed fix isn't applicable anymore. panic was cause by "camcontrol rescan 40" (scbus40 is on isp0 / FC). Thanks for taking care in advacnde. -Harry --=20 You are receiving this mail because: You are the assignee for the bug.=