[v5.15] WARNING in ieee80211_check_rate_mask

0 views
Skip to first unread message

syzbot

unread,
Apr 27, 2024, 10:25:33 AMApr 27
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: c52b9710c83d Linux 5.15.156
git tree: linux-5.15.y
console output: https://syzkaller.appspot.com/x/log.txt?x=1029008f180000
kernel config: https://syzkaller.appspot.com/x/.config?x=567b6ddc38438433
dashboard link: https://syzkaller.appspot.com/bug?extid=19013115c9786bfd0c4e
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40

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

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/1bd4b9969373/disk-c52b9710.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/10509e89bd25/vmlinux-c52b9710.xz
kernel image: https://storage.googleapis.com/syzbot-assets/a623a4c52eb5/bzImage-c52b9710.xz

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

------------[ cut here ]------------
WARNING: CPU: 0 PID: 11240 at net/mac80211/rate.c:282 ieee80211_check_rate_mask+0x23b/0x3b0
Modules linked in:
CPU: 0 PID: 11240 Comm: syz-executor.0 Not tainted 5.15.156-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
RIP: 0010:ieee80211_check_rate_mask+0x23b/0x3b0 net/mac80211/rate.c:282
Code: b6 04 38 84 c0 0f 85 99 00 00 00 89 2a 48 83 c4 08 5b 41 5c 41 5d 41 5e 41 5f 5d c3 e8 7e c8 d2 f7 0f 0b eb e8 e8 75 c8 d2 f7 <0f> 0b eb df 89 f9 80 e1 07 80 c1 03 38 c1 0f 8c 0a fe ff ff e8 0c
RSP: 0018:ffffc90002c27270 EFLAGS: 00010287
RAX: ffffffff89ad946b RBX: ffff88805d41cc80 RCX: 0000000000040000
RDX: ffffc900033fa000 RSI: 00000000000002c2 RDI: 00000000000002c3
RBP: ffff8880769d3510 R08: ffffffff89ad92f9 R09: ffffffff89af75d6
R10: 0000000000000002 R11: ffff888056028000 R12: 0000000000000000
R13: dffffc0000000000 R14: 0000000000000000 R15: ffff8880769d0da0
FS: 00007fb262ebd6c0(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f6e901fcf38 CR3: 000000001a0fd000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
ieee80211_change_bss+0x462/0x910 net/mac80211/cfg.c:2372
rdev_change_bss net/wireless/rdev-ops.h:394 [inline]
nl80211_set_bss+0x84c/0xce0 net/wireless/nl80211.c:7228
genl_family_rcv_msg_doit net/netlink/genetlink.c:731 [inline]
genl_family_rcv_msg net/netlink/genetlink.c:775 [inline]
genl_rcv_msg+0xfbd/0x14a0 net/netlink/genetlink.c:792
netlink_rcv_skb+0x1cf/0x410 net/netlink/af_netlink.c:2505
genl_rcv+0x24/0x40 net/netlink/genetlink.c:803
netlink_unicast_kernel net/netlink/af_netlink.c:1330 [inline]
netlink_unicast+0x7b6/0x980 net/netlink/af_netlink.c:1356
netlink_sendmsg+0xa30/0xd60 net/netlink/af_netlink.c:1924
sock_sendmsg_nosec net/socket.c:704 [inline]
__sock_sendmsg net/socket.c:716 [inline]
____sys_sendmsg+0x59e/0x8f0 net/socket.c:2431
___sys_sendmsg+0x252/0x2e0 net/socket.c:2485
__sys_sendmsg net/socket.c:2514 [inline]
__do_sys_sendmsg net/socket.c:2523 [inline]
__se_sys_sendmsg+0x19a/0x260 net/socket.c:2521
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7fb26498cea9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 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 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fb262ebd0c8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007fb264abb120 RCX: 00007fb26498cea9
RDX: 0000000000000000 RSI: 0000000020000300 RDI: 000000000000000a
RBP: 00007fb2649d94a4 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000006e R14: 00007fb264abb120 R15: 00007fff1f86df68
</TASK>


---
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.

If the report is already addressed, let syzbot know by replying with:
#syz fix: exact-commit-title

If you want to overwrite report's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)

If the report is a duplicate of another one, reply with:
#syz dup: exact-subject-of-another-report

If you want to undo deduplication, reply with:
#syz undup

syzbot

unread,
May 2, 2024, 3:13:29 AMMay 2
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: b925f60c6ee7 Linux 5.15.157
git tree: linux-5.15.y
console output: https://syzkaller.appspot.com/x/log.txt?x=171add5f180000
kernel config: https://syzkaller.appspot.com/x/.config?x=2a1cb0d51cbb9dfb
dashboard link: https://syzkaller.appspot.com/bug?extid=19013115c9786bfd0c4e
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1375957f180000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=13afe140980000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/07f51426f82f/disk-b925f60c.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/d41cc73399aa/vmlinux-b925f60c.xz
kernel image: https://storage.googleapis.com/syzbot-assets/0f542c09e64b/bzImage-b925f60c.xz

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

------------[ cut here ]------------
WARNING: CPU: 0 PID: 3499 at net/mac80211/rate.c:282 ieee80211_check_rate_mask+0x23b/0x3b0
Modules linked in:
CPU: 0 PID: 3499 Comm: syz-executor304 Not tainted 5.15.157-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
RIP: 0010:ieee80211_check_rate_mask+0x23b/0x3b0 net/mac80211/rate.c:282
Code: b6 04 38 84 c0 0f 85 99 00 00 00 89 2a 48 83 c4 08 5b 41 5c 41 5d 41 5e 41 5f 5d c3 e8 4e 9d d2 f7 0f 0b eb e8 e8 45 9d d2 f7 <0f> 0b eb df 89 f9 80 e1 07 80 c1 03 38 c1 0f 8c 0a fe ff ff e8 2c
RSP: 0018:ffffc900014df270 EFLAGS: 00010293
RAX: ffffffff89adbf9b RBX: ffff88801d7e4c80 RCX: ffff888012b48000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffff88801dd33510 R08: ffffffff89adbe29 R09: ffffffff89afa106
R10: 0000000000000002 R11: ffff888012b48000 R12: 0000000000000000
R13: dffffc0000000000 R14: 0000000000000000 R15: ffff88801dd30da0
FS: 0000555555e6c380(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005621aaec8160 CR3: 000000001f1e0000 CR4: 00000000003506f0
RIP: 0033:0x7f23aadf3719
Code: 48 83 c4 28 c3 e8 e7 18 00 00 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 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffef3037018 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007ffef30371e8 RCX: 00007f23aadf3719
RDX: 0000000000000000 RSI: 0000000020000300 RDI: 0000000000000004
RBP: 00007f23aae66610 R08: 00007ffef30371e8 R09: 00007ffef30371e8
R10: 0000000000000024 R11: 0000000000000246 R12: 0000000000000001
R13: 00007ffef30371d8 R14: 0000000000000001 R15: 0000000000000001
</TASK>


---
If you want syzbot to run the reproducer, reply with:
#syz test: git://repo/address.git branch-or-commit-hash
If you attach or paste a git patch, syzbot will apply it before testing.

syzbot

unread,
May 15, 2024, 10:03:07 AMMay 15
to syzkaller...@googlegroups.com
syzbot suspects this issue could be fixed by backporting the following commit:

commit ce04abc3fcc62cd5640af981ebfd7c4dc3bded28
git tree: upstream
Author: Johannes Berg <johann...@intel.com>
Date: Fri Feb 24 09:52:19 2023 +0000

wifi: mac80211: check basic rates validity

bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=17b18d24980000
Please keep in mind that other backports might be required as well.

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