============================= WARNING: suspicious RCU usage 6.1.117-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.0.352/5497: #0: ffffffff8e4fb628 (rtnl_mutex){+.+.}-{3:3}, at: dev_ioctl+0x4f5/0xf70 net/core/dev_ioctl.c:587 #1: ffff8880585f07c8 (&rdev->wiphy.mtx){+.+.}-{3:3}, at: wiphy_lock include/net/cfg80211.h:5639 [inline] #1: ffff8880585f07c8 (&rdev->wiphy.mtx){+.+.}-{3:3}, at: cfg80211_netdev_notifier_call+0x4d4/0x1530 net/wireless/core.c:1504 #2: ffff888058620d40 (&wdev->mtx){+.+.}-{3:3}, at: wdev_lock net/wireless/core.h:231 [inline] #2: ffff888058620d40 (&wdev->mtx){+.+.}-{3:3}, at: cfg80211_leave net/wireless/core.c:1342 [inline] #2: ffff888058620d40 (&wdev->mtx){+.+.}-{3:3}, at: cfg80211_netdev_notifier_call+0x4e2/0x1530 net/wireless/core.c:1505 stack backtrace: CPU: 1 PID: 5497 Comm: syz.0.352 Not tainted 6.1.117-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/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:6608 sta_remove_link+0x353/0x4a0 net/mac80211/sta_info.c:360 sta_info_free+0x4f/0x750 net/mac80211/sta_info.c:405 ieee80211_ibss_disconnect+0x3a3/0x700 net/mac80211/ibss.c:704 ieee80211_ibss_leave+0x21/0x130 net/mac80211/ibss.c:1868 rdev_leave_ibss net/wireless/rdev-ops.h:561 [inline] __cfg80211_leave_ibss+0x1dd/0x470 net/wireless/ibss.c:211 cfg80211_leave net/wireless/core.c:1343 [inline] cfg80211_netdev_notifier_call+0x4ed/0x1530 net/wireless/core.c:1505 notifier_call_chain kernel/notifier.c:87 [inline] raw_notifier_call_chain+0xd0/0x170 kernel/notifier.c:455 call_netdevice_notifiers_info net/core/dev.c:1970 [inline] call_netdevice_notifiers_extack net/core/dev.c:2008 [inline] call_netdevice_notifiers net/core/dev.c:2022 [inline] __dev_close_many+0x1e3/0x3c0 net/core/dev.c:1515 __dev_close net/core/dev.c:1553 [inline] __dev_change_flags+0x2fe/0x6e0 net/core/dev.c:8591 dev_change_flags+0x87/0x190 net/core/dev.c:8664 dev_ifsioc+0x177/0x1160 net/core/dev_ioctl.c:327 dev_ioctl+0x508/0xf70 net/core/dev_ioctl.c:588 sock_do_ioctl+0x26b/0x450 net/socket.c:1218 sock_ioctl+0x47f/0x770 net/socket.c:1321 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:870 [inline] __se_sys_ioctl+0xf1/0x160 fs/ioctl.c:856 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:0x7efee237e719 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:00007efee3098038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007efee2536058 RCX: 00007efee237e719 RDX: 0000000020000080 RSI: 0000000000008914 RDI: 000000000000000d RBP: 00007efee23f175e R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007efee2536058 R15: 00007fff96375d98