RDX: 0000000000000000 RSI: 0000200000000000 RDI: 0000000000000003
RBP: 0000000000000002 R08: 00007ffe0f9c7c46 R09: 00000000000000a0
R10: 0000000000000002 R11: 0000000000000206 R12: 00007ffe0f9c7ebc
R13: 431bde82d7b634db R14: 0000000000000001 R15: 0000000000000001
INFO: trying to register non-static key.
The code is fine but needs lockdep annotation, or maybe
you didn't initialize this object before use?
turning off the locking correctness validator.
CPU: 0 PID: 4414 Comm: syz-executor240 Not tainted 6.1.134-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x1e3/0x2cb lib/dump_stack.c:106
assign_lock_key+0x230/0x260 kernel/locking/lockdep.c:974
register_lock_class+0x28a/0x990 kernel/locking/lockdep.c:1287
__lock_acquire+0xd3/0x1f80 kernel/locking/lockdep.c:4928
lock_acquire+0x1f8/0x5a0 kernel/locking/lockdep.c:5662
__raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline]
_raw_spin_lock_irqsave+0xd1/0x120 kernel/locking/spinlock.c:162
cfg80211_dev_free+0x2f/0x2c0 net/wireless/core.c:1151
device_release+0x91/0x1c0 drivers/base/core.c:-1
kobject_cleanup lib/kobject.c:681 [inline]
kobject_release lib/kobject.c:712 [inline]
kref_put include/linux/kref.h:65 [inline]
kobject_put+0x224/0x460 lib/kobject.c:729
wiphy_free net/wireless/core.c:1179 [inline]
wiphy_new_nm+0x178e/0x1a20 net/wireless/core.c:562
ieee80211_alloc_hw_nm+0x3c4/0x20e0 net/mac80211/main.c:674
mac80211_hwsim_new_radio+0x182/0x41c0 drivers/net/wireless/mac80211_hwsim.c:4256
hwsim_new_radio_nl+0xc54/0x1190 drivers/net/wireless/mac80211_hwsim.c:5176
genl_family_rcv_msg_doit net/netlink/genetlink.c:756 [inline]
genl_family_rcv_msg net/netlink/genetlink.c:833 [inline]
genl_rcv_msg+0xbfa/0xf50 net/netlink/genetlink.c:850
netlink_rcv_skb+0x1cd/0x410 net/netlink/af_netlink.c:2493
genl_rcv+0x24/0x40 net/netlink/genetlink.c:861
netlink_unicast_kernel net/netlink/af_netlink.c:1311 [inline]
netlink_unicast+0x7e2/0x970 net/netlink/af_netlink.c:1337
netlink_sendmsg+0xa26/0xd60 net/netlink/af_netlink.c:1859
sock_sendmsg_nosec net/socket.c:718 [inline]
__sock_sendmsg net/socket.c:730 [inline]
____sys_sendmsg+0x5d3/0x9a0 net/socket.c:2519
___sys_sendmsg net/socket.c:2573 [inline]
__sys_sendmsg+0x2a9/0x390 net/socket.c:2602
do_syscall_x64 arch/x86/entry/common.c:51 [inline]
do_syscall_64+0x3b/0x80 arch/x86/entry/common.c:81
entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f4bb055d729
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 a1 1a 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffe0f9c7ea8 EFLAGS: 00000206 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007ffe0f9c7ec0 RCX: 00007f4bb055d729
RDX: 0000000000000000 RSI: 0000200000000000 RDI: 0000000000000003
RBP: 0000000000000002 R08: 00007ffe0f9c7c46 R09: 00000000000000a0
R10: 0000000000000002 R11: 0000000000000206 R12: 00007ffe0f9c7ebc
R13: 431bde82d7b634db R14: 0000000000000001 R15: 0000000000000001
------------[ cut here ]------------
WARNING: CPU: 0 PID: 4414 at net/wireless/core.c:1152 cfg80211_dev_free+0x2b5/0x2c0 net/wireless/core.c:-1
Modules linked in:
CPU: 0 PID: 4414 Comm: syz-executor240 Not tainted 6.1.134-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
RIP: 0010:cfg80211_dev_free+0x2b5/0x2c0 net/wireless/core.c:1152
Code: 94 d6 f7 49 8b be 40 09 00 00 e8 e6 10 bc f7 4c 89 f7 48 83 c4 20 5b 41 5c 41 5d 41 5e 41 5f 5d e9 d0 10 bc f7 e8 0b 35 7f f7 <0f> 0b e9 a4 fd ff ff 0f 1f 40 00 55 41 57 41 56 41 54 53 41 89 d7
RSP: 0018:ffffc90003da7128 EFLAGS: 00010093
RAX: ffffffff8a0b1795 RBX: ffff888073a30708 RCX: ffff88802b9b8000
RDX: 0000000000000000 RSI: 0000000000000004 RDI: ffffc90003da7000
RBP: 1ffffffff1b78c6c R08: dffffc0000000000 R09: 0000000000000003
R10: ffffffffffffffff R11: dffffc0000000001 R12: ffff888073a30718
R13: dffffc0000000000 R14: ffff888073a30000 R15: 0000000000000246
FS: 000055556d80e380(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055556d80eca8 CR3: 0000000028bef000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
device_release+0x91/0x1c0 drivers/base/core.c:-1
kobject_cleanup lib/kobject.c:681 [inline]
kobject_release lib/kobject.c:712 [inline]
kref_put include/linux/kref.h:65 [inline]
kobject_put+0x224/0x460 lib/kobject.c:729
wiphy_free net/wireless/core.c:1179 [inline]
wiphy_new_nm+0x178e/0x1a20 net/wireless/core.c:562
ieee80211_alloc_hw_nm+0x3c4/0x20e0 net/mac80211/main.c:674
mac80211_hwsim_new_radio+0x182/0x41c0 drivers/net/wireless/mac80211_hwsim.c:4256
hwsim_new_radio_nl+0xc54/0x1190 drivers/net/wireless/mac80211_hwsim.c:5176
genl_family_rcv_msg_doit net/netlink/genetlink.c:756 [inline]
genl_family_rcv_msg net/netlink/genetlink.c:833 [inline]
genl_rcv_msg+0xbfa/0xf50 net/netlink/genetlink.c:850
netlink_rcv_skb+0x1cd/0x410 net/netlink/af_netlink.c:2493
genl_rcv+0x24/0x40 net/netlink/genetlink.c:861
netlink_unicast_kernel net/netlink/af_netlink.c:1311 [inline]
netlink_unicast+0x7e2/0x970 net/netlink/af_netlink.c:1337
netlink_sendmsg+0xa26/0xd60 net/netlink/af_netlink.c:1859
sock_sendmsg_nosec net/socket.c:718 [inline]
__sock_sendmsg net/socket.c:730 [inline]
____sys_sendmsg+0x5d3/0x9a0 net/socket.c:2519
___sys_sendmsg net/socket.c:2573 [inline]
__sys_sendmsg+0x2a9/0x390 net/socket.c:2602
do_syscall_x64 arch/x86/entry/common.c:51 [inline]
do_syscall_64+0x3b/0x80 arch/x86/entry/common.c:81
entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f4bb055d729
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 a1 1a 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffe0f9c7ea8 EFLAGS: 00000206 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007ffe0f9c7ec0 RCX: 00007f4bb055d729
RDX: 0000000000000000 RSI: 0000200000000000 RDI: 0000000000000003
RBP: 0000000000000002 R08: 00007ffe0f9c7c46 R09: 00000000000000a0
R10: 0000000000000002 R11: 0000000000000206 R12: 00007ffe0f9c7ebc
R13: 431bde82d7b634db R14: 0000000000000001 R15: 0000000000000001