[v6.1] INFO: trying to register non-static key in cfg80211_dev_free

1 view
Skip to first unread message

syzbot

unread,
Apr 21, 2025, 7:21:20 AM4/21/25
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 420102835862 Linux 6.1.134
git tree: linux-6.1.y
console output: https://syzkaller.appspot.com/x/log.txt?x=1241ac70580000
kernel config: https://syzkaller.appspot.com/x/.config?x=5b8d7e66d7963efe
dashboard link: https://syzkaller.appspot.com/bug?extid=4f62f981bd185e7a0aa4
compiler: Debian clang version 15.0.6, Debian LLD 15.0.6

Unfortunately, I don't have any reproducer for this issue yet.

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/e4aa362b3eb7/disk-42010283.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/b7e652e0d601/vmlinux-42010283.xz
kernel image: https://storage.googleapis.com/syzbot-assets/c24862f38fa8/bzImage-42010283.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+4f62f9...@syzkaller.appspotmail.com

RBP: 00007f49083b4090 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002
R13: 0000000000000000 R14: 00007f49077b5fa0 R15: 00007fff37bc5f78
</TASK>
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: 1 PID: 7248 Comm: syz.3.889 Not tainted 6.1.134-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
Call Trace:
<TASK>
__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:0x7f490758e169
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f49083b4038 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007f49077b5fa0 RCX: 00007f490758e169
RDX: 0000000000000000 RSI: 0000200000000000 RDI: 0000000000000007
RBP: 00007f49083b4090 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002
R13: 0000000000000000 R14: 00007f49077b5fa0 R15: 00007fff37bc5f78
</TASK>
------------[ cut here ]------------
WARNING: CPU: 1 PID: 7248 at net/wireless/core.c:1152 cfg80211_dev_free+0x2b5/0x2c0 net/wireless/core.c:-1
Modules linked in:
CPU: 1 PID: 7248 Comm: syz.3.889 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:ffffc90003cff128 EFLAGS: 00010093

RAX: ffffffff8a0b1795 RBX: ffff8880660f8708 RCX: ffff888054418000
RDX: 0000000000000000 RSI: 0000000000000004 RDI: ffffc90003cff000
RBP: 1ffffffff1b78c6c R08: dffffc0000000000 R09: 0000000000000003
R10: ffffffffffffffff R11: dffffc0000000001 R12: ffff8880660f8718
R13: dffffc0000000000 R14: ffff8880660f8000 R15: 0000000000000246
FS: 00007f49083b46c0(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fe5c2283f98 CR3: 000000007cee1000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600
Call Trace:
<TASK>
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:0x7f490758e169
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f49083b4038 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007f49077b5fa0 RCX: 00007f490758e169
RDX: 0000000000000000 RSI: 0000200000000000 RDI: 0000000000000007
RBP: 00007f49083b4090 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002
R13: 0000000000000000 R14: 00007f49077b5fa0 R15: 00007fff37bc5f78
</TASK>


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

If the report is already addressed, let syzbot know by replying with:
#syz fix: exact-commit-title

If you want to overwrite report's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)

If the report is a duplicate of another one, reply with:
#syz dup: exact-subject-of-another-report

If you want to undo deduplication, reply with:
#syz undup

syzbot

unread,
Apr 21, 2025, 8:04:31 AM4/21/25
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: 420102835862 Linux 6.1.134
git tree: linux-6.1.y
console output: https://syzkaller.appspot.com/x/log.txt?x=178c3b98580000
kernel config: https://syzkaller.appspot.com/x/.config?x=5b8d7e66d7963efe
dashboard link: https://syzkaller.appspot.com/bug?extid=4f62f981bd185e7a0aa4
compiler: Debian clang version 15.0.6, Debian LLD 15.0.6
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=11d38fcf980000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=14e60ccc580000
RDX: 0000000000000000 RSI: 0000200000000000 RDI: 0000000000000003
RBP: 0000000000000002 R08: 00007ffe0f9c7c46 R09: 00000000000000a0
R10: 0000000000000002 R11: 0000000000000206 R12: 00007ffe0f9c7ebc
R13: 431bde82d7b634db R14: 0000000000000001 R15: 0000000000000001
</TASK>
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
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
</TASK>
------------[ 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
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
</TASK>


---
If you want syzbot to run the reproducer, reply with:
#syz test: git://repo/address.git branch-or-commit-hash
If you attach or paste a git patch, syzbot will apply it before testing.

syzbot

unread,
Jul 12, 2025, 9:03:04 AM7/12/25
to syzkaller...@googlegroups.com
syzbot suspects this issue was fixed by commit:

commit b679fe84cd5cc6f3481b7131fd28676191ad2615
Author: Edward Adam Davis <ead...@qq.com>
Date: Tue Mar 18 03:13:45 2025 +0000

wifi: cfg80211: init wiphy_work before allocating rfkill fails

bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=172d7e8c580000
start commit: 420102835862 Linux 6.1.134
git tree: linux-6.1.y
If the result looks correct, please mark the issue as fixed by replying with:

#syz fix: wifi: cfg80211: init wiphy_work before allocating rfkill fails

For information about bisection process see: https://goo.gl/tpsmEJ#bisection
Reply all
Reply to author
Forward
0 new messages