syzbot


WARNING in sta_info_alloc

Status: fixed on 2021/07/19 22:15
Reported-by: syzbot+9d59123ecf0619973399@syzkaller.appspotmail.com
Fix commit: 25487a5ff100 mac80211: remove warning in ieee80211_get_sband()
First crash: 1291d, last: 1034d
Fix bisection: fixed by (bisect log) :
commit 25487a5ff100398cb214ae854358609e4bbd4e7d
Author: Johannes Berg <johannes.berg@intel.com>
Date: Mon May 17 14:47:17 2021 +0000

  mac80211: remove warning in ieee80211_get_sband()

  
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in sta_info_alloc C done done 145 1037d 1290d 20/26 fixed on 2021/11/10 00:50
linux-4.14 WARNING in sta_info_alloc C 8 424d 1291d 0/1 upstream: reported C repro on 2020/10/05 12:47
Fix bisection attempts (7)
Created Duration User Patch Repo Result
2021/07/19 13:26 3h57m bisect fix linux-4.19.y job log (1)
2021/06/19 12:59 24m bisect fix linux-4.19.y job log (0) log
2021/05/04 14:15 23m bisect fix linux-4.19.y job log (0) log
2021/04/04 13:36 26m bisect fix linux-4.19.y job log (0) log
2021/03/05 12:24 23m bisect fix linux-4.19.y job log (0) log
2021/01/25 17:50 23m bisect fix linux-4.19.y job log (0) log
2020/11/05 08:11 24m bisect fix linux-4.19.y job log (0) log

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
WARNING: CPU: 1 PID: 8147 at net/mac80211/ieee80211_i.h:1413 ieee80211_get_sband net/mac80211/ieee80211_i.h:1413 [inline]
WARNING: CPU: 1 PID: 8147 at net/mac80211/ieee80211_i.h:1413 sta_info_alloc+0x13c3/0x1810 net/mac80211/sta_info.c:416
Kernel panic - not syncing: panic_on_warn set ...

CPU: 1 PID: 8147 Comm: syz-executor108 Not tainted 4.19.172-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:ieee80211_get_sband net/mac80211/ieee80211_i.h:1413 [inline]
RIP: 0010:sta_info_alloc+0x13c3/0x1810 net/mac80211/sta_info.c:416
Code: f9 48 c7 c2 40 cc 66 89 be a5 02 00 00 48 c7 c7 00 cb 66 89 c6 05 ca 76 7a 03 01 e8 42 0d 5c 00 e9 3f fc ff ff e8 4d 51 ce f9 <0f> 0b e8 46 73 bc f9 31 ff 89 c3 89 c6 e8 ab 52 ce f9 85 db 74 19
RSP: 0018:ffff8880b16774d8 EFLAGS: 00010293
RAX: ffff8880b077e680 RBX: 0000000000000001 RCX: ffffffff87940427
RDX: 0000000000000000 RSI: ffffffff87940873 RDI: 0000000000000007
RBP: ffff888095661160 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000007 R11: 0000000000000000 R12: ffff888094cb8780
R13: 0000000000000000 R14: dffffc0000000000 R15: ffff888094cb8b90
 ieee80211_add_station+0x264/0x610 net/mac80211/cfg.c:1435
 rdev_add_station net/wireless/rdev-ops.h:176 [inline]
 nl80211_new_station+0xd78/0x1510 net/wireless/nl80211.c:5601
 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:0x441019
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:00007ffca688d678 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00000000000f4240 RCX: 0000000000441019
RDX: 0000000000000000 RSI: 0000000020000280 RDI: 0000000000000004
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000008eb4
R13: 00007ffca688d6d0 R14: 00007ffca688d6c0 R15: 00007ffca688d694
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (15):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/02/03 12:24 linux-4.19.y 811218eceeaa 624dad51 .config console log report syz C ci2-linux-4-19 WARNING in sta_info_alloc
2020/11/22 03:02 linux-4.19.y 2c746135a12e 0d27f508 .config console log report syz C ci2-linux-4-19
2020/11/10 04:27 linux-4.19.y b94de4d19498 cba33199 .config console log report syz C ci2-linux-4-19
2020/11/06 16:39 linux-4.19.y b94de4d19498 cba33199 .config console log report syz C ci2-linux-4-19
2020/11/06 12:55 linux-4.19.y b94de4d19498 cba33199 .config console log report syz C ci2-linux-4-19
2020/11/06 02:23 linux-4.19.y b94de4d19498 cba33199 .config console log report syz C ci2-linux-4-19
2020/11/05 23:02 linux-4.19.y b94de4d19498 cba33199 .config console log report syz C ci2-linux-4-19
2020/11/05 22:19 linux-4.19.y b94de4d19498 cba33199 .config console log report syz C ci2-linux-4-19
2020/10/06 08:11 linux-4.19.y b09c34517e1a 1880b4a9 .config console log report syz C ci2-linux-4-19
2021/05/20 12:56 linux-4.19.y 3c8c23092588 c560a65d .config console log report info ci2-linux-4-19 WARNING in sta_info_alloc
2021/01/31 05:58 linux-4.19.y 811218eceeaa fc9fd31e .config console log report info ci2-linux-4-19 WARNING in sta_info_alloc
2020/12/26 17:50 linux-4.19.y 13d2ce42de8c 821e0b09 .config console log report info ci2-linux-4-19
2020/12/08 03:46 linux-4.19.y daefdc9eb24b 51a9082e .config console log report info ci2-linux-4-19
2020/10/06 05:34 linux-4.19.y b09c34517e1a 1880b4a9 .config console log report info ci2-linux-4-19
2020/10/05 20:20 linux-4.19.y b09c34517e1a 1880b4a9 .config console log report info ci2-linux-4-19
* Struck through repros no longer work on HEAD.