syzbot


linux-next test error: BUG: sleeping function called from invalid context in sta_info_move_state

Status: fixed on 2021/03/10 01:48
Subsystems: wireless
[Documentation on labels]
Reported-by: syzbot+abed06851c5ffe010921@syzkaller.appspotmail.com
Fix commit: 7bc40aedf24d mac80211: free sta in sta_info_insert_finish() on errors
First crash: 1230d, last: 1225d
Discussions (9)
Title Replies (including bot) Last reply
[PATCH 5.4 000/158] 5.4.80-rc1 review 166 (166) 2020/12/11 20:25
[PATCH 4.19 00/91] 4.19.160-rc1 review 98 (98) 2020/11/24 22:52
[PATCH 5.9 000/252] 5.9.11-rc1 review 259 (259) 2020/11/24 20:28
[PATCH 4.4 00/38] 4.4.246-rc1 review 43 (43) 2020/11/24 19:53
[PATCH 4.9 00/47] 4.9.246-rc1 review 51 (51) 2020/11/24 08:31
[PATCH 4.14 00/60] 4.14.209-rc1 review 63 (63) 2020/11/24 07:21
[PATCH] mac80211: free sta in sta_info_insert_finish() on errors 1 (1) 2020/11/12 10:22
[PATCH] mac80211: wind down station state earlier 2 (2) 2020/11/12 08:26
linux-next test error: BUG: sleeping function called from invalid context in sta_info_move_state 0 (1) 2020/11/05 16:14

Sample crash report:
BUG: sleeping function called from invalid context at net/mac80211/sta_info.c:1962
in_atomic(): 0, irqs_disabled(): 0, non_block: 0, pid: 21, name: kworker/u4:1
INFO: lockdep is turned off.
Preemption disabled at:
[<ffffffff88e875af>] __mutex_lock_common kernel/locking/mutex.c:955 [inline]
[<ffffffff88e875af>] __mutex_lock+0x10f/0x1110 kernel/locking/mutex.c:1103
CPU: 0 PID: 21 Comm: kworker/u4:1 Not tainted 5.10.0-rc2-next-20201109-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: phy4 ieee80211_iface_work
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x107/0x163 lib/dump_stack.c:118
 ___might_sleep.cold+0x1e8/0x22e kernel/sched/core.c:7293
 sta_info_move_state+0x32/0x8d0 net/mac80211/sta_info.c:1962
 sta_info_free+0x65/0x3b0 net/mac80211/sta_info.c:274
 sta_info_insert_rcu+0x303/0x2ba0 net/mac80211/sta_info.c:738
 ieee80211_ibss_finish_sta+0x212/0x390 net/mac80211/ibss.c:592
 ieee80211_ibss_work+0x2c7/0xe80 net/mac80211/ibss.c:1700
 ieee80211_iface_work+0x91f/0xa90 net/mac80211/iface.c:1478
 process_one_work+0x933/0x15a0 kernel/workqueue.c:2272
 worker_thread+0x64c/0x1120 kernel/workqueue.c:2418
 kthread+0x3af/0x4a0 kernel/kthread.c:292
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:296

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/11/09 11:10 linux-next 2ad438219819 64069d48 .config console log report ci-upstream-linux-next-kasan-gce-root
2020/11/09 11:10 linux-next 2ad438219819 64069d48 .config console log report ci-upstream-linux-next-kasan-gce-root
2020/11/04 06:24 linux-next cf7cd542d1b5 cba33199 .config console log report ci-upstream-linux-next-kasan-gce-root
* Struck through repros no longer work on HEAD.