From owner-freebsd-bugs@freebsd.org Mon Jun 1 09:46:46 2020 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 8E6E13302F5 for ; Mon, 1 Jun 2020 09:46:46 +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 49b9LG1bCwz4XBW for ; Mon, 1 Jun 2020 09:46:46 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 34C75330521; Mon, 1 Jun 2020 09:46:46 +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 348E3330345 for ; Mon, 1 Jun 2020 09:46:46 +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) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 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 49b9LG0l98z4XJx for ; Mon, 1 Jun 2020 09:46:46 +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.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 14FA992FA for ; Mon, 1 Jun 2020 09:46:46 +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 0519kjuQ093191 for ; Mon, 1 Jun 2020 09:46:45 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 0519kjff093190 for bugs@FreeBSD.org; Mon, 1 Jun 2020 09:46:45 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 204521] [new driver] [request] Port rtsx from OpenBSD to FreeBSD Date: Mon, 01 Jun 2020 09:46:41 +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: CURRENT X-Bugzilla-Keywords: feature, patch X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: jsm@FreeBSD.org X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: 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.33 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Jun 2020 09:46:46 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D204521 --- Comment #152 from Jesper Schmitz Mouridsen --- (In reply to hlh from comment #151) lock order reversal: (Giant after non-sleepable) 1st 0xfffff80004e0fc00 rtsx0 (rtsx) @ rtsx.c:513 2nd 0xffffffff81802500 Giant (Giant) @ /usr/src/sys/kern/kern_synch.c:228 stack backtrace: #0 0xffffffff80c2acc1 at witness_debugger+0x71 #1 0xffffffff80b9c844 at __mtx_lock_flags+0x94 #2 0xffffffff80bca5c6 at _sleep+0x366 #3 0xffffffff8071c341 at mmcsd_detach+0xe1 #4 0xffffffff80bf63ee at device_detach+0x18e #5 0xffffffff80bf60c5 at device_delete_child+0x15 #6 0xffffffff8071a0c7 at mmc_delete_cards+0x97 #7 0xffffffff80712e43 at mmc_detach+0x23 #8 0xffffffff80bf63ee at device_detach+0x18e #9 0xffffffff80bf60c5 at device_delete_child+0x15 #10 0xffffffff82322b0f at rtsx_card_task+0x1bf #11 0xffffffff80c1d5fa at taskqueue_run_locked+0xaa #12 0xffffffff80c1d50d at taskqueue_run+0x4d #13 0xffffffff80b7f379 at ithread_loop+0x279 #14 0xffffffff80b7bec0 at fork_exit+0x80 #15 0xffffffff81031aae at fork_trampoline+0xe uma_zalloc_debug: zone "256" with the following non-sleepable locks held: exclusive sleep mutex rtsx0 (rtsx) r =3D 0 (0xfffff80004e0fc00) locked @ rtsx.c:513 unlocking before delete_device_child as you noted fixes it --=20 You are receiving this mail because: You are the assignee for the bug.=