syzbot


WARNING in cfg80211_connect

Status: fixed on 2021/05/03 13:12
Reported-by: syzbot+b351ca235d590b372f17@syzkaller.appspotmail.com
Fix commit: bd7b29fb365e cfg80211: remove WARN_ON() in cfg80211_sme_connect
First crash: 790d, last: 611d

Fix bisection: fixed by (bisect log) :
commit bd7b29fb365e7880dad175908bb05428b4c000ea
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
linux-4.19 WARNING in cfg80211_connect C done 336 595d 790d 1/1 fixed on 2021/05/14 02:49
upstream WARNING in cfg80211_connect C done 2320 598d 790d 22/24 fixed on 2021/11/10 00:50

Sample crash report:
wlan1: Created IBSS using preconfigured BSSID 50:50:50:50:50:50
IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
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: 8024 at net/wireless/sme.c:533 cfg80211_sme_connect net/wireless/sme.c:533 [inline]
WARNING: CPU: 1 PID: 8024 at net/wireless/sme.c:533 cfg80211_connect+0x1856/0x2120 net/wireless/sme.c:1141
Kernel panic - not syncing: panic_on_warn set ...

CPU: 1 PID: 8024 Comm: syz-executor758 Not tainted 4.14.209-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:17 [inline]
 dump_stack+0x1b2/0x283 lib/dump_stack.c:58
 panic+0x1f9/0x42d kernel/panic.c:183
 __warn.cold+0x20/0x4b kernel/panic.c:547
 report_bug+0x208/0x249 lib/bug.c:186
 fixup_bug arch/x86/kernel/traps.c:177 [inline]
 fixup_bug arch/x86/kernel/traps.c:172 [inline]
 do_error_trap+0x195/0x2d0 arch/x86/kernel/traps.c:295
 invalid_op+0x1b/0x40 arch/x86/entry/entry_64.S:964
RIP: 0010:cfg80211_sme_connect net/wireless/sme.c:533 [inline]
RIP: 0010:cfg80211_connect+0x1856/0x2120 net/wireless/sme.c:1141
RSP: 0018:ffff8880b1e57448 EFLAGS: 00010297
RAX: ffff888095456540 RBX: ffff88809484d750 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffff8880b4a317a6 RDI: ffffffff886b8838
RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1012909b0a
R10: ffff88809484d855 R11: ffff888095456540 R12: ffff8880b1e575c0
R13: ffffffff886b8700 R14: ffff88809484d878 R15: ffff88809484d850
 nl80211_connect+0x1379/0x1cd0 net/wireless/nl80211.c:9113
 genl_family_rcv_msg+0x572/0xb20 net/netlink/genetlink.c:600
 genl_rcv_msg+0xaf/0x140 net/netlink/genetlink.c:625
 netlink_rcv_skb+0x125/0x390 net/netlink/af_netlink.c:2433
 genl_rcv+0x24/0x40 net/netlink/genetlink.c:636
 netlink_unicast_kernel net/netlink/af_netlink.c:1287 [inline]
 netlink_unicast+0x437/0x610 net/netlink/af_netlink.c:1313
 netlink_sendmsg+0x62e/0xb80 net/netlink/af_netlink.c:1878
 sock_sendmsg_nosec net/socket.c:646 [inline]
 sock_sendmsg+0xb5/0x100 net/socket.c:656
 ___sys_sendmsg+0x6c8/0x800 net/socket.c:2062
 __sys_sendmsg+0xa3/0x120 net/socket.c:2096
 SYSC_sendmsg net/socket.c:2107 [inline]
 SyS_sendmsg+0x27/0x40 net/socket.c:2103
 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
 entry_SYSCALL_64_after_hwframe+0x46/0xbb
RIP: 0033:0x442139
RSP: 002b:00007ffd28e0c938 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000442139
RDX: 0000000000000000 RSI: 00000000200001c0 RDI: 0000000000000003
RBP: 0000000000000000 R08: 0000001300000000 R09: 0000001300000000
R10: 0000001300000000 R11: 0000000000000246 R12: 0000000000008a3b
R13: 0000000000000000 R14: 000000000000000c R15: 0000000000000004
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (101):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-linux-4-14 2020/11/28 23:14 linux-4.14.y 87335852c5d9 3c7136c0 .config log report syz C
ci2-linux-4-14 2020/11/25 23:00 linux-4.14.y 87335852c5d9 3f581b43 .config log report syz C
ci2-linux-4-14 2020/11/25 22:19 linux-4.14.y 87335852c5d9 3f581b43 .config log report syz C
ci2-linux-4-14 2020/11/25 02:35 linux-4.14.y 87335852c5d9 e34b696c .config log report syz C
ci2-linux-4-14 2020/11/21 21:57 linux-4.14.y 8961076ed318 c7ec2d19 .config log report syz C
ci2-linux-4-14 2020/11/21 19:37 linux-4.14.y 8961076ed318 c7ec2d19 .config log report syz C
ci2-linux-4-14 2020/11/19 01:51 linux-4.14.y 8961076ed318 0767f13f .config log report syz C
ci2-linux-4-14 2020/11/13 21:27 linux-4.14.y 27ce4f2a6817 4a7fa9b4 .config log report syz C
ci2-linux-4-14 2020/11/13 15:51 linux-4.14.y 27ce4f2a6817 4a7fa9b4 .config log report syz C
ci2-linux-4-14 2020/11/12 16:34 linux-4.14.y 27ce4f2a6817 77a55c8e .config log report syz C
ci2-linux-4-14 2020/11/10 22:19 linux-4.14.y e98f3c4269fd cca87986 .config log report syz C
ci2-linux-4-14 2020/11/08 16:04 linux-4.14.y 6b6446efedb2 cba33199 .config log report syz C
ci2-linux-4-14 2020/11/05 18:52 linux-4.14.y 6b6446efedb2 cba33199 .config log report syz C
ci2-linux-4-14 2020/11/04 15:27 linux-4.14.y 2b7915014161 cba33199 .config log report syz C
ci2-linux-4-14 2020/11/03 19:21 linux-4.14.y 2b7915014161 cba33199 .config log report syz C
ci2-linux-4-14 2020/11/03 01:06 linux-4.14.y 2b7915014161 7f344fa6 .config log report syz C
ci2-linux-4-14 2020/11/02 10:48 linux-4.14.y 2b7915014161 8bc4594f .config log report syz C
ci2-linux-4-14 2020/11/02 00:19 linux-4.14.y 2b7915014161 8bc4594f .config log report syz C
ci2-linux-4-14 2020/10/30 11:40 linux-4.14.y 2b7915014161 a6e3ac3b .config log report syz C
ci2-linux-4-14 2020/10/29 21:04 linux-4.14.y 2b7915014161 a0c7169a .config log report syz C
ci2-linux-4-14 2020/10/27 02:53 linux-4.14.y 5b7a52cd2eef 8b3eaf58 .config log report syz C
ci2-linux-4-14 2020/10/13 16:12 linux-4.14.y cbfa1702aaf6 bd69ee0d .config log report syz C
ci2-linux-4-14 2020/10/13 12:49 linux-4.14.y cbfa1702aaf6 bd69ee0d .config log report syz C
ci2-linux-4-14 2020/10/13 12:28 linux-4.14.y cbfa1702aaf6 bd69ee0d .config log report syz C
ci2-linux-4-14 2020/10/13 11:16 linux-4.14.y cbfa1702aaf6 bd69ee0d .config log report syz C
ci2-linux-4-14 2020/10/13 05:42 linux-4.14.y cbfa1702aaf6 d32b0bbf .config log report syz C
ci2-linux-4-14 2020/10/13 04:55 linux-4.14.y cbfa1702aaf6 d32b0bbf .config log report syz C
ci2-linux-4-14 2020/10/13 03:45 linux-4.14.y cbfa1702aaf6 d32b0bbf .config log report syz C
ci2-linux-4-14 2020/10/01 12:43 linux-4.14.y cbfa1702aaf6 4103fce0 .config log report syz C
ci2-linux-4-14 2020/11/27 00:47 linux-4.14.y 87335852c5d9 5018c946 .config log report info
ci2-linux-4-14 2020/11/23 08:59 linux-4.14.y 0df445b0f0da 0d27f508 .config log report info
ci2-linux-4-14 2020/11/21 11:37 linux-4.14.y 8961076ed318 c7ec2d19 .config log report info
ci2-linux-4-14 2020/11/19 06:11 linux-4.14.y 8961076ed318 0767f13f .config log report info
ci2-linux-4-14 2020/11/18 15:42 linux-4.14.y 27ce4f2a6817 09323409 .config log report info
ci2-linux-4-14 2020/11/17 14:35 linux-4.14.y 27ce4f2a6817 bd2a760b .config log report info
ci2-linux-4-14 2020/11/17 12:41 linux-4.14.y 27ce4f2a6817 bd2a760b .config log report info
ci2-linux-4-14 2020/11/17 10:34 linux-4.14.y 27ce4f2a6817 bd2a760b .config log report info
ci2-linux-4-14 2020/11/17 04:23 linux-4.14.y 27ce4f2a6817 1bf9a662 .config log report info
ci2-linux-4-14 2020/11/13 11:52 linux-4.14.y 27ce4f2a6817 4a7fa9b4 .config log report info
ci2-linux-4-14 2020/11/13 08:22 linux-4.14.y 27ce4f2a6817 16fca0c8 .config log report info
ci2-linux-4-14 2020/11/12 19:20 linux-4.14.y 27ce4f2a6817 77a55c8e .config log report info
ci2-linux-4-14 2020/11/12 09:34 linux-4.14.y 27ce4f2a6817 cca87986 .config log report info
ci2-linux-4-14 2020/11/12 02:07 linux-4.14.y 27ce4f2a6817 cca87986 .config log report info
ci2-linux-4-14 2020/11/11 13:00 linux-4.14.y 27ce4f2a6817 cca87986 .config log report info
ci2-linux-4-14 2020/11/10 20:20 linux-4.14.y e98f3c4269fd cca87986 .config log report info
ci2-linux-4-14 2020/11/10 11:02 linux-4.14.y e98f3c4269fd cca87986 .config log report info
ci2-linux-4-14 2020/11/08 04:23 linux-4.14.y 6b6446efedb2 cba33199 .config log report info
ci2-linux-4-14 2020/11/08 00:06 linux-4.14.y 6b6446efedb2 cba33199 .config log report info
ci2-linux-4-14 2020/11/07 07:07 linux-4.14.y 6b6446efedb2 cba33199 .config log report info
ci2-linux-4-14 2020/11/04 01:25 linux-4.14.y 2b7915014161 cba33199 .config log report info
ci2-linux-4-14 2020/11/03 14:16 linux-4.14.y 2b7915014161 cba33199 .config log report info
ci2-linux-4-14 2020/11/03 08:04 linux-4.14.y 2b7915014161 7f344fa6 .config log report info
ci2-linux-4-14 2020/11/02 12:15 linux-4.14.y 2b7915014161 8bc4594f .config log report info
ci2-linux-4-14 2020/11/01 17:46 linux-4.14.y 2b7915014161 8bc4594f .config log report info
ci2-linux-4-14 2020/11/01 13:28 linux-4.14.y 2b7915014161 8bc4594f .config log report info
ci2-linux-4-14 2020/10/29 23:39 linux-4.14.y 2b7915014161 a0c7169a .config log report info
ci2-linux-4-14 2020/10/29 17:52 linux-4.14.y 2b7915014161 a0c7169a .config log report info
ci2-linux-4-14 2020/10/29 09:42 linux-4.14.y 2b7915014161 f24824d3 .config log report info
ci2-linux-4-14 2020/10/29 07:58 linux-4.14.y 5b7a52cd2eef f24824d3 .config log report info
ci2-linux-4-14 2020/10/28 17:40 linux-4.14.y 5b7a52cd2eef f24824d3 .config log report info
ci2-linux-4-14 2020/10/26 08:33 linux-4.14.y 5b7a52cd2eef a1839e81 .config log report info
ci2-linux-4-14 2020/10/25 00:17 linux-4.14.y 5b7a52cd2eef a1839e81 .config log report info
ci2-linux-4-14 2020/10/21 11:44 linux-4.14.y 5b7a52cd2eef 99c64d5c .config log report info
ci2-linux-4-14 2020/10/20 20:15 linux-4.14.y cbfa1702aaf6 ff4a3345 .config log report info
ci2-linux-4-14 2020/10/20 05:41 linux-4.14.y cbfa1702aaf6 ff4a3345 .config log report info
ci2-linux-4-14 2020/10/18 19:24 linux-4.14.y cbfa1702aaf6 fea47c01 .config log report info
ci2-linux-4-14 2020/10/18 01:37 linux-4.14.y cbfa1702aaf6 fea47c01 .config log report info
ci2-linux-4-14 2020/10/17 09:43 linux-4.14.y cbfa1702aaf6 6e262c73 .config log report info
ci2-linux-4-14 2020/10/17 00:53 linux-4.14.y cbfa1702aaf6 6e262c73 .config log report info
ci2-linux-4-14 2020/10/01 09:44 linux-4.14.y cbfa1702aaf6 4103fce0 .config log report info
* Struck through repros no longer work on HEAD.