WARNING in sta_info_alloc

4 views
Skip to first unread message

syzbot

unread,
Oct 5, 2020, 8:47:20 AM10/5/20
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: cbfa1702 Linux 4.14.198
git tree: linux-4.14.y
console output: https://syzkaller.appspot.com/x/log.txt?x=127e49c0500000
kernel config: https://syzkaller.appspot.com/x/.config?x=3990958d85b55e59
dashboard link: https://syzkaller.appspot.com/bug?extid=0a4b4bdcf93b75a474e5
compiler: gcc (GCC) 10.1.0-syz 20200507

Unfortunately, I don't have any reproducer for this issue yet.

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+0a4b4b...@syzkaller.appspotmail.com

------------[ cut here ]------------
WARNING: CPU: 0 PID: 23310 at net/mac80211/ieee80211_i.h:1408 ieee80211_get_sband net/mac80211/ieee80211_i.h:1408 [inline]
WARNING: CPU: 0 PID: 23310 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: 0 PID: 23310 Comm: syz-executor.4 Not tainted 4.14.198-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:ffff88804f96f5d8 EFLAGS: 00010216
RAX: 0000000000040000 RBX: 0000000000000000 RCX: ffffc90005b60000
RDX: 000000000000080a RSI: ffffffff8603d369 RDI: 0000000000000286
RBP: ffff88804f1ea0e0 R08: 0000000000000000 R09: 0000000000020012
R10: ffff88809ebbcfc0 R11: ffff88809ebbc6c0 R12: ffff888054736c00
R13: ffff88805a7b9f40 R14: ffff888054737188 R15: ffff888054737010
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:5256
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:0x45de89
RSP: 002b:00007fa19a931c78 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 000000000002ba80 RCX: 000000000045de89
RDX: 0000000000000000 RSI: 0000000020000040 RDI: 0000000000000004
RBP: 000000000118bf60 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000118bf2c
R13: 00007ffc81c55f8f R14: 00007fa19a9329c0 R15: 000000000118bf2c
Kernel Offset: disabled
Rebooting in 86400 seconds..


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

syzbot

unread,
Oct 5, 2020, 4:21:16 PM10/5/20
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: b09c3451 Linux 4.19.149
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=167000e7900000
kernel config: https://syzkaller.appspot.com/x/.config?x=d7c6dfb55644e8fd
dashboard link: https://syzkaller.appspot.com/bug?extid=9d59123ecf0619973399
compiler: gcc (GCC) 10.1.0-syz 20200507

Unfortunately, I don't have any reproducer for this issue yet.

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+9d5912...@syzkaller.appspotmail.com

WARNING: CPU: 0 PID: 30149 at net/mac80211/ieee80211_i.h:1413 ieee80211_get_sband net/mac80211/ieee80211_i.h:1413 [inline]
WARNING: CPU: 0 PID: 30149 at net/mac80211/ieee80211_i.h:1413 sta_info_alloc+0x147b/0x1940 net/mac80211/sta_info.c:398
Kernel panic - not syncing: panic_on_warn set ...

CPU: 0 PID: 30149 Comm: syz-executor.4 Not tainted 4.19.149-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+0x22c/0x33e lib/dump_stack.c:118
panic+0x2ac/0x565 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+0x1e1/0x330 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+0x147b/0x1940 net/mac80211/sta_info.c:398
Code: fa 48 c7 c2 a0 5d cd 88 be a5 02 00 00 48 c7 c7 60 5c cd 88 c6 05 c7 df e6 03 01 e8 30 0b 0b fa e9 01 fc ff ff e8 45 b9 24 fa <0f> 0b e8 fe 0b 11 fa 31 ff 89 c3 89 c6 e8 a3 ba 24 fa 85 db 74 36
RSP: 0018:ffff88803aa874e0 EFLAGS: 00010216
RAX: 0000000000040000 RBX: 0000000000000001 RCX: ffffc9000e368000
RDX: 0000000000000a1f RSI: ffffffff874d191b RDI: 0000000000000007
RBP: ffff888048601ce0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000007 R11: 0000000000000003 R12: ffff888090242280
R13: 0000000000000000 R14: 0000000000000010 R15: ffff888090242690
ieee80211_add_station+0x264/0x660 net/mac80211/cfg.c:1434
rdev_add_station net/wireless/rdev-ops.h:176 [inline]
nl80211_new_station+0xd78/0x1540 net/wireless/nl80211.c:5595
genl_family_rcv_msg+0x6bf/0xd50 net/netlink/genetlink.c:602
genl_rcv_msg+0xdf/0x1b0 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+0x717/0xcc0 net/netlink/af_netlink.c:1909
sock_sendmsg_nosec net/socket.c:622 [inline]
sock_sendmsg+0xc7/0x130 net/socket.c:632
___sys_sendmsg+0x7bb/0x8f0 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/0x670 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x45de29
Code: 0d b4 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 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 0f 83 db b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007f2025544c78 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 000000000002ba80 RCX: 000000000045de29
RDX: 0000000000000000 RSI: 0000000020000340 RDI: 0000000000000008
RBP: 000000000118bf60 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000118bf2c
R13: 00007ffd3751fb5f R14: 00007f20255459c0 R15: 000000000118bf2c

syzbot

unread,
Oct 6, 2020, 4:12:23 AM10/6/20
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: b09c3451 Linux 4.19.149
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=13d97077900000
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=121df5c0500000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=12c8853f900000

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+9d5912...@syzkaller.appspotmail.com

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

CPU: 1 PID: 6537 Comm: syz-executor521 Not tainted 4.19.149-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+0x22c/0x33e lib/dump_stack.c:118
panic+0x2ac/0x565 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+0x1e1/0x330 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+0x147b/0x1940 net/mac80211/sta_info.c:398
Code: fa 48 c7 c2 a0 5d cd 88 be a5 02 00 00 48 c7 c7 60 5c cd 88 c6 05 c7 df e6 03 01 e8 30 0b 0b fa e9 01 fc ff ff e8 45 b9 24 fa <0f> 0b e8 fe 0b 11 fa 31 ff 89 c3 89 c6 e8 a3 ba 24 fa 85 db 74 36
RSP: 0018:ffff8880a520f4e0 EFLAGS: 00010293
RAX: ffff8880a322a440 RBX: 0000000000000001 RCX: ffffffff874d1478
RDX: 0000000000000000 RSI: ffffffff874d191b RDI: 0000000000000007
RBP: ffff888084219260 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000007 R11: 0000000000000003 R12: ffff8880a43f6e00
R13: 0000000000000000 R14: 0000000000000010 R15: ffff8880a43f7210
ieee80211_add_station+0x264/0x660 net/mac80211/cfg.c:1434
rdev_add_station net/wireless/rdev-ops.h:176 [inline]
nl80211_new_station+0xd78/0x1540 net/wireless/nl80211.c:5595
genl_family_rcv_msg+0x6bf/0xd50 net/netlink/genetlink.c:602
genl_rcv_msg+0xdf/0x1b0 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+0x717/0xcc0 net/netlink/af_netlink.c:1909
sock_sendmsg_nosec net/socket.c:622 [inline]
sock_sendmsg+0xc7/0x130 net/socket.c:632
___sys_sendmsg+0x7bb/0x8f0 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/0x670 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x4421b9
Code: e8 ac 00 03 00 48 83 c4 18 c3 0f 1f 80 00 00 00 00 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 0f 83 7b 07 fc ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007ffcf636a5c8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00000000004421b9
RDX: 0000000000000000 RSI: 0000000020000040 RDI: 0000000000000005
RBP: 000000306e616c77 R08: 0000000000000000 R09: 0000001d00000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000032
R13: 0000000000000000 R14: 000000000000000c R15: 0000000000000004

syzbot

unread,
Oct 26, 2020, 7:55:18 PM10/26/20
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: 5b7a52cd Linux 4.14.202
git tree: linux-4.14.y
console output: https://syzkaller.appspot.com/x/log.txt?x=17606eef900000
kernel config: https://syzkaller.appspot.com/x/.config?x=fa386e02ca459165
dashboard link: https://syzkaller.appspot.com/bug?extid=0a4b4bdcf93b75a474e5
compiler: gcc (GCC) 10.1.0-syz 20200507
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=15d74fd8500000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=17df368c500000

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+0a4b4b...@syzkaller.appspotmail.com

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): wlan0: link becomes ready
IPv6: ADDRCONF(NETDEV_CHANGE): wlan1: link becomes ready
------------[ cut here ]------------
WARNING: CPU: 0 PID: 7991 at net/mac80211/ieee80211_i.h:1408 ieee80211_get_sband net/mac80211/ieee80211_i.h:1408 [inline]
WARNING: CPU: 0 PID: 7991 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: 0 PID: 7991 Comm: syz-executor226 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:ffff888095bd75d8 EFLAGS: 00010297
RAX: ffff8880b329a580 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 00000000ffffffff RDI: 0000000000000282
RBP: ffff8880a2950fe0 R08: 0000000000000000 R09: 0000000000020012
R10: ffff8880b329ae80 R11: ffff8880b329a580 R12: ffff8880b0958540
R13: ffff888092b61740 R14: ffff8880b0958ac8 R15: ffff8880b0958950
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:0x441909
RSP: 002b:00007ffd2e74d468 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000441909
RDX: 0000000000000000 RSI: 0000000020000200 RDI: 0000000000000005
RBP: 000000306e616c77 R08: 0000000000000000 R09: 0000001300000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000032
R13: 0000000000000000 R14: 000000000000000c R15: 0000000000000004

syzbot

unread,
Jul 19, 2021, 1:24:12 PMJul 19
to syzkaller...@googlegroups.com
syzbot suspects this issue was fixed by commit:

commit 25487a5ff100398cb214ae854358609e4bbd4e7d
Author: Johannes Berg <johann...@intel.com>
Date: Mon May 17 14:47:17 2021 +0000

mac80211: remove warning in ieee80211_get_sband()

bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=1788525a300000
start commit: 811218eceeaa Linux 4.19.172
git tree: linux-4.19.y
kernel config: https://syzkaller.appspot.com/x/.config?x=c1cb1d27398c8808
dashboard link: https://syzkaller.appspot.com/bug?extid=9d59123ecf0619973399
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=11400690d00000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=123b0e5f500000

If the result looks correct, please mark the issue as fixed by replying with:

#syz fix: mac80211: remove warning in ieee80211_get_sband()

For information about bisection process see: https://goo.gl/tpsmEJ#bisection
Reply all
Reply to author
Forward
0 new messages