Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 01 Jun 2023 15:53:36 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 271768] panic: _sx_xlock_hard: recursed on non-recursive sx iflib ctx lock @ /usr/src/sys/net/iflib.c:2582
Message-ID:  <bug-271768-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D271768

            Bug ID: 271768
           Summary: panic: _sx_xlock_hard: recursed on non-recursive sx
                    iflib ctx lock @ /usr/src/sys/net/iflib.c:2582
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: pkubaj@FreeBSD.org

I run CURRENT revision baef3a5b585f. my kernel config is:
include GENERIC
ident VAL
nodevice em
nodevice ixl
nodevice iavf
nodevice ice
nodevice ix
nodevice ixv

When I try to kldunload if_ice, I get:
panic: _sx_xlock_hard: recursed on non-recursive sx iflib ctx lock @
/usr/src/sys/net/iflib.c:2582

cpuid =3D 3
time =3D 1685630930
KDB: stack backtrace:
db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe010b847=
5d0
vpanic() at vpanic+0x150/frame 0xfffffe010b847620
panic() at panic+0x43/frame 0xfffffe010b847680
_sx_xlock_hard() at _sx_xlock_hard+0x82d/frame 0xfffffe010b847720
_sx_xlock() at _sx_xlock+0xb3/frame 0xfffffe010b847760
iflib_media_status() at iflib_media_status+0x32/frame 0xfffffe010b847790
ifmedia_ioctl() at ifmedia_ioctl+0x16a/frame 0xfffffe010b8477c0
dump_iface() at dump_iface+0x12f/frame 0xfffffe010b847840
rtnl_handle_ifevent() at rtnl_handle_ifevent+0xab/frame 0xfffffe010b8478c0
if_attach_internal() at if_attach_internal+0x41e/frame 0xfffffe010b847910
ether_ifattach() at ether_ifattach+0x29/frame 0xfffffe010b847940
iflib_device_register() at iflib_device_register+0xbf7/frame 0xfffffe010b84=
79d0
iflib_device_attach() at iflib_device_attach+0xb5/frame 0xfffffe010b847a00
device_attach() at device_attach+0x3c0/frame 0xfffffe010b847a40
device_probe_and_attach() at device_probe_and_attach+0x70/frame
0xfffffe010b847a70
pci_driver_added() at pci_driver_added+0xf2/frame 0xfffffe010b847ab0
devclass_driver_added() at devclass_driver_added+0x39/frame 0xfffffe010b847=
af0
device_do_deferred_actions() at device_do_deferred_actions+0x3a/frame
0xfffffe010b847b10
devctl2_ioctl() at devctl2_ioctl+0x531/frame 0xfffffe010b847be0
devfs_ioctl() at devfs_ioctl+0xcc/frame 0xfffffe010b847c30
vn_ioctl() at vn_ioctl+0xc0/frame 0xfffffe010b847ca0
devfs_ioctl_f() at devfs_ioctl_f+0x1e/frame 0xfffffe010b847cc0
kern_ioctl() at kern_ioctl+0x1fe/frame 0xfffffe010b847d30
sys_ioctl() at sys_ioctl+0x154/frame 0xfffffe010b847e00
amd64_syscall() at amd64_syscall+0x140/frame 0xfffffe010b847f30
fast_syscall_common() at fast_syscall_common+0xf8/frame 0xfffffe010b847f30
--- syscall (54, FreeBSD ELF64, ioctl), rip =3D 0x1da51d7cee6a, rsp =3D
0x1da51b4eb188, rbp =3D 0x1da51b4eb240 ---

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-271768-227>