syzbot


WARNING in _cfg80211_unregister_wdev

Status: fixed on 2021/04/09 19:46
Subsystems: wireless
[Documentation on labels]
Reported-by: syzbot+4305e814f9b267131776@syzkaller.appspotmail.com
Fix commit: 776a39b8196d cfg80211: call cfg80211_destroy_ifaces() with wiphy lock held
First crash: 1236d, last: 1230d
Cause bisection: the cause commit could be any of (bisect log):
  2fe8ef106238 cfg80211: change netdev registration/unregistration semantics
  a05829a7222e cfg80211: avoid holding the RTNL when calling the driver
  38ec7c6b6bd6 virt_wifi: fix deadlock on RTNL
  
Discussions (2)
Title Replies (including bot) Last reply
[PATCH 0/4] rtnl-locking fixes 5 (5) 2021/01/28 17:35
WARNING in _cfg80211_unregister_wdev 0 (1) 2021/01/28 16:58

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 1 PID: 19 at net/wireless/core.c:1113 _cfg80211_unregister_wdev+0x453/0x740 net/wireless/core.c:1113
Modules linked in:
CPU: 1 PID: 19 Comm: kworker/1:0 Not tainted 5.11.0-rc4-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: events cfg80211_destroy_iface_wk
RIP: 0010:_cfg80211_unregister_wdev+0x453/0x740 net/wireless/core.c:1113
Code: 3e f9 48 8d 7d 68 be ff ff ff ff e8 f7 c1 c6 00 31 ff 41 89 c6 89 c6 e8 fb 7f 3e f9 45 85 f6 0f 85 65 fc ff ff e8 6d 78 3e f9 <0f> 0b e9 59 fc ff ff e8 61 78 3e f9 4c 89 f2 48 b8 00 00 00 00 00
RSP: 0018:ffffc90000d97c40 EFLAGS: 00010293
RAX: 0000000000000000 RBX: ffff88801c8ccbd0 RCX: 0000000000000000
RDX: ffff888010df5340 RSI: ffffffff88345363 RDI: 0000000000000003
RBP: ffff888014b08580 R08: 0000000000000000 R09: ffffffff8ca5a267
R10: ffffffff88345355 R11: 0000000000000001 R12: 0000000000000001
R13: ffff888014b08000 R14: 0000000000000000 R15: ffff888014b08580
FS:  0000000000000000(0000) GS:ffff8880b9f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000004aeb50 CR3: 000000000b08e000 CR4: 00000000001506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 ieee80211_if_remove+0x1df/0x300 net/mac80211/iface.c:2014
 ieee80211_del_iface+0x12/0x20 net/mac80211/cfg.c:144
 rdev_del_virtual_intf net/wireless/rdev-ops.h:57 [inline]
 cfg80211_destroy_ifaces+0x1d9/0x6e0 net/wireless/core.c:340
 cfg80211_destroy_iface_wk+0x1a/0x20 net/wireless/core.c:352
 process_one_work+0x98d/0x15f0 kernel/workqueue.c:2275
 worker_thread+0x64c/0x1120 kernel/workqueue.c:2421
 kthread+0x3b1/0x4a0 kernel/kthread.c:292
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:296

Crashes (48):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/01/28 13:00 net-next-old d1f3bdd4eaae eefc07f2 .config console log report syz C ci-upstream-net-kasan-gce WARNING in _cfg80211_unregister_wdev
2021/02/03 11:25 net-next-old 9ae4bdc6e4c1 624dad51 .config console log report info ci-upstream-net-kasan-gce WARNING in _cfg80211_unregister_wdev
2021/02/03 06:19 net-next-old 9ae4bdc6e4c1 624dad51 .config console log report info ci-upstream-net-kasan-gce WARNING in _cfg80211_unregister_wdev
2021/02/03 03:55 net-next-old 9ae4bdc6e4c1 624dad51 .config console log report info ci-upstream-net-kasan-gce WARNING in _cfg80211_unregister_wdev
2021/02/03 01:43 net-next-old 9ae4bdc6e4c1 624dad51 .config console log report info ci-upstream-net-kasan-gce WARNING in _cfg80211_unregister_wdev
2021/02/02 07:30 net-next-old 1a2b60f6f165 e6b95f32 .config console log report info ci-upstream-net-kasan-gce WARNING in _cfg80211_unregister_wdev
2021/02/02 04:24 net-next-old 1a2b60f6f165 e6b95f32 .config console log report info ci-upstream-net-kasan-gce WARNING in _cfg80211_unregister_wdev
2021/02/02 00:59 net-next-old 14e8e0f60088 e6b95f32 .config console log report info ci-upstream-net-kasan-gce WARNING in _cfg80211_unregister_wdev
2021/02/01 21:12 net-next-old 14e8e0f60088 e6b95f32 .config console log report info ci-upstream-net-kasan-gce WARNING in _cfg80211_unregister_wdev
2021/02/01 00:09 net-next-old 14e8e0f60088 fc9fd31e .config console log report info ci-upstream-net-kasan-gce WARNING in _cfg80211_unregister_wdev
2021/01/31 23:49 net-next-old 14e8e0f60088 fc9fd31e .config console log report info ci-upstream-net-kasan-gce WARNING in _cfg80211_unregister_wdev
2021/01/31 15:33 net-next-old 14e8e0f60088 fc9fd31e .config console log report info ci-upstream-net-kasan-gce WARNING in _cfg80211_unregister_wdev
2021/01/31 07:43 net-next-old 14e8e0f60088 fc9fd31e .config console log report info ci-upstream-net-kasan-gce WARNING in _cfg80211_unregister_wdev
2021/01/31 02:04 net-next-old 14e8e0f60088 fc9fd31e .config console log report info ci-upstream-net-kasan-gce WARNING in _cfg80211_unregister_wdev
2021/01/30 23:19 net-next-old 14e8e0f60088 fc9fd31e .config console log report info ci-upstream-net-kasan-gce WARNING in _cfg80211_unregister_wdev
2021/01/30 17:01 net-next-old 14e8e0f60088 fc9fd31e .config console log report info ci-upstream-net-kasan-gce WARNING in _cfg80211_unregister_wdev
2021/01/30 16:52 net-next-old 14e8e0f60088 fc9fd31e .config console log report info ci-upstream-net-kasan-gce WARNING in _cfg80211_unregister_wdev
2021/01/30 16:51 net-next-old 14e8e0f60088 fc9fd31e .config console log report info ci-upstream-net-kasan-gce WARNING in _cfg80211_unregister_wdev
2021/01/30 16:42 net-next-old 14e8e0f60088 fc9fd31e .config console log report info ci-upstream-net-kasan-gce WARNING in _cfg80211_unregister_wdev
2021/01/30 09:15 net-next-old 46eb3c108fe1 fc9fd31e .config console log report info ci-upstream-net-kasan-gce WARNING in _cfg80211_unregister_wdev
2021/01/30 06:36 net-next-old 46eb3c108fe1 fc9fd31e .config console log report info ci-upstream-net-kasan-gce WARNING in _cfg80211_unregister_wdev
2021/01/30 05:34 net-next-old 46eb3c108fe1 fc9fd31e .config console log report info ci-upstream-net-kasan-gce WARNING in _cfg80211_unregister_wdev
2021/01/30 05:13 net-next-old 46eb3c108fe1 fc9fd31e .config console log report info ci-upstream-net-kasan-gce WARNING in _cfg80211_unregister_wdev
2021/01/30 05:02 net-next-old 46eb3c108fe1 fc9fd31e .config console log report info ci-upstream-net-kasan-gce WARNING in _cfg80211_unregister_wdev
2021/01/30 04:47 net-next-old 46eb3c108fe1 fc9fd31e .config console log report info ci-upstream-net-kasan-gce WARNING in _cfg80211_unregister_wdev
2021/01/30 03:08 net-next-old 46eb3c108fe1 fc9fd31e .config console log report info ci-upstream-net-kasan-gce WARNING in _cfg80211_unregister_wdev
2021/01/29 15:16 net-next-old 462512824f90 6593fd32 .config console log report info ci-upstream-net-kasan-gce WARNING in _cfg80211_unregister_wdev
2021/01/29 11:59 net-next-old 462512824f90 6593fd32 .config console log report info ci-upstream-net-kasan-gce WARNING in _cfg80211_unregister_wdev
2021/01/28 23:46 net-next-old d1f3bdd4eaae 7df34f59 .config console log report info ci-upstream-net-kasan-gce WARNING in _cfg80211_unregister_wdev
2021/01/28 11:31 net-next-old d1f3bdd4eaae eefc07f2 .config console log report info ci-upstream-net-kasan-gce WARNING in _cfg80211_unregister_wdev
2021/01/28 11:26 net-next-old d1f3bdd4eaae eefc07f2 .config console log report info ci-upstream-net-kasan-gce WARNING in _cfg80211_unregister_wdev
2021/01/28 11:24 net-next-old d1f3bdd4eaae eefc07f2 .config console log report info ci-upstream-net-kasan-gce WARNING in _cfg80211_unregister_wdev
2021/01/28 11:19 net-next-old d1f3bdd4eaae eefc07f2 .config console log report info ci-upstream-net-kasan-gce WARNING in _cfg80211_unregister_wdev
2021/01/28 11:16 net-next-old d1f3bdd4eaae eefc07f2 .config console log report info ci-upstream-net-kasan-gce WARNING in _cfg80211_unregister_wdev
2021/01/28 11:11 net-next-old d1f3bdd4eaae eefc07f2 .config console log report info ci-upstream-net-kasan-gce WARNING in _cfg80211_unregister_wdev
2021/01/28 11:04 net-next-old d1f3bdd4eaae eefc07f2 .config console log report info ci-upstream-net-kasan-gce WARNING in _cfg80211_unregister_wdev
2021/01/28 11:01 net-next-old d1f3bdd4eaae eefc07f2 .config console log report info ci-upstream-net-kasan-gce WARNING in _cfg80211_unregister_wdev
2021/01/28 10:59 net-next-old d1f3bdd4eaae eefc07f2 .config console log report info ci-upstream-net-kasan-gce WARNING in _cfg80211_unregister_wdev
2021/01/28 10:42 net-next-old d1f3bdd4eaae eefc07f2 .config console log report info ci-upstream-net-kasan-gce WARNING in _cfg80211_unregister_wdev
2021/01/28 23:38 linux-next d03154e8bb6a 7df34f59 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in _cfg80211_unregister_wdev
2021/01/28 12:44 linux-next d03154e8bb6a eefc07f2 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in _cfg80211_unregister_wdev
2021/01/28 11:53 linux-next d03154e8bb6a eefc07f2 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in _cfg80211_unregister_wdev
2021/01/28 11:40 linux-next d03154e8bb6a eefc07f2 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in _cfg80211_unregister_wdev
2021/01/28 11:40 linux-next d03154e8bb6a eefc07f2 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in _cfg80211_unregister_wdev
2021/01/28 11:34 linux-next d03154e8bb6a eefc07f2 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in _cfg80211_unregister_wdev
2021/01/28 09:55 linux-next d03154e8bb6a eefc07f2 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in _cfg80211_unregister_wdev
* Struck through repros no longer work on HEAD.