WARNING in _cfg80211_unregister_wdev

From: syzbot
Date: Thu Jan 28 2021 - 11:59:39 EST


Hello,

syzbot found the following issue on:

HEAD commit: d1f3bdd4 net: dsa: rtl8366rb: standardize init jam tables
git tree: net-next
console output: https://syzkaller.appspot.com/x/log.txt?x=12460f2cd00000
kernel config: https://syzkaller.appspot.com/x/.config?x=b5f48fca2e44a9a2
dashboard link: https://syzkaller.appspot.com/bug?extid=4305e814f9b267131776
compiler: gcc (GCC) 10.1.0-syz 20200507
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=10c306bf500000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=17e0311b500000

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+4305e814f9b267131776@xxxxxxxxxxxxxxxxxxxxxxxxx

------------[ 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


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzkaller@xxxxxxxxxxxxxxxx.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.
syzbot can test patches for this issue, for details see:
https://goo.gl/tpsmEJ#testing-patches