From owner-freebsd-bugs@freebsd.org Sun Oct 7 20:05:17 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 01DE510CB35D for ; Sun, 7 Oct 2018 20:05:17 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 92612927AD for ; Sun, 7 Oct 2018 20:05:16 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 5663A10CB35C; Sun, 7 Oct 2018 20:05:16 +0000 (UTC) Delivered-To: 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 1C51E10CB35B for ; Sun, 7 Oct 2018 20:05:16 +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 AFDFF927AC for ; Sun, 7 Oct 2018 20:05:15 +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 E32FF1D625 for ; Sun, 7 Oct 2018 20:05:14 +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 w97K5Eul052372 for ; Sun, 7 Oct 2018 20:05:14 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w97K5E0L052371 for bugs@FreeBSD.org; Sun, 7 Oct 2018 20:05:14 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 232044] [panic] sleepq_add: ...with sleeping prohibited after ejecting ODD/DVD media [cdcheckmedia() cam_periph_runccb()] Date: Sun, 07 Oct 2018 20:05:14 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT 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.27 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Oct 2018 20:05:17 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D232044 Bug ID: 232044 Summary: [panic] sleepq_add: ...with sleeping prohibited after ejecting ODD/DVD media [cdcheckmedia() cam_periph_runccb()] Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: bugzilla.freebsd@omnilan.de Hello, the following panic happens immediately after I eject ODD media on 12.0_ALP= HA8 #0 r339222M: panic: sleepq_add: td 0xfffff80002760580 to sleep on wchan 0xfffff8000a9050= 48 with sleeping prohibited cpuid =3D 0 time =3D 1538941032 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe00004e2= 610 vpanic() at vpanic+0x1a3/frame 0xfffffe00004e2670 panic() at panic+0x43/frame 0xfffffe00004e26d0 sleepq_add() at sleepq_add+0x32c/frame 0xfffffe00004e2720 _sleep() at _sleep+0x261/frame 0xfffffe00004e27c0 cam_periph_runccb() at cam_periph_runccb+0x18d/frame 0xfffffe00004e2910 cdcheckmedia() at cdcheckmedia+0x8a/frame 0xfffffe00004e2990 cdstrategy() at cdstrategy+0x55/frame 0xfffffe00004e29c0 g_disk_start() at g_disk_start+0x334/frame 0xfffffe00004e2a20 g_io_schedule_down() at g_io_schedule_down+0x105/frame 0xfffffe00004e2a60 g_down_procbody() at g_down_procbody+0x6d/frame 0xfffffe00004e2a70 fork_exit() at fork_exit+0x84/frame 0xfffffe00004e2ab0 fork_trampoline() at fork_trampoline+0xe/frame 0xfffffe00004e2ab0 --- trap 0, rip =3D 0, rsp =3D 0, rbp =3D 0 --- KDB: enter: panic #10 0xffffffff80592083 in panic (fmt=3D) at /usr/src/sys/kern/kern_shutdown.c:799 #11 0xffffffff805e748c in sleepq_add (wchan=3D0xfffff8000a905048, lock=3D0xfffff8000a94dcd0, wmesg=3D0xffffffff809cdf89 "cbwait",=20 flags=3D0, queue=3D0) at /usr/src/sys/kern/subr_sleepqueue.c:319 #12 0xffffffff8059ccd1 in _sleep (ident=3D0xfffff8000a905048, lock=3D, priority=3D92,=20 wmesg=3D0xffffffff809cdf89 "cbwait", sbt=3D, pr=3D= 0, flags=3D256) at /usr/src/sys/kern/kern_synch.c:201 #13 0xffffffff802ba7ed in cam_periph_runccb (ccb=3D0xfffff8000a905000, error_routine=3D0xffffffff802e10e0 ,=20 camflags=3DCAM_RETRY_SELTO, sense_flags=3D3, ds=3D0xfffff8000aa7fc60) at /usr/src/sys/cam/cam_periph.c:1141 #14 0xffffffff802e09ea in cdcheckmedia (periph=3D0xfffff8000ad44300) at /usr/src/sys/cam/scsi/scsi_cd.c:821 #15 0xffffffff802dd125 in cdstrategy (bp=3D0xfffff8000aa2f600) at /usr/src/sys/cam/scsi/scsi_cd.c:861 #16 0xffffffff8050eb54 in g_disk_start (bp=3D) at /usr/src/sys/geom/geom_disk.c:478 #17 0xffffffff80512575 in g_io_schedule_down (tp=3D) at /usr/src/sys/geom/geom_io.c:893 #18 0xffffffff80512d6d in g_down_procbody (arg=3D) at /usr/src/sys/geom/geom_kern.c:111 #19 0xffffffff8055a5d4 in fork_exit (callout=3D0xffffffff80512d00 , arg=3D0x0, frame=3D0xfffffe00004e2ac0) at /usr/src/sys/kern/kern_fork.c:1057 #20 0xffffffff808b917e in fork_trampoline () at /usr/src/sys/amd64/amd64/exception.S:993 #21 0x0000000000000000 in ?? () I've no idea where to start, hope this is trivial to fix before 12.0-releas= e. -harry --=20 You are receiving this mail because: You are the assignee for the bug.=