Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Sep 2019 10:33:40 +0000
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
Message-ID:  <bug-240917-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
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<value optimized out>, ap=3D<value
optimized out>)=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<value optimized out>)
    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<value optimized out>, v=3D=
<value
optimized out>, opts=3D<value optimized out>,=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20
    file=3D<value optimized out>, line=3D<value optimized out>) 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<value optimized out>)=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<value optimized out>,
start_device=3D<value optimized out>,=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<value optimized out>,=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 <xpt_async_process_tgt>, 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<value optimized out>,
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 <xpt_done=
_td>,
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 <return> to continue, or q <return> 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.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-240917-227>