syzbot


WARNING: suspicious RCU usage in __cfg80211_bss_update

Status: fixed on 2024/01/30 15:47
Subsystems: wireless
[Documentation on labels]
Reported-by: syzbot+864a269c27ee06b58374@syzkaller.appspotmail.com
Fix commit: 1184950e341c wifi: cfg80211: fix RCU dereference in __cfg80211_bss_update
First crash: 136d, last: 133d
Cause bisection: introduced by (bisect log) :
commit 32af9a9e1069e55bc02741fb00ac9d0ca1a2eaef
Author: Benjamin Berg <benjamin.berg@intel.com>
Date: Wed Dec 20 11:41:41 2023 +0000

  wifi: cfg80211: free beacon_ies when overridden from hidden BSS

Crash: WARNING: suspicious RCU usage in __cfg80211_bss_update (log)
Repro: C syz .config
  
Discussions (2)
Title Replies (including bot) Last reply
[PATCH net-next] wifi: fix warning in __cfg80211_bss_update 1 (1) 2024/01/03 12:13
[syzbot] [wireless?] WARNING: suspicious RCU usage in __cfg80211_bss_update 1 (3) 2024/01/03 11:58
Last patch testing requests (1)
Created Duration User Patch Repo Result
2024/01/03 11:34 23m eadavis@qq.com patch https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next.git 954fb2d2d49f OK log

Sample crash report:
wlan0: Created IBSS using preconfigured BSSID 50:50:50:50:50:50
wlan0: Creating new IBSS network, BSSID 50:50:50:50:50:50
=============================
WARNING: suspicious RCU usage
6.7.0-rc6-syzkaller-01863-g954fb2d2d49f #0 Not tainted
-----------------------------
net/wireless/scan.c:1867 suspicious rcu_dereference_check() usage!

other info that might help us debug this:


rcu_scheduler_active = 2, debug_locks = 1
4 locks held by kworker/u4:2/35:
 #0: ffff888013071938 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_one_work+0x789/0x15d0 kernel/workqueue.c:2602
 #1: ffffc90000abfd80 ((work_completion)(&rdev->wiphy_work)){+.+.}-{0:0}, at: process_one_work+0x7eb/0x15d0 kernel/workqueue.c:2603
 #2: ffff88807b0f8768 (&rdev->wiphy.mtx){+.+.}-{3:3}, at: wiphy_lock include/net/cfg80211.h:5928 [inline]
 #2: ffff88807b0f8768 (&rdev->wiphy.mtx){+.+.}-{3:3}, at: cfg80211_wiphy_work+0x2b/0x330 net/wireless/core.c:424
 #3: ffff88807b0f8168 (&rdev->bss_lock){+...}-{2:2}, at: spin_lock_bh include/linux/spinlock.h:356 [inline]
 #3: ffff88807b0f8168 (&rdev->bss_lock){+...}-{2:2}, at: cfg80211_inform_single_bss_frame_data+0x8e4/0x12c0 net/wireless/scan.c:3014

stack backtrace:
CPU: 0 PID: 35 Comm: kworker/u4:2 Not tainted 6.7.0-rc6-syzkaller-01863-g954fb2d2d49f #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023
Workqueue: events_unbound cfg80211_wiphy_work
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x125/0x1b0 lib/dump_stack.c:106
 lockdep_rcu_suspicious+0x20c/0x3b0 kernel/locking/lockdep.c:6712
 __cfg80211_bss_update+0x17fb/0x25f0 net/wireless/scan.c:1867
 cfg80211_inform_single_bss_frame_data+0x91e/0x12c0 net/wireless/scan.c:3015
 cfg80211_inform_bss_frame_data+0x14c/0x340 net/wireless/scan.c:3050
 __ieee80211_sta_join_ibss+0xcf3/0x1880 net/mac80211/ibss.c:376
 ieee80211_sta_create_ibss+0x206/0x470 net/mac80211/ibss.c:1320
 ieee80211_sta_find_ibss net/mac80211/ibss.c:1449 [inline]
 ieee80211_ibss_work+0xbbb/0x14c0 net/mac80211/ibss.c:1666
 ieee80211_iface_work+0xbeb/0xda0 net/mac80211/iface.c:1665
 cfg80211_wiphy_work+0x24e/0x330 net/wireless/core.c:437
 process_one_work+0x886/0x15d0 kernel/workqueue.c:2627
 process_scheduled_works kernel/workqueue.c:2700 [inline]
 worker_thread+0x8b9/0x1290 kernel/workqueue.c:2781
 kthread+0x2c6/0x3a0 kernel/kthread.c:388
 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:242
 </TASK>

Crashes (92):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/01/02 18:49 net-next 954fb2d2d49f fb427a07 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING: suspicious RCU usage in __cfg80211_bss_update
2024/01/05 08:55 net-next 5e5401d6612e 28c42cff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING: suspicious RCU usage in __cfg80211_bss_update
2024/01/05 07:45 net-next 5e5401d6612e 28c42cff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING: suspicious RCU usage in __cfg80211_bss_update
2024/01/05 05:55 net-next 5e5401d6612e 28c42cff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING: suspicious RCU usage in __cfg80211_bss_update
2024/01/05 04:10 net-next 5e5401d6612e 28c42cff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING: suspicious RCU usage in __cfg80211_bss_update
2024/01/05 04:08 net-next 5e5401d6612e 28c42cff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING: suspicious RCU usage in __cfg80211_bss_update
2024/01/05 02:53 net-next 5e5401d6612e 28c42cff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING: suspicious RCU usage in __cfg80211_bss_update
2024/01/05 01:39 net-next 5e5401d6612e 28c42cff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING: suspicious RCU usage in __cfg80211_bss_update
2024/01/04 22:14 net-next 5e5401d6612e 28c42cff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING: suspicious RCU usage in __cfg80211_bss_update
2024/01/04 20:05 net-next 5e5401d6612e 28c42cff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING: suspicious RCU usage in __cfg80211_bss_update
2024/01/04 19:03 net-next b15a4cfe100b 28c42cff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING: suspicious RCU usage in __cfg80211_bss_update
2024/01/04 17:55 net-next b15a4cfe100b 28c42cff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING: suspicious RCU usage in __cfg80211_bss_update
2024/01/04 16:28 net-next b15a4cfe100b 28c42cff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING: suspicious RCU usage in __cfg80211_bss_update
2024/01/04 14:39 net-next b15a4cfe100b 28c42cff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING: suspicious RCU usage in __cfg80211_bss_update
2024/01/04 14:27 net-next b15a4cfe100b 28c42cff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING: suspicious RCU usage in __cfg80211_bss_update
2024/01/04 13:05 net-next b15a4cfe100b 28c42cff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING: suspicious RCU usage in __cfg80211_bss_update
2024/01/04 12:01 net-next b15a4cfe100b 28c42cff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING: suspicious RCU usage in __cfg80211_bss_update
2024/01/04 10:46 net-next b15a4cfe100b 28c42cff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING: suspicious RCU usage in __cfg80211_bss_update
2024/01/04 06:36 net-next b15a4cfe100b 28c42cff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING: suspicious RCU usage in __cfg80211_bss_update
2024/01/04 05:14 net-next 2ab1efad60ad 28c42cff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING: suspicious RCU usage in __cfg80211_bss_update
2024/01/04 04:38 net-next 2ab1efad60ad 28c42cff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING: suspicious RCU usage in __cfg80211_bss_update
2024/01/04 03:54 net-next 2ab1efad60ad 28c42cff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING: suspicious RCU usage in __cfg80211_bss_update
2024/01/04 03:38 net-next 2ab1efad60ad 28c42cff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING: suspicious RCU usage in __cfg80211_bss_update
2024/01/04 01:46 net-next 2ab1efad60ad 28c42cff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING: suspicious RCU usage in __cfg80211_bss_update
2024/01/04 01:41 net-next 2ab1efad60ad 28c42cff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING: suspicious RCU usage in __cfg80211_bss_update
2024/01/04 00:33 net-next 2ab1efad60ad 28c42cff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING: suspicious RCU usage in __cfg80211_bss_update
2024/01/04 00:32 net-next 2ab1efad60ad 28c42cff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING: suspicious RCU usage in __cfg80211_bss_update
2024/01/04 00:27 net-next 2ab1efad60ad 28c42cff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING: suspicious RCU usage in __cfg80211_bss_update
2024/01/03 23:09 net-next 2ab1efad60ad 28c42cff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING: suspicious RCU usage in __cfg80211_bss_update
2024/01/03 22:53 net-next 2ab1efad60ad 28c42cff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING: suspicious RCU usage in __cfg80211_bss_update
2024/01/03 21:33 net-next 2ab1efad60ad 28c42cff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING: suspicious RCU usage in __cfg80211_bss_update
2024/01/03 20:42 net-next 2ab1efad60ad 28c42cff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING: suspicious RCU usage in __cfg80211_bss_update
2024/01/03 20:01 net-next 2ab1efad60ad 28c42cff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING: suspicious RCU usage in __cfg80211_bss_update
2024/01/03 19:45 net-next 2ab1efad60ad 28c42cff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING: suspicious RCU usage in __cfg80211_bss_update
2024/01/03 19:02 net-next 2ab1efad60ad 28c42cff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING: suspicious RCU usage in __cfg80211_bss_update
2024/01/03 18:55 net-next 2ab1efad60ad 28c42cff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING: suspicious RCU usage in __cfg80211_bss_update
2024/01/03 17:06 net-next 2ab1efad60ad 28c42cff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING: suspicious RCU usage in __cfg80211_bss_update
2024/01/03 17:05 net-next 2ab1efad60ad 28c42cff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING: suspicious RCU usage in __cfg80211_bss_update
2024/01/03 16:50 net-next 2ab1efad60ad 28c42cff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING: suspicious RCU usage in __cfg80211_bss_update
2024/01/03 11:30 net-next 38894ff3a04b fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING: suspicious RCU usage in __cfg80211_bss_update
2024/01/03 11:15 net-next 38894ff3a04b fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING: suspicious RCU usage in __cfg80211_bss_update
2024/01/03 09:49 net-next 38894ff3a04b fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING: suspicious RCU usage in __cfg80211_bss_update
2024/01/03 09:32 net-next 38894ff3a04b fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING: suspicious RCU usage in __cfg80211_bss_update
* Struck through repros no longer work on HEAD.