From owner-freebsd-bugs@freebsd.org Tue Mar 13 16:55:20 2018 Return-Path: Delivered-To: freebsd-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5FF3CF31C15 for ; Tue, 13 Mar 2018 16:55:20 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id F340C68C20 for ; Tue, 13 Mar 2018 16:55:19 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 2B51E238F5 for ; Tue, 13 Mar 2018 16:55:19 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w2DGtItJ045018 for ; Tue, 13 Mar 2018 16:55:18 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w2DGtIPb045017 for freebsd-bugs@FreeBSD.org; Tue, 13 Mar 2018 16:55:18 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: freebsd-bugs@FreeBSD.org Subject: [Bug 226578] panic: _mtx_lock_sleep: recursed on non-recursive mutex CAM device lock @ /usr/home/trasz/svn-ssh/head/sys/cam/scsi/scsi_da.c:2042 Date: Tue, 13 Mar 2018 16:55:19 +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: trasz@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-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.25 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Mar 2018 16:55:20 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D226578 Bug ID: 226578 Summary: panic: _mtx_lock_sleep: recursed on non-recursive mutex CAM device lock @ /usr/home/trasz/svn-ssh/head/sys/cam/scsi/scsi_da.c:20 42 Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: freebsd-bugs@FreeBSD.org Reporter: trasz@FreeBSD.org The current -CURRENT panics like this: Unread portion of the kernel message buffer: WARNING: 127.0.0.1 (iqn.2012-06.com.example:target0): connection error; reconnecting panic: _mtx_lock_sleep: recursed on non-recursive mutex CAM device lock @ /usr/home/trasz/svn-ssh/head/sys/cam/scsi/scsi_da.c:2042 cpuid =3D 3 time =3D 1520959743 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe00265b8= 5e0 vpanic() at vpanic+0x18d/frame 0xfffffe00265b8640 vpanic() at vpanic/frame 0xfffffe00265b86c0 __mtx_lock_sleep() at __mtx_lock_sleep+0x420/frame 0xfffffe00265b8750 __mtx_lock_flags() at __mtx_lock_flags+0xf9/frame 0xfffffe00265b87a0 daasync() at daasync+0x117/frame 0xfffffe00265b87f0 xpt_async_process_dev() at xpt_async_process_dev+0x162/frame 0xfffffe00265b= 8840 xptdevicetraverse() at xptdevicetraverse+0xa4/frame 0xfffffe00265b8890 xpttargettraverse() at xpttargettraverse+0x6b/frame 0xfffffe00265b88d0 xpt_async_process() at xpt_async_process+0x114/frame 0xfffffe00265b89e0 xpt_done_process() at xpt_done_process+0x390/frame 0xfffffe00265b8a20 xpt_done_td() at xpt_done_td+0xf6/frame 0xfffffe00265b8a70 fork_exit() at fork_exit+0x84/frame 0xfffffe00265b8ab0 fork_trampoline() at fork_trampoline+0xe/frame 0xfffffe00265b8ab0 --- trap 0, rip =3D 0, rsp =3D 0, rbp =3D 0 --- KDB: enter: panic __curthread () at ./machine/pcpu.h:230 230 __asm("movq %%gs:%1,%0" : "=3Dr" (td) (kgdb) #0 __curthread () at ./machine/pcpu.h:230 #1 doadump (textdump=3D0) at /usr/home/trasz/svn-ssh/head/sys/kern/kern_shutdown.c:347 #2 0xffffffff8040acfb in db_dump (dummy=3D,=20 dummy2=3D, dummy3=3D, dummy4=3D) at /usr/home/trasz/svn-ssh/head/sys/ddb/db_command.c:574 #3 0xffffffff8040aac9 in db_command (last_cmdp=3D,=20 cmd_table=3D, dopager=3D) at /usr/home/trasz/svn-ssh/head/sys/ddb/db_command.c:481 #4 0xffffffff8040a844 in db_command_loop () at /usr/home/trasz/svn-ssh/head/sys/ddb/db_command.c:534 #5 0xffffffff8040da6f in db_trap (type=3D, code=3D) at /usr/home/trasz/svn-ssh/head/sys/ddb/db_main.c:250 #6 0xffffffff80b192d3 in kdb_trap (type=3D3, code=3D-61456, tf=3D) at /usr/home/trasz/svn-ssh/head/sys/kern/subr_kdb.c:697 #7 0xffffffff80f8b868 in trap (frame=3D0xfffffe00265b8510) at /usr/home/trasz/svn-ssh/head/sys/amd64/amd64/trap.c:547 #8 #9 kdb_enter (why=3D0xffffffff811fcef3 "panic", msg=3D) at /usr/home/trasz/svn-ssh/head/sys/kern/subr_kdb.c:479 #10 0xffffffff80ad409a in vpanic (fmt=3D, ap=3D0xfffffe00265= b8680) at /usr/home/trasz/svn-ssh/head/sys/kern/kern_shutdown.c:801 #11 0xffffffff80ad3ef0 in kassert_panic ( fmt=3D0xffffffff81146b66 "_mtx_lock_sleep: recursed on non-recursive mu= tex %s @ %s:%d\n") at /usr/home/trasz/svn-ssh/head/sys/kern/kern_shutdown.c:698 #12 0xffffffff80ab3400 in __mtx_lock_sleep (c=3D0xfffff800054134e8,=20 v=3D18446735277674057728, opts=3D, file=3D,=20 line=3D32) at /usr/home/trasz/svn-ssh/head/sys/kern/kern_mutex.c:509 #13 0xffffffff80ab2f49 in __mtx_lock_flags (c=3D0xfffff800054134e8,=20 opts=3D, file=3D, line=3D) at /usr/home/trasz/svn-ssh/head/sys/kern/kern_mutex.c:255 #14 0xffffffff80366cf7 in daasync (callback_arg=3D0xfffff80005c76200,=20 code=3D16384, path=3D, arg=3D0xfffff800037f2800) at /usr/home/trasz/svn-ssh/head/sys/cam/scsi/scsi_da.c:2042 #15 0xffffffff80342462 in xpt_async_bcast (async_head=3D,=20 async_code=3D, path=3D,=20 async_arg=3D0xfffff800037f2800) at /usr/home/trasz/svn-ssh/head/sys/cam/cam_xpt.c:4408 #16 xpt_async_process_dev (device=3D, arg=3D) at /usr/home/trasz/svn-ssh/head/sys/cam/cam_xpt.c:4315 #17 0xffffffff80341304 in xptdevicetraverse (target=3D0xfffff80005961300,=20 start_device=3D, tr_func=3D0xfffff80005a89000,=20 arg=3D) at /usr/home/trasz/svn-ssh/head/sys/cam/cam_xpt.c:2339 #18 0xffffffff8034108b in xpttargettraverse (bus=3D0xfffff80005a05300,=20 start_target=3D,=20 tr_func=3D0xffffffff803422a0 ,=20 arg=3D0xfffff80005a89000) at /usr/home/trasz/svn-ssh/head/sys/cam/cam_xpt.c:2300 #19 0xffffffff8033dd44 in xpt_async_process (periph=3D,=20 ccb=3D0xfffff80005a89000) at /usr/home/trasz/svn-ssh/head/sys/cam/cam_xpt.c:4364 #20 0xffffffff8033e700 in xpt_done_process (ccb_h=3D0xfffff80005a89000) at /usr/home/trasz/svn-ssh/head/sys/cam/cam_xpt.c:5495 #21 0xffffffff80340786 in xpt_done_td (arg=3D0xffffffff81995000 ) at /usr/home/trasz/svn-ssh/head/sys/cam/cam_xpt.c:5522 #22 0xffffffff80a943d4 in fork_exit ( callout=3D0xffffffff80340690 ,=20 arg=3D0xffffffff81995000 , frame=3D0xfffffe00265b8ac0) at /usr/home/trasz/svn-ssh/head/sys/kern/kern_fork.c:1039 #23 (kgdb)=20 The way to reproduce it is to set up an iSCSI session, disconnect it in a l= oop ("while :; do ctladm isterminate -a; sleep 1; done"), while having "while := ; do diskinfo -t /dev/da0; done" running in another session. --=20 You are receiving this mail because: You are the assignee for the bug.=