From owner-freebsd-current@freebsd.org Sat Feb 27 08:13:47 2021 Return-Path: Delivered-To: freebsd-current@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 6A04B55FAAE for ; Sat, 27 Feb 2021 08:13:47 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.95.76.21]) (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 (2048 bits) client-digest SHA256) (Client CN "troutmask", Issuer "troutmask" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4DnfRt4ch0z4ZLG for ; Sat, 27 Feb 2021 08:13:46 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (localhost [127.0.0.1]) by troutmask.apl.washington.edu (8.16.1/8.16.1) with ESMTPS id 11R8Dhx4037153 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Sat, 27 Feb 2021 00:13:43 -0800 (PST) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.16.1/8.16.1/Submit) id 11R8DhIa037152; Sat, 27 Feb 2021 00:13:43 -0800 (PST) (envelope-from sgk) Date: Sat, 27 Feb 2021 00:13:43 -0800 From: Steve Kargl To: Warner Losh Cc: FreeBSD Current Subject: Re: cardbus panic Message-ID: <20210227081343.GA37119@troutmask.apl.washington.edu> References: <20210227044740.GA36584@troutmask.apl.washington.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Rspamd-Queue-Id: 4DnfRt4ch0z4ZLG X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=fail reason="No valid SPF, No valid DKIM" header.from=washington.edu (policy=none); spf=none (mx1.freebsd.org: domain of sgk@troutmask.apl.washington.edu has no SPF policy when checking 128.95.76.21) smtp.mailfrom=sgk@troutmask.apl.washington.edu X-Spamd-Result: default: False [-3.00 / 15.00]; RCVD_TLS_ALL(0.00)[]; ARC_NA(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[128.95.76.21:from]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; SPAMHAUS_ZRD(0.00)[128.95.76.21:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; NEURAL_HAM_SHORT(-1.00)[-1.000]; RCPT_COUNT_TWO(0.00)[2]; R_SPF_NA(0.00)[no SPF record]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:73, ipnet:128.95.0.0/16, country:US]; RCVD_COUNT_TWO(0.00)[2]; MAILMAN_DEST(0.00)[freebsd-current]; DMARC_POLICY_SOFTFAIL(0.10)[washington.edu : No valid SPF, No valid DKIM, none] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Feb 2021 08:13:47 -0000 That fixes the problem. Thanks for the quick response. -- steve On Sat, Feb 27, 2021 at 12:02:54AM -0700, Warner Losh wrote: > What does https://reviews.freebsd.org/D28963 do for you? > > Warner > > On Fri, Feb 26, 2021 at 9:48 PM Steve Kargl < > sgk@troutmask.apl.washington.edu> wrote: > > > Ejecting a D-Link DWL-G630 AirPlus G NIC leads to > > > > panic: mutex Giant not owned at /usr/src/sys/kern/subr_bus.c:3001 > > cpuid = 1 > > time = 1614400775 > > KDB: stack backtrace: > > db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame > > 0xfffffe0062fc3b40 > > vpanic() at vpanic+0x181/frame 0xfffffe0062fc3b90 > > panic() at panic+0x43/frame 0xfffffe0062fc3bf0 > > __mtx_assert() at __mtx_assert+0xb0/frame 0xfffffe0062fc3c00 > > device_detach() at device_detach+0x2e/frame 0xfffffe0062fc3c40 > > bus_generic_detach() at bus_generic_detach+0x38/frame 0xfffffe0062fc3c60 > > cardbus_detach_card() at cardbus_detach_card+0xf/frame 0xfffffe0062fc3c80 > > cbb_event_thread() at cbb_event_thread+0x1be/frame 0xfffffe0062fc3cf0 > > fork_exit() at fork_exit+0x80/frame 0xfffffe0062fc3d30 > > fork_trampoline() at fork_trampoline+0xe/frame 0xfffffe0062fc3d30 > > --- trap 0, rip = 0, rsp = 0, rbp = 0 --- > > KDB: enter: panic > > -- Steve