syzbot


WARNING in sta_info_alloc

Status: upstream: reported C repro on 2020/10/05 12:47
Reported-by: syzbot+0a4b4bdcf93b75a474e5@syzkaller.appspotmail.com
First crash: 725d, last: 11d
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 471d 724d 22/24 fixed on 2021/11/10 00:50
linux-4.19 WARNING in sta_info_alloc C done 15 468d 725d 1/1 fixed on 2021/07/19 22:15

Sample crash report:
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: 8004 at net/mac80211/ieee80211_i.h:1408 ieee80211_get_sband net/mac80211/ieee80211_i.h:1408 [inline]
WARNING: CPU: 1 PID: 8004 at net/mac80211/ieee80211_i.h:1408 sta_info_alloc+0x1299/0x16e0 net/mac80211/sta_info.c:403
Kernel panic - not syncing: panic_on_warn set ...

CPU: 1 PID: 8004 Comm: syz-executor100 Not tainted 4.14.202-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:ieee80211_get_sband net/mac80211/ieee80211_i.h:1408 [inline]
RIP: 0010:sta_info_alloc+0x1299/0x16e0 net/mac80211/sta_info.c:403
RSP: 0018:ffff8880954b75d8 EFLAGS: 00010297
RAX: ffff88809b778140 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 00000000ffffffff RDI: 0000000000000282
RBP: ffff8880a1df10e0 R08: 0000000000000000 R09: 0000000000020012
R10: ffff88809b778a40 R11: ffff88809b778140 R12: ffff8880b17a6980
R13: ffff8880b2ee9640 R14: ffff8880b17a6f08 R15: ffff8880b17a6d90
 ieee80211_add_station+0x223/0x550 net/mac80211/cfg.c:1422
 rdev_add_station net/wireless/rdev-ops.h:176 [inline]
 nl80211_new_station+0xb4e/0x1290 net/wireless/nl80211.c:5259
 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:0x441979
RSP: 002b:00007ffdbebae048 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000441979
RDX: 0000000000000000 RSI: 0000000020000040 RDI: 0000000000000005
RBP: 000000306e616c77 R08: 0000000000000000 R09: 0000001300000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000032
R13: 0000000000000000 R14: 000000000000000c R15: 0000000000000004
Kernel Offset: disabled
Rebooting in 86400 seconds..

Fix bisection attempts:
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-linux-4-14 2022/09/19 10:58 linux-4.14.y 5df8b4735177 96e03c1c .config log report syz C
ci2-linux-4-14 2022/08/20 09:41 linux-4.14.y b641242202ed 96e03c1c .config log report syz C
ci2-linux-4-14 2022/07/21 09:16 linux-4.14.y 424a46ea058e 96e03c1c .config log report syz C
ci2-linux-4-14 2022/06/21 08:06 linux-4.14.y 84bae26850e3 96e03c1c .config log report syz C
ci2-linux-4-14 2022/05/22 07:28 linux-4.14.y dffb5c6ff09c 96e03c1c .config log report syz C
ci2-linux-4-14 2022/04/22 03:54 linux-4.14.y 15a1c6b6f516 96e03c1c .config log report syz C
ci2-linux-4-14 2022/03/23 03:33 linux-4.14.y eb045674aab3 96e03c1c .config log report syz C
ci2-linux-4-14 2022/02/20 12:01 linux-4.14.y a35d65bedfbc 96e03c1c .config log report syz C
ci2-linux-4-14 2022/01/21 11:25 linux-4.14.y 4ba8e26127c3 96e03c1c .config log report syz C
ci2-linux-4-14 2021/12/22 10:56 linux-4.14.y 8ee0807eedf3 96e03c1c .config log report syz C
ci2-linux-4-14 2021/11/22 09:20 linux-4.14.y 5f9f3b0057d5 96e03c1c .config log report syz C
ci2-linux-4-14 2021/10/23 08:41 linux-4.14.y 2760370b1649 96e03c1c .config log report syz C
ci2-linux-4-14 2021/09/22 16:24 linux-4.14.y 8ea4f73cfa7e 96e03c1c .config log report syz C
ci2-linux-4-14 2021/08/23 14:11 linux-4.14.y 162b95d01320 96e03c1c .config log report syz C
ci2-linux-4-14 2021/07/24 13:22 linux-4.14.y 964f3712e6a7 96e03c1c .config log report syz C
ci2-linux-4-14 2021/06/24 12:48 linux-4.14.y cfb41ef9deb1 96e03c1c .config log report syz C
ci2-linux-4-14 2021/05/25 08:45 linux-4.14.y 96afcb20f36f 96e03c1c .config log report syz C
ci2-linux-4-14 2021/04/25 08:16 linux-4.14.y cf256fbcbe34 96e03c1c .config log report syz C
ci2-linux-4-14 2021/03/26 02:47 linux-4.14.y 670d6552eda8 96e03c1c .config log report syz C
ci2-linux-4-14 2021/02/24 01:48 linux-4.14.y 3242aa3a635c 96e03c1c .config log report syz C
ci2-linux-4-14 2021/01/23 20:34 linux-4.14.y 2d2791fce891 96e03c1c .config log report syz C
ci2-linux-4-14 2020/12/24 20:11 linux-4.14.y 3f2ecb86cb90 96e03c1c .config log report syz C
* Struck through repros no longer work on HEAD.
Crashes (8):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-linux-4-14 2020/10/28 08:46 linux-4.14.y 5b7a52cd2eef 96e03c1c .config log report syz C
ci2-linux-4-14 2020/10/28 06:24 linux-4.14.y 5b7a52cd2eef 96e03c1c .config log report syz C
ci2-linux-4-14 2020/10/27 05:37 linux-4.14.y 5b7a52cd2eef 8b3eaf58 .config log report syz C
ci2-linux-4-14 2020/10/26 23:55 linux-4.14.y 5b7a52cd2eef 8b3eaf58 .config log report syz C
ci2-linux-4-14 2020/11/24 17:18 linux-4.14.y 87335852c5d9 e34b696c .config log report info
ci2-linux-4-14 2020/10/22 00:22 linux-4.14.y 5b7a52cd2eef be6b1582 .config log report info
ci2-linux-4-14 2020/10/05 12:47 linux-4.14.y cbfa1702aaf6 5ef9c291 .config log report info
ci2-linux-4-14 2020/10/05 12:46 linux-4.14.y cbfa1702aaf6 5ef9c291 .config log report info
* Struck through repros no longer work on HEAD.