From owner-freebsd-scsi@FreeBSD.ORG Thu Sep 25 00:58:32 2014 Return-Path: Delivered-To: freebsd-scsi@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 2F99D2E6 for ; Thu, 25 Sep 2014 00:58:32 +0000 (UTC) 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 mx1.freebsd.org (Postfix) with ESMTPS id 16001622 for ; Thu, 25 Sep 2014 00:58:32 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id s8P0wVVV094883 for ; Thu, 25 Sep 2014 00:58:31 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-scsi@FreeBSD.org Subject: [Bug 193696] CAM AC_FOUND_DEVICE calls malloc(M_WAITOK) from THREAD_NO_SLEEPING() context Date: Thu, 25 Sep 2014 00:58:32 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.0-CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: bdrewery@FreeBSD.org X-Bugzilla-Status: Needs Triage X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-scsi@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Sep 2014 00:58:32 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=193696 --- Comment #6 from Bryan Drewery --- Trace from xpt_done_td from pulling a device out of the system: KASSERT failed: malloc(M_WAITOK) in no_sleeping context KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe349829a340 kdb_backtrace() at kdb_backtrace+0x39/frame 0xfffffe349829a3f0 _kassert_panic() at _kassert_panic+0xd7/frame 0xfffffe349829a470 malloc() at malloc+0x2e4/frame 0xfffffe349829a4c0 g_post_event_x() at g_post_event_x+0x84/frame 0xfffffe349829a510 g_post_event() at g_post_event+0x5d/frame 0xfffffe349829a580 adacleanup() at adacleanup+0x62/frame 0xfffffe349829a5a0 cam_periph_release_locked_buses() at cam_periph_release_locked_buses+0xde/frame 0xfffffe349829aaa0 cam_periph_release_locked() at cam_periph_release_locked+0x1b/frame 0xfffffe349829aac0 adadone() at adadone+0x26e/frame 0xfffffe349829ab20 xpt_done_process() at xpt_done_process+0x3a4/frame 0xfffffe349829ab60 xpt_done_td() at xpt_done_td+0x136/frame 0xfffffe349829abb0 fork_exit() at fork_exit+0x84/frame 0xfffffe349829abf0 fork_trampoline() at fork_trampoline+0xe/frame 0xfffffe349829abf0 -- You are receiving this mail because: You are the assignee for the bug.