mac80211_hwsim: wmediumd released netlink socket, switching to perfect channel medium wlan1: authenticate with 50:50:50:50:50:50 wlan1: No legacy rates in association response ============================= WARNING: suspicious RCU usage 6.1.98-syzkaller #0 Not tainted ----------------------------- net/mac80211/sta_info.c:361 suspicious rcu_dereference_protected() usage! other info that might help us debug this: rcu_scheduler_active = 2, debug_locks = 1 3 locks held by syz.4.1407/10170: #0: ffffffff8e2f8c50 (cb_lock){++++}-{3:3}, at: genl_rcv+0x15/0x40 net/netlink/genetlink.c:860 #1: ffff88807d2087c8 (&rdev->wiphy.mtx){+.+.}-{3:3}, at: wiphy_lock include/net/cfg80211.h:5639 [inline] #1: ffff88807d2087c8 (&rdev->wiphy.mtx){+.+.}-{3:3}, at: nl80211_pre_doit+0x58b/0x8a0 net/wireless/nl80211.c:16264 #2: ffff888018384d40 (&wdev->mtx){+.+.}-{3:3}, at: wdev_lock net/wireless/core.h:231 [inline] #2: ffff888018384d40 (&wdev->mtx){+.+.}-{3:3}, at: nl80211_connect+0x18e8/0x2070 net/wireless/nl80211.c:11802 stack backtrace: CPU: 0 PID: 10170 Comm: syz.4.1407 Not tainted 6.1.98-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e3/0x2cb lib/dump_stack.c:106 lockdep_rcu_suspicious+0x21c/0x330 kernel/locking/lockdep.c:6592 sta_remove_link+0x353/0x4a0 net/mac80211/sta_info.c:360 sta_info_free+0x4f/0x750 net/mac80211/sta_info.c:405 ieee80211_prep_connection+0xda4/0x1150 ieee80211_mgd_auth+0xbaf/0x1150 net/mac80211/mlme.c:6756 rdev_auth net/wireless/rdev-ops.h:469 [inline] cfg80211_mlme_auth+0x587/0x9b0 net/wireless/mlme.c:285 cfg80211_conn_do_work+0x47c/0xdd0 net/wireless/sme.c:181 cfg80211_sme_connect net/wireless/sme.c:623 [inline] cfg80211_connect+0x1742/0x20c0 net/wireless/sme.c:1499 nl80211_connect+0x192b/0x2070 net/wireless/nl80211.c:11804 genl_family_rcv_msg_doit net/netlink/genetlink.c:756 [inline] genl_family_rcv_msg net/netlink/genetlink.c:833 [inline] genl_rcv_msg+0xc1a/0xf70 net/netlink/genetlink.c:850 netlink_rcv_skb+0x1cd/0x410 net/netlink/af_netlink.c:2508 genl_rcv+0x24/0x40 net/netlink/genetlink.c:861 netlink_unicast_kernel net/netlink/af_netlink.c:1326 [inline] netlink_unicast+0x7d8/0x970 net/netlink/af_netlink.c:1352 netlink_sendmsg+0xa26/0xd60 net/netlink/af_netlink.c:1874 sock_sendmsg_nosec net/socket.c:718 [inline] __sock_sendmsg net/socket.c:730 [inline] ____sys_sendmsg+0x5a5/0x8f0 net/socket.c:2514 ___sys_sendmsg net/socket.c:2568 [inline] __sys_sendmsg+0x2a9/0x390 net/socket.c:2597 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f90d2575bd9 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:00007f90d3357048 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007f90d2703f60 RCX: 00007f90d2575bd9 RDX: 0000000000000000 RSI: 00000000200001c0 RDI: 0000000000000004 RBP: 00007f90d25e4e60 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f90d2703f60 R15: 00007ffca91c91e8 mac80211_hwsim: wmediumd released netlink socket, switching to perfect channel medium netlink: 36 bytes leftover after parsing attributes in process `syz.4.1407'. mac80211_hwsim: wmediumd released netlink socket, switching to perfect channel medium