[v6.1] WARNING in ieee80211_get_max_required_bw

3 views
Skip to first unread message

syzbot

unread,
Oct 26, 2024, 11:03:30 AM10/26/24
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 7ec6f9fa3d97 Linux 6.1.114
git tree: linux-6.1.y
console output: https://syzkaller.appspot.com/x/log.txt?x=177d2a87980000
kernel config: https://syzkaller.appspot.com/x/.config?x=344cdb747ab79921
dashboard link: https://syzkaller.appspot.com/bug?extid=fc7577c140573357e883
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40
userspace arch: arm64

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

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/e7551ab2b38b/disk-7ec6f9fa.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/99ca69a69b01/vmlinux-7ec6f9fa.xz
kernel image: https://storage.googleapis.com/syzbot-assets/0d62742f11c2/Image-7ec6f9fa.gz.xz

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

wlan1: RX AssocResp from 08:02:11:00:00:00 (capab=0x1 status=0 aid=1)
------------[ cut here ]------------
WARNING: CPU: 0 PID: 18106 at net/mac80211/chan.c:248 ieee80211_get_max_required_bw+0x44c/0x464 net/mac80211/chan.c:248
Modules linked in:
CPU: 0 PID: 18106 Comm: kworker/u4:1 Not tainted 6.1.114-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
Workqueue: phy55 ieee80211_iface_work
pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : ieee80211_get_max_required_bw+0x44c/0x464 net/mac80211/chan.c:248
lr : ieee80211_get_max_required_bw+0x44c/0x464 net/mac80211/chan.c:248
sp : ffff800021537020
x29: ffff800021537040 x28: ffff0000df50e258 x27: 0000000000000000
x26: ffff0000df50cc80 x25: dfff800000000000 x24: 0000000000000000
x23: 0000000000000344 x22: 0000000000000000 x21: 0000000000000000
x20: ffff0000df50cc80 x19: dfff800000000000 x18: ffff800021536f40
x17: ffff800018aab000 x16: ffff8000084f7858 x15: 0000000000000002
x14: 000000000000000d x13: ffff0000ced95340 x12: 0000000000100000
x11: 0000000000002fc0 x10: ffff80002ed47000 x9 : ffff800011c2a818
x8 : 0000000000002fc1 x7 : ffff800011c2abc8 x6 : 0000000000000000
x5 : 0000000000000000 x4 : 0000000000000000 x3 : 0000000000000002
x2 : 0000000000000008 x1 : 0000000000000000 x0 : 0000000000000000
Call trace:
ieee80211_get_max_required_bw+0x44c/0x464 net/mac80211/chan.c:248
ieee80211_get_chanctx_vif_max_required_bw net/mac80211/chan.c:294 [inline]
ieee80211_get_chanctx_max_required_bw net/mac80211/chan.c:336 [inline]
_ieee80211_recalc_chanctx_min_def+0x518/0xc78 net/mac80211/chan.c:381
ieee80211_recalc_chanctx_min_def+0x34/0x98 net/mac80211/chan.c:462
ieee80211_recalc_min_chandef+0x3a0/0x464 net/mac80211/util.c:2908
sta_info_move_state+0x53c/0x7c0 net/mac80211/sta_info.c:2300
ieee80211_assoc_success+0x3710/0x54c0 net/mac80211/mlme.c:5001
ieee80211_rx_mgmt_assoc_resp net/mac80211/mlme.c:5201 [inline]
ieee80211_sta_rx_queued_mgmt+0x1dd0/0x36c4 net/mac80211/mlme.c:5831
ieee80211_iface_process_skb net/mac80211/iface.c:1665 [inline]
ieee80211_iface_work+0x574/0xa90 net/mac80211/iface.c:1722
process_one_work+0x7ac/0x1404 kernel/workqueue.c:2292
worker_thread+0x8e4/0xfec kernel/workqueue.c:2439
kthread+0x250/0x2d8 kernel/kthread.c:376
ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:864
irq event stamp: 2307132
hardirqs last enabled at (2307131): [<ffff80000840223c>] seqcount_lockdep_reader_access include/linux/seqlock.h:104 [inline]
hardirqs last enabled at (2307131): [<ffff80000840223c>] timekeeping_get_delta kernel/time/timekeeping.c:254 [inline]
hardirqs last enabled at (2307131): [<ffff80000840223c>] timekeeping_get_ns+0x124/0x3b8 kernel/time/timekeeping.c:388
hardirqs last disabled at (2307132): [<ffff80001228c9f4>] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:405
softirqs last enabled at (2307126): [<ffff800011b6aab8>] spin_unlock_bh include/linux/spinlock.h:396 [inline]
softirqs last enabled at (2307126): [<ffff800011b6aab8>] rate_control_rate_init+0x2f4/0x548 net/mac80211/rate.c:65
softirqs last disabled at (2307122): [<ffff800011b6aa48>] spin_lock_bh include/linux/spinlock.h:356 [inline]
softirqs last disabled at (2307122): [<ffff800011b6aa48>] rate_control_rate_init+0x284/0x548 net/mac80211/rate.c:62
---[ end trace 0000000000000000 ]---
wlan1: associated


---
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,
Oct 27, 2024, 7:50:30 AM10/27/24
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: 7ec6f9fa3d97 Linux 6.1.114
git tree: linux-6.1.y
console output: https://syzkaller.appspot.com/x/log.txt?x=11385230580000
kernel config: https://syzkaller.appspot.com/x/.config?x=c3430b5172170129
dashboard link: https://syzkaller.appspot.com/bug?extid=fc7577c140573357e883
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=13c2cca7980000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=16442940580000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/85855dd3567d/disk-7ec6f9fa.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/2938cf086485/vmlinux-7ec6f9fa.xz
kernel image: https://storage.googleapis.com/syzbot-assets/708aae50ad2d/bzImage-7ec6f9fa.xz

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

wlan1: authenticated
wlan1: RX AssocResp from 08:02:11:00:00:00 (capab=0x1 status=0 aid=1)
------------[ cut here ]------------
WARNING: CPU: 0 PID: 46 at net/mac80211/chan.c:248 ieee80211_get_max_required_bw+0x422/0x450
Modules linked in:
CPU: 0 PID: 46 Comm: kworker/u4:3 Not tainted 6.1.114-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
Workqueue: phy4 ieee80211_iface_work
RIP: 0010:ieee80211_get_max_required_bw+0x422/0x450 net/mac80211/chan.c:248
Code: e9 ad fe ff ff e8 ae 5e 57 f7 8b 04 24 eb 07 e8 a4 5e 57 f7 31 c0 48 83 c4 28 5b 41 5c 41 5d 41 5e 41 5f 5d c3 e8 8e 5e 57 f7 <0f> 0b e9 90 fc ff ff 48 c7 c1 64 36 9a 8e 80 e1 07 80 c1 03 38 c1
RSP: 0018:ffffc90000b771a0 EFLAGS: 00010293
RAX: ffffffff8a3334d2 RBX: 0000000000000000 RCX: ffff88801e6c8000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc90000b77338 R08: ffffffff8a333155 R09: ffffffff8a32643c
R10: 000000000000000e R11: ffff88801e6c8000 R12: dffffc0000000000
R13: ffff8880252f4c80 R14: 0000000000000000 R15: dffffc0000000000
FS: 0000000000000000(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000555588231ca8 CR3: 000000000d08e000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
ieee80211_get_chanctx_vif_max_required_bw net/mac80211/chan.c:294 [inline]
ieee80211_get_chanctx_max_required_bw net/mac80211/chan.c:336 [inline]
_ieee80211_recalc_chanctx_min_def+0x5e1/0xe20 net/mac80211/chan.c:381
ieee80211_recalc_chanctx_min_def+0x20/0x70 net/mac80211/chan.c:462
ieee80211_recalc_min_chandef+0x3e0/0x4a0 net/mac80211/util.c:2908
sta_info_move_state+0x679/0x850 net/mac80211/sta_info.c:2300
ieee80211_assoc_success+0x42e0/0x6110 net/mac80211/mlme.c:5001
ieee80211_rx_mgmt_assoc_resp net/mac80211/mlme.c:5201 [inline]
ieee80211_sta_rx_queued_mgmt+0x2403/0x4100 net/mac80211/mlme.c:5831
ieee80211_iface_process_skb net/mac80211/iface.c:1665 [inline]
ieee80211_iface_work+0x737/0xce0 net/mac80211/iface.c:1722
process_one_work+0x8a9/0x11d0 kernel/workqueue.c:2292
worker_thread+0xa47/0x1200 kernel/workqueue.c:2439
kthread+0x28d/0x320 kernel/kthread.c:376
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295
</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,
Dec 24, 2024, 6:09:06 AM12/24/24
to syzkaller...@googlegroups.com
syzbot suspects this issue was fixed by commit:

commit 5cf45281a6ee768b77057cfad448569132e056cb
Author: Greg Kroah-Hartman <gre...@linuxfoundation.org>
Date: Sun Nov 10 05:02:40 2024 +0000

Revert "wifi: mac80211: fix RCU list iterations"

bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=17ca7f30580000
start commit: 7ec6f9fa3d97 Linux 6.1.114
git tree: linux-6.1.y
If the result looks correct, please mark the issue as fixed by replying with:

#syz fix: Revert "wifi: mac80211: fix RCU list iterations"

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