syzbot


WARNING in ieee80211_vif_release_channel (2)

Status: fixed on 2022/03/08 16:11
Reported-by: syzbot+11c342e5e30e9539cabd@syzkaller.appspotmail.com
Fix commit: 87a270625a89 mac80211: fix locking in ieee80211_start_ap error path
First crash: 231d, last: 227d

Cause bisection: introduced by (bisect log) :
commit 0985dba842eaa391858972cfe2724c3c174a2827
Author: David Woodhouse <dwmw@amazon.co.uk>
Date: Sat Oct 23 19:47:19 2021 +0000

  KVM: x86/xen: Fix kvm_xen_has_interrupt() sleeping in kvm_vcpu_block()

Crash: WARNING in ieee80211_vif_release_channel (log)
Repro: C syz .config
similar bugs (4):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 WARNING in ieee80211_vif_release_channel 2 428d 430d 0/1 auto-closed as invalid on 2021/10/03 04:56
linux-4.19 WARNING in ieee80211_vif_release_channel (3) C error 1 67d 67d 0/1 upstream: reported C repro on 2022/06/01 03:26
linux-4.19 WARNING in ieee80211_vif_release_channel (2) 1 290d 290d 0/1 auto-closed as invalid on 2022/02/18 14:29
upstream WARNING in ieee80211_vif_release_channel 3 368d 429d 0/23 auto-closed as invalid on 2021/12/02 06:30
Patch testing requests:
Created Duration User Patch Repo Result
2021/12/20 08:09 11m johannes@sipsolutions.net patch git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git master OK

Sample crash report:
RDX: 0000000000000000 RSI: 00000000200001c0 RDI: 0000000000000003
RBP: 00007fff0e8967b0 R08: 0000000000000002 R09: 000000000000000a
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000004
R13: 00000000000154dc R14: 00007fff0e8967c0 R15: 00007fff0e896778
 </TASK>
------------[ cut here ]------------
WARNING: CPU: 1 PID: 3609 at net/mac80211/chan.c:1862 ieee80211_vif_release_channel+0x1ad/0x220 net/mac80211/chan.c:1862 net/mac80211/chan.c:1862
Modules linked in:
CPU: 0 PID: 3609 Comm: syz-executor292 Not tainted 5.16.0-rc5-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:ieee80211_vif_release_channel+0x1ad/0x220 net/mac80211/chan.c:1862 net/mac80211/chan.c:1862
Code: c1 ea 03 80 3c 02 00 0f 85 82 00 00 00 48 8b ab 10 06 00 00 e9 60 ff ff ff e8 ff 0c d6 f8 0f 0b e9 e2 fe ff ff e8 f3 0c d6 f8 <0f> 0b 48 b8 00 00 00 00 00 fc ff df 4c 89 e2 48 c1 ea 03 80 3c 02
RSP: 0018:ffffc90001f6f350 EFLAGS: 00010293
RAX: 0000000000000000 RBX: ffff88807c840c80 RCX: 0000000000000000
RDX: ffff8880231e1d00 RSI: ffffffff88a1a4dd RDI: 0000000000000003
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000001
R10: ffffffff88a1a49c R11: 0000000000000000 R12: ffff88807c841290
R13: 0000000000000001 R14: 00000000fffffff4 R15: 0000000000000000
FS:  0000555556d17300(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005583abde5108 CR3: 00000000746e6000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 ieee80211_start_ap+0x1b16/0x2780 net/mac80211/cfg.c:1267 net/mac80211/cfg.c:1267
 rdev_start_ap net/wireless/rdev-ops.h:158 [inline]
 rdev_start_ap net/wireless/rdev-ops.h:158 [inline] net/wireless/nl80211.c:5718
 nl80211_start_ap+0x288d/0x3dd0 net/wireless/nl80211.c:5718 net/wireless/nl80211.c:5718
 genl_family_rcv_msg_doit+0x228/0x320 net/netlink/genetlink.c:731 net/netlink/genetlink.c:731
 genl_family_rcv_msg net/netlink/genetlink.c:775 [inline]
 genl_family_rcv_msg net/netlink/genetlink.c:775 [inline] net/netlink/genetlink.c:792
 genl_rcv_msg+0x328/0x580 net/netlink/genetlink.c:792 net/netlink/genetlink.c:792
 netlink_rcv_skb+0x153/0x420 net/netlink/af_netlink.c:2496 net/netlink/af_netlink.c:2496
 genl_rcv+0x24/0x40 net/netlink/genetlink.c:803 net/netlink/genetlink.c:803
 netlink_unicast_kernel net/netlink/af_netlink.c:1319 [inline]
 netlink_unicast_kernel net/netlink/af_netlink.c:1319 [inline] net/netlink/af_netlink.c:1345
 netlink_unicast+0x533/0x7d0 net/netlink/af_netlink.c:1345 net/netlink/af_netlink.c:1345
 netlink_sendmsg+0x904/0xdf0 net/netlink/af_netlink.c:1921 net/netlink/af_netlink.c:1921
 sock_sendmsg_nosec net/socket.c:704 [inline]
 sock_sendmsg_nosec net/socket.c:704 [inline] net/socket.c:724
 sock_sendmsg+0xcf/0x120 net/socket.c:724 net/socket.c:724
 ____sys_sendmsg+0x6e8/0x810 net/socket.c:2409 net/socket.c:2409
 ___sys_sendmsg+0xf3/0x170 net/socket.c:2463 net/socket.c:2463
 __sys_sendmsg+0xe5/0x1b0 net/socket.c:2492 net/socket.c:2492
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_x64 arch/x86/entry/common.c:50 [inline] arch/x86/entry/common.c:80
 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7fed4288dec9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 a1 15 00 00 90 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 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fff0e896738 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007fed4288dec9
RDX: 0000000000000000 RSI: 00000000200001c0 RDI: 0000000000000003
RBP: 00007fff0e8967b0 R08: 0000000000000002 R09: 000000000000000a
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000004
R13: 00000000000154dc R14: 00007fff0e8967c0 R15: 00007fff0e896778
 </TASK>

Crashes (5):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce 2021/12/19 15:38 upstream 3f667b5d4053 44068e19 .config log report syz C WARNING in ieee80211_vif_release_channel
ci-upstream-net-this-kasan-gce 2021/12/19 02:06 net 60ec7fcfe768 44068e19 .config log report syz C WARNING in ieee80211_vif_release_channel
ci-upstream-net-kasan-gce 2021/12/19 03:10 net-next f85b244ee395 44068e19 .config log report syz C WARNING in ieee80211_vif_release_channel
ci-upstream-kasan-gce 2021/12/23 11:55 upstream bc491fb12513 6caa12e4 .config log report info WARNING in ieee80211_vif_release_channel
ci-upstream-net-this-kasan-gce 2021/12/19 01:30 net 60ec7fcfe768 44068e19 .config log report info WARNING in ieee80211_vif_release_channel