From nobody Fri May 05 23:11:44 2023 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4QCmf83qcmz49w9L for ; Fri, 5 May 2023 23:11:44 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QCmf81DKSz3sH6 for ; Fri, 5 May 2023 23:11:44 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1683328304; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=HzO2f/AJwrQd0BTGb8SoU3Tox6SyW1GZuitIU9HsLQk=; b=p6TnzRKpaaVss1WP1RDoEexMV4aj7reHSkllR+yLS/rzbTn2uH74tmByM0t1raKIGgYKP3 LTiA4TfsnGWhvdC0CAlANOcFszZ5LLo2BvcM4lVo9C+jI+9ZYtDA8hLE9ar2+/BMtFtoa3 IRWl17Rn3GjAUYc1MwAdeR+jFhIg201FojdSuklVrxuKZTLC/dGyqaM12WA4JPj7nkjJTY jMTnbXsgtJSzRStF5r0tPG78MCsCfEPAZE1ruut0UyIM9GlWnY0oioN/kMBiP3nJCDPeFR ZTIfd75qhcd9CSKALwX6f51awVLdU85M2nu36r9bpHw/WojIu8IyqtXPo+w+sA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1683328304; a=rsa-sha256; cv=none; b=IqvEqFwleQM6uhg3Xq4pFjHrh2hNUrr4SZhCg0YrNle4M1py7/BKsP25zEuQGP20BdCqfJ 4hgXZIByb4jXwn+owxq12ZboCHJkOaBfRJQrfrV0HgWrNMjVGb4Sc9F8bn+DFHjGf6/T+Q x4ctbk6FYN+k4v0m6z1HHIdSxwqH0zvT7aOtndnGKu+XNkKNjMgoAwrep1t6avFtv4+xg0 fW6f5TCYW6j4qjzND6l9UUnwyc8CNyEs3WgYfXIP9w0TQNPmxoQAfqzkbYM1RRG2/bjQxa 2SOxTBFZPrPjpWs+NyCTJZVUdp/07mP1vEa+h1aoTzWKyDKL4n02zncYyPsAhg== 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 4QCmf80KRnz1Cn3 for ; Fri, 5 May 2023 23:11:44 +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 345NBhmj021762 for ; Fri, 5 May 2023 23:11:43 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 345NBh03021718 for bugs@FreeBSD.org; Fri, 5 May 2023 23:11:43 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 271270] bnxt(4): kernel crash during kldunload Date: Fri, 05 May 2023 23:11:44 +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: asomers@FreeBSD.org 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 List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D271270 Bug ID: 271270 Summary: bnxt(4): kernel crash during kldunload Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: asomers@FreeBSD.org On the latest 14.0-CURRENT build, unloading the if_bnxt module causes a ker= nel crash.=20=20 root@slc-rb20a-ss:~ # kldunload if_bnxt bnxt0: detached pci6: at device 0.0 (no driver attached) bnxt1: detached pci6: at device 0.1 (no driver attached) bnxt2: detached bnxt3: detached root@slc-rb20a-spci11: at device 0.0 (no driver attache= d) pci11: at device 0.1 (no driver attached) s:~ # bnxt0: mem 0x201fffc10000-0x201fffc1ffff,0x201fffb00000-0x201fffbfffff,0x201fffc22000-= 0x201fffc23fff irq 16 at device 0.0 numa-domain 0 on pci6 bnxt0: Using 256 TX descriptors and 256 RX descriptors bnxt0: Using 16 RX queues 16 TX queues bnxt0: Using MSI-X interrupts with 17 vectors panic: _sx_xlock_hard: recursed on non-recursive sx iflib ctx lock @ /usr/home/asomers/src/github/freebsd/freebsd-src/sys/net/iflib.c:2582 cpuid =3D 0 time =3D 1683328108 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe0c9c678= 5d0 vpanic() at vpanic+0x151/frame 0xfffffe0c9c678620 panic() at panic+0x43/frame 0xfffffe0c9c678680 _sx_xlock_hard() at _sx_xlock_hard+0x818/frame 0xfffffe0c9c678720 _sx_xlock() at _sx_xlock+0xb6/frame 0xfffffe0c9c678760 iflib_media_status() at iflib_media_status+0x32/frame 0xfffffe0c9c678790 ifmedia_ioctl() at ifmedia_ioctl+0x16a/frame 0xfffffe0c9c6787c0 dump_iface() at dump_iface+0x131/frame 0xfffffe0c9c678840 rtnl_handle_ifevent() at rtnl_handle_ifevent+0xab/frame 0xfffffe0c9c6788c0 if_attach_internal() at if_attach_internal+0x40e/frame 0xfffffe0c9c678910 ether_ifattach() at ether_ifattach+0x29/frame 0xfffffe0c9c678940 iflib_device_register() at iflib_device_register+0xe53/frame 0xfffffe0c9c67= 89d0 iflib_device_attach() at iflib_device_attach+0xb5/frame 0xfffffe0c9c678a00 device_attach() at device_attach+0x3c0/frame 0xfffffe0c9c678a40 device_probe_and_attach() at device_probe_and_attach+0x70/frame 0xfffffe0c9c678a70 pci_driver_added() at pci_driver_added+0xf3/frame 0xfffffe0c9c678ab0 devclass_driver_added() at devclass_driver_added+0x39/frame 0xfffffe0c9c678= af0 device_do_deferred_actions() at device_do_deferred_actions+0x3a/frame 0xfffffe0c9c678b10 devctl2_ioctl() at devctl2_ioctl+0x534/frame 0xfffffe0c9c678be0 devfs_ioctl() at devfs_ioctl+0xcd/frame 0xfffffe0c9c678c30 vn_ioctl() at vn_ioctl+0xbe/frame 0xfffffe0c9c678ca0 devfs_ioctl_f() at devfs_ioctl_f+0x1e/frame 0xfffffe0c9c678cc0 kern_ioctl() at kern_ioctl+0x202/frame 0xfffffe0c9c678d30 sys_ioctl() at sys_ioctl+0x126/frame 0xfffffe0c9c678e00 amd64_syscall() at amd64_syscall+0x6ac/frame 0xfffffe0c9c678f30 fast_syscall_common() at fast_syscall_common+0xf8/frame 0xfffffe0c9c678f30 --- syscall (54, FreeBSD ELF64, ioctl), rip =3D 0x3407b66b78ea, rsp =3D 0x3407b41a7e78, rbp =3D 0x3407b41a7f30 --- KDB: enter: panic --=20 You are receiving this mail because: You are the assignee for the bug.=