syzbot


WARNING in cfg80211_connect

Status: fixed on 2021/05/14 02:49
Reported-by: syzbot+074132c5f0efd1b87943@syzkaller.appspotmail.com
Fix commit: ee1a5262eb01 cfg80211: remove WARN_ON() in cfg80211_sme_connect
First crash: 790d, last: 596d

Fix bisection: fixed by (bisect log) :
commit ee1a5262eb01fc347de97b0d3e0bc0e6f83ad8e1
Author: Du Cheng <ducheng2@gmail.com>
Date: Wed Apr 7 16:27:56 2021 +0000

  cfg80211: remove WARN_ON() in cfg80211_sme_connect

similar bugs (2):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in cfg80211_connect C done 2320 599d 790d 22/24 fixed on 2021/11/10 00:50
linux-4.14 WARNING in cfg80211_connect C done 101 611d 790d 1/1 fixed on 2021/05/03 13:12

Sample crash report:
IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready
wlan1: Created IBSS using preconfigured BSSID 50:50:50:50:50:50
wlan1: Creating new IBSS network, BSSID 50:50:50:50:50:50
IPv6: ADDRCONF(NETDEV_CHANGE): wlan1: link becomes ready
------------[ cut here ]------------
WARNING: CPU: 1 PID: 8128 at net/wireless/sme.c:533 cfg80211_sme_connect net/wireless/sme.c:533 [inline]
WARNING: CPU: 1 PID: 8128 at net/wireless/sme.c:533 cfg80211_connect.cold+0x47/0x6c net/wireless/sme.c:1220
Kernel panic - not syncing: panic_on_warn set ...

CPU: 1 PID: 8128 Comm: syz-executor557 Not tainted 4.19.186-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x1fc/0x2ef lib/dump_stack.c:118
 panic+0x26a/0x50e kernel/panic.c:186
 __warn.cold+0x20/0x5a kernel/panic.c:541
 report_bug+0x262/0x2b0 lib/bug.c:186
 fixup_bug arch/x86/kernel/traps.c:178 [inline]
 fixup_bug arch/x86/kernel/traps.c:173 [inline]
 do_error_trap+0x1d7/0x310 arch/x86/kernel/traps.c:296
 invalid_op+0x14/0x20 arch/x86/entry/entry_64.S:1038
RIP: 0010:cfg80211_sme_connect net/wireless/sme.c:533 [inline]
RIP: 0010:cfg80211_connect.cold+0x47/0x6c net/wireless/sme.c:1220
Code: 48 c7 c7 e0 30 66 89 e8 54 79 df ff 0f 0b 41 bc ea ff ff ff e9 14 d2 77 ff e8 dd 90 4f f9 48 c7 c7 e0 30 66 89 e8 36 79 df ff <0f> 0b 41 bc 8d ff ff ff e9 b3 d8 77 ff e8 bf 90 4f f9 48 c7 c7 e0
RSP: 0018:ffff888094c9f370 EFLAGS: 00010286
RAX: 0000000000000024 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff814dddb1 RDI: ffffed1012993e60
RBP: ffff888097671190 R08: 0000000000000024 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: ffff888094c9f508
R13: ffffffff89675b60 R14: ffff8880976711b8 R15: 0000000000000006
 nl80211_connect+0x1672/0x2010 net/wireless/nl80211.c:9574
 genl_family_rcv_msg+0x642/0xc40 net/netlink/genetlink.c:602
 genl_rcv_msg+0xbf/0x160 net/netlink/genetlink.c:627
 netlink_rcv_skb+0x160/0x440 net/netlink/af_netlink.c:2455
 genl_rcv+0x24/0x40 net/netlink/genetlink.c:638
 netlink_unicast_kernel net/netlink/af_netlink.c:1318 [inline]
 netlink_unicast+0x4d5/0x690 net/netlink/af_netlink.c:1344
 netlink_sendmsg+0x6bb/0xc40 net/netlink/af_netlink.c:1909
 sock_sendmsg_nosec net/socket.c:622 [inline]
 sock_sendmsg+0xc3/0x120 net/socket.c:632
 ___sys_sendmsg+0x7bb/0x8e0 net/socket.c:2115
 __sys_sendmsg net/socket.c:2153 [inline]
 __do_sys_sendmsg net/socket.c:2162 [inline]
 __se_sys_sendmsg net/socket.c:2160 [inline]
 __x64_sys_sendmsg+0x132/0x220 net/socket.c:2160
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x441089
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 41 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:00007ffe351d3038 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000441089
RDX: 0000000000000000 RSI: 00000000200001c0 RDI: 0000000000000003
RBP: 0000000000000000 R08: 0000000c00000000 R09: 0000000c00000000
R10: 0000000c00000000 R11: 0000000000000246 R12: 0000000000009f6b
R13: 00007ffe351d30a0 R14: 00007ffe351d3090 R15: 00007ffe351d305c
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (336):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-linux-4-19 2021/04/13 01:41 linux-4.19.y 830a059cbba6 6a81331a .config log report syz C WARNING in cfg80211_connect
ci2-linux-4-19 2021/04/12 01:33 linux-4.19.y 830a059cbba6 6a81331a .config log report syz C WARNING in cfg80211_connect
ci2-linux-4-19 2021/04/11 07:10 linux-4.19.y 830a059cbba6 6a81331a .config log report syz C WARNING in cfg80211_connect
ci2-linux-4-19 2021/04/07 02:49 linux-4.19.y 2034d6f0838e 6a81331a .config log report syz C WARNING in cfg80211_connect
ci2-linux-4-19 2021/03/13 23:47 linux-4.19.y 030194a5b292 4a003785 .config log report syz C WARNING in cfg80211_connect
ci2-linux-4-19 2021/03/08 22:33 linux-4.19.y 2cae3e25b706 09fbf400 .config log report syz C WARNING in cfg80211_connect
ci2-linux-4-19 2021/02/22 20:51 linux-4.19.y 255b58a2b3af c26fb06b .config log report syz C WARNING in cfg80211_connect
ci2-linux-4-19 2021/02/22 11:34 linux-4.19.y 255b58a2b3af a659b3f1 .config log report syz C WARNING in cfg80211_connect
ci2-linux-4-19 2021/02/21 16:47 linux-4.19.y 255b58a2b3af 3e5ed8b4 .config log report syz C WARNING in cfg80211_connect
ci2-linux-4-19 2021/02/20 23:51 linux-4.19.y 255b58a2b3af 3e5ed8b4 .config log report syz C WARNING in cfg80211_connect
ci2-linux-4-19 2021/02/16 09:13 linux-4.19.y 811218eceeaa 98682e5e .config log report syz C WARNING in cfg80211_connect
ci2-linux-4-19 2021/02/16 06:59 linux-4.19.y 811218eceeaa 98682e5e .config log report syz C WARNING in cfg80211_connect
ci2-linux-4-19 2021/02/16 01:56 linux-4.19.y 811218eceeaa 98682e5e .config log report syz C WARNING in cfg80211_connect
ci2-linux-4-19 2021/02/16 00:47 linux-4.19.y 811218eceeaa 98682e5e .config log report syz C WARNING in cfg80211_connect
ci2-linux-4-19 2021/02/15 10:28 linux-4.19.y 811218eceeaa 98682e5e .config log report syz C WARNING in cfg80211_connect
ci2-linux-4-19 2021/02/14 04:39 linux-4.19.y 811218eceeaa 98682e5e .config log report syz C WARNING in cfg80211_connect
ci2-linux-4-19 2021/02/07 13:15 linux-4.19.y 811218eceeaa 2ce644fc .config log report syz C WARNING in cfg80211_connect
ci2-linux-4-19 2021/02/05 08:52 linux-4.19.y 811218eceeaa 23a562df .config log report syz C WARNING in cfg80211_connect
ci2-linux-4-19 2021/02/04 15:00 linux-4.19.y 811218eceeaa 42b90a7c .config log report syz C WARNING in cfg80211_connect
ci2-linux-4-19 2021/02/02 07:17 linux-4.19.y 811218eceeaa e6b95f32 .config log report syz C WARNING in cfg80211_connect
ci2-linux-4-19 2021/01/31 19:01 linux-4.19.y 811218eceeaa fc9fd31e .config log report syz C WARNING in cfg80211_connect
ci2-linux-4-19 2021/01/31 12:34 linux-4.19.y 811218eceeaa fc9fd31e .config log report syz C WARNING in cfg80211_connect
ci2-linux-4-19 2021/01/29 03:41 linux-4.19.y c4ff839de17f 7df34f59 .config log report syz C WARNING in cfg80211_connect
ci2-linux-4-19 2021/01/28 03:35 linux-4.19.y c4ff839de17f a57db36f .config log report syz C WARNING in cfg80211_connect
ci2-linux-4-19 2021/01/27 04:13 linux-4.19.y 2263955bf7e7 55a7d4df .config log report syz C WARNING in cfg80211_connect
ci2-linux-4-19 2021/01/27 03:49 linux-4.19.y 2263955bf7e7 55a7d4df .config log report syz C WARNING in cfg80211_connect
ci2-linux-4-19 2021/01/26 22:54 linux-4.19.y 2263955bf7e7 55a7d4df .config log report syz C WARNING in cfg80211_connect
ci2-linux-4-19 2021/01/24 22:58 linux-4.19.y 2263955bf7e7 52e37319 .config log report syz C WARNING in cfg80211_connect
ci2-linux-4-19 2021/01/24 21:57 linux-4.19.y 2263955bf7e7 52e37319 .config log report syz C WARNING in cfg80211_connect
ci2-linux-4-19 2021/01/23 19:19 linux-4.19.y 2263955bf7e7 52e37319 .config log report syz C WARNING in cfg80211_connect
ci2-linux-4-19 2021/01/20 06:17 linux-4.19.y 43d555d83c3f 63631df1 .config log report syz C WARNING in cfg80211_connect
ci2-linux-4-19 2021/01/19 23:14 linux-4.19.y 43d555d83c3f 63631df1 .config log report syz C WARNING in cfg80211_connect
ci2-linux-4-19 2021/01/19 15:28 linux-4.19.y c110fed0e606 63631df1 .config log report syz C WARNING in cfg80211_connect
ci2-linux-4-19 2021/01/16 02:43 linux-4.19.y 675cc038067f 65a7a854 .config log report syz C
ci2-linux-4-19 2021/01/15 22:48 linux-4.19.y 675cc038067f 65a7a854 .config log report syz C
ci2-linux-4-19 2021/01/13 04:48 linux-4.19.y 675cc038067f 0cdd6185 .config log report syz C
ci2-linux-4-19 2021/01/12 13:00 linux-4.19.y 610bdbf6a174 2c1f2513 .config log report syz C
ci2-linux-4-19 2021/01/10 04:14 linux-4.19.y 610bdbf6a174 2c1f2513 .config log report syz C
ci2-linux-4-19 2021/01/08 19:54 linux-4.19.y 4143d798313f c104d4a3 .config log report syz C
ci2-linux-4-19 2021/01/08 18:16 linux-4.19.y 4143d798313f c104d4a3 .config log report syz C
ci2-linux-4-19 2021/01/03 11:59 linux-4.19.y 3207316b3bee 79264ae3 .config log report syz C
ci2-linux-4-19 2021/01/03 10:54 linux-4.19.y 3207316b3bee 79264ae3 .config log report syz C
ci2-linux-4-19 2021/01/03 06:00 linux-4.19.y 3207316b3bee 79264ae3 .config log report syz C
ci2-linux-4-19 2021/01/03 02:05 linux-4.19.y 3207316b3bee 79264ae3 .config log report syz C
ci2-linux-4-19 2020/10/01 11:35 linux-4.19.y 10ad6cfd5736 4103fce0 .config log report syz C
ci2-linux-4-19 2021/04/14 00:15 linux-4.19.y 830a059cbba6 a184b83e .config log report info WARNING in cfg80211_connect
ci2-linux-4-19 2021/04/12 21:46 linux-4.19.y 830a059cbba6 6a81331a .config log report info WARNING in cfg80211_connect
ci2-linux-4-19 2021/04/10 18:28 linux-4.19.y 830a059cbba6 6a81331a .config log report info WARNING in cfg80211_connect
ci2-linux-4-19 2021/04/10 12:58 linux-4.19.y 830a059cbba6 6a81331a .config log report info WARNING in cfg80211_connect
ci2-linux-4-19 2021/04/08 18:40 linux-4.19.y b4454811f122 6a81331a .config log report info WARNING in cfg80211_connect
ci2-linux-4-19 2021/04/08 15:21 linux-4.19.y b4454811f122 6a81331a .config log report info WARNING in cfg80211_connect
ci2-linux-4-19 2021/04/08 09:49 linux-4.19.y b4454811f122 6a81331a .config log report info WARNING in cfg80211_connect
ci2-linux-4-19 2021/04/07 18:24 linux-4.19.y b4454811f122 6a81331a .config log report info WARNING in cfg80211_connect
ci2-linux-4-19 2021/04/07 12:59 linux-4.19.y b4454811f122 6a81331a .config log report info WARNING in cfg80211_connect
ci2-linux-4-19 2021/04/07 00:55 linux-4.19.y 2034d6f0838e 6a81331a .config log report info WARNING in cfg80211_connect
ci2-linux-4-19 2021/04/06 05:45 linux-4.19.y 2034d6f0838e 6a81331a .config log report info WARNING in cfg80211_connect
ci2-linux-4-19 2021/04/05 23:35 linux-4.19.y 2034d6f0838e 6a81331a .config log report info WARNING in cfg80211_connect
ci2-linux-4-19 2021/04/02 23:21 linux-4.19.y 2034d6f0838e 6a81331a .config log report info WARNING in cfg80211_connect
ci2-linux-4-19 2021/04/01 10:35 linux-4.19.y 2034d6f0838e 6a81331a .config log report info WARNING in cfg80211_connect
ci2-linux-4-19 2021/03/30 13:40 linux-4.19.y 2034d6f0838e 6a81331a .config log report info WARNING in cfg80211_connect
ci2-linux-4-19 2021/03/29 19:32 linux-4.19.y 78fec1611cbf 6a81331a .config log report info WARNING in cfg80211_connect
ci2-linux-4-19 2021/03/28 04:42 linux-4.19.y 78fec1611cbf a8529b82 .config log report info WARNING in cfg80211_connect
ci2-linux-4-19 2021/03/26 13:33 linux-4.19.y 78fec1611cbf a8529b82 .config log report info WARNING in cfg80211_connect
ci2-linux-4-19 2021/03/24 00:59 linux-4.19.y 125222814e7b e613994b .config log report info WARNING in cfg80211_connect
ci2-linux-4-19 2021/03/23 15:25 linux-4.19.y 125222814e7b e613994b .config log report info WARNING in cfg80211_connect
ci2-linux-4-19 2021/03/22 08:29 linux-4.19.y 125222814e7b bea32f74 .config log report info WARNING in cfg80211_connect
ci2-linux-4-19 2021/03/21 15:34 linux-4.19.y 125222814e7b 4c9a64da .config log report info WARNING in cfg80211_connect
ci2-linux-4-19 2021/03/21 12:56 linux-4.19.y 125222814e7b 17810eae .config log report info WARNING in cfg80211_connect
ci2-linux-4-19 2021/03/20 12:14 linux-4.19.y 125222814e7b e45f5621 .config log report info WARNING in cfg80211_connect
ci2-linux-4-19 2021/03/19 22:15 linux-4.19.y ac3af4beac43 3d01c4de .config log report info WARNING in cfg80211_connect
ci2-linux-4-19 2021/03/19 10:54 linux-4.19.y ac3af4beac43 2af9d324 .config log report info WARNING in cfg80211_connect
ci2-linux-4-19 2021/03/18 09:40 linux-4.19.y ac3af4beac43 7216542e .config log report info WARNING in cfg80211_connect
ci2-linux-4-19 2021/03/17 18:23 linux-4.19.y ac3af4beac43 fdb2bb2c .config log report info WARNING in cfg80211_connect
ci2-linux-4-19 2021/03/17 01:00 linux-4.19.y 030194a5b292 fdb2bb2c .config log report info WARNING in cfg80211_connect
ci2-linux-4-19 2021/03/15 16:07 linux-4.19.y 030194a5b292 fdb2bb2c .config log report info WARNING in cfg80211_connect
ci2-linux-4-19 2021/03/15 06:12 linux-4.19.y 030194a5b292 cc1cff8f .config log report info WARNING in cfg80211_connect
ci2-linux-4-19 2021/03/13 13:31 linux-4.19.y 030194a5b292 4a003785 .config log report info WARNING in cfg80211_connect
ci2-linux-4-19 2021/03/12 20:28 linux-4.19.y 030194a5b292 429d8a6b .config log report info WARNING in cfg80211_connect
ci2-linux-4-19 2021/03/11 09:55 linux-4.19.y 2cae3e25b706 c2ca1f2a .config log report info WARNING in cfg80211_connect
ci2-linux-4-19 2021/03/11 04:50 linux-4.19.y 2cae3e25b706 c2ca1f2a .config log report info WARNING in cfg80211_connect
ci2-linux-4-19 2021/03/10 16:43 linux-4.19.y 2cae3e25b706 764067f3 .config log report info WARNING in cfg80211_connect
ci2-linux-4-19 2021/03/09 17:14 linux-4.19.y 2cae3e25b706 26967e35 .config log report info WARNING in cfg80211_connect
ci2-linux-4-19 2021/03/09 14:37 linux-4.19.y 2cae3e25b706 09fbf400 .config log report info WARNING in cfg80211_connect
ci2-linux-4-19 2021/03/07 18:07 linux-4.19.y 2cae3e25b706 c599ed12 .config log report info WARNING in cfg80211_connect
ci2-linux-4-19 2021/03/07 12:30 linux-4.19.y 2cae3e25b706 c599ed12 .config log report info WARNING in cfg80211_connect
ci2-linux-4-19 2021/03/05 06:18 linux-4.19.y dfb571610ba3 9d751681 .config log report info WARNING in cfg80211_connect
ci2-linux-4-19 2021/03/03 14:26 linux-4.19.y 2d19be4653f5 06ed56cd .config log report info WARNING in cfg80211_connect
ci2-linux-4-19 2021/03/02 13:00 linux-4.19.y 2d19be4653f5 92ead296 .config log report info WARNING in cfg80211_connect
ci2-linux-4-19 2020/10/01 09:37 linux-4.19.y 10ad6cfd5736 4103fce0 .config log report info
* Struck through repros no longer work on HEAD.