------------[ cut here ]------------
WARNING: CPU: 1 PID: 5795 at net/mac80211/tx.c:4851 __ieee80211_beacon_get+0x183d/0x2080 net/mac80211/tx.c:5075
Modules linked in:
CPU: 1 PID: 5795 Comm: syz-executor.4 Not tainted 5.15.154-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
RIP: 0010:__ieee80211_beacon_update_cntdwn net/mac80211/tx.c:4851 [inline]
RIP: 0010:__ieee80211_beacon_get+0x183d/0x2080 net/mac80211/tx.c:5075
Code: ff e8 d7 21 cb f7 0f 0b e9 4b fa ff ff e8 cb 21 cb f7 0f 0b e9 3b fe ff ff e8 bf 21 cb f7 0f 0b e9 06 ee ff ff e8 b3 21 cb f7 <0f> 0b e9 91 f0 ff ff 44 89 f1 80 e1 07 80 c1 03 38 c1 0f 8c 2d ea
RSP: 0000:ffffc90000dd0840 EFLAGS: 00010246
RAX: ffffffff89b53a4d RBX: 0000000000000000 RCX: ffff888074aa0000
RDX: 0000000000000100 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc90000dd0a70 R08: ffffffff89b52ad8 R09: ffffffff89b524ab
R10: 0000000000000003 R11: ffff888074aa0000 R12: dffffc0000000000
R13: ffff88805ecd8c80 R14: ffff88805ecda298 R15: 1ffff920001ba118
FS: 00005555559c0480(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f7cdd875fa8 CR3: 0000000072895000 CR4: 00000000003526e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
ieee80211_beacon_get_tim+0xb7/0x950 net/mac80211/tx.c:5194
ieee80211_beacon_get include/net/mac80211.h:4981 [inline]
mac80211_hwsim_beacon_tx+0xe2/0x8a0 drivers/net/wireless/mac80211_hwsim.c:1812
__iterate_interfaces+0x21e/0x4b0 net/mac80211/util.c:793
ieee80211_iterate_active_interfaces_atomic+0xaf/0x140 net/mac80211/util.c:829
mac80211_hwsim_beacon+0xa7/0x180 drivers/net/wireless/mac80211_hwsim.c:1865
__run_hrtimer kernel/time/hrtimer.c:1686 [inline]
__hrtimer_run_queues+0x598/0xcf0 kernel/time/hrtimer.c:1750
hrtimer_run_softirq+0x196/0x2c0 kernel/time/hrtimer.c:1767
__do_softirq+0x3b3/0x93a kernel/softirq.c:558
invoke_softirq kernel/softirq.c:432 [inline]
__irq_exit_rcu+0x155/0x240 kernel/softirq.c:637
irq_exit_rcu+0x5/0x20 kernel/softirq.c:649
sysvec_apic_timer_interrupt+0x91/0xb0 arch/x86/kernel/apic/apic.c:1096
asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:638
RIP: 0010:arch_clear_bit arch/x86/include/asm/current.h:15 [inline]
RIP: 0010:clear_bit include/asm-generic/bitops/instrumented-atomic.h:42 [inline]
RIP: 0010:clear_ti_thread_flag include/linux/thread_info.h:94 [inline]
RIP: 0010:tracehook_notify_resume include/linux/tracehook.h:182 [inline]
RIP: 0010:exit_to_user_mode_loop+0xa4/0x130 kernel/entry/common.c:181
Code: 78 09 00 00 00 74 05 e8 3a f2 e6 ff 89 de 83 e6 04 48 c1 ee 02 4c 89 f7 e8 c9 a8 be ff f6 c3 02 74 40 65 48 8b 1d fc c6 94 7e 80 23 fd 48 83 bb 78 09 00 00 00 75 4f 48 8b bb b8 08 00 00 48
RSP: 0000:ffffc90002f87f10 EFLAGS: 00000202
RAX: 8a4d8d6cccd8d300 RBX: ffff888074aa0000 RCX: ffffffff913edf03
RDX: dffffc0000000000 RSI: ffffffff8a8b2a00 RDI: ffffffff8ad8f240
RBP: 0000000000000000 R08: ffffffff8186da70 R09: ffffed100e954001
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000000
R13: 0000000000000000 R14: ffffc90002f87f58 R15: ffff888074aa0000
exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:214
irqentry_exit_to_user_mode+0x5/0x30 kernel/entry/common.c:320
asm_sysvec_reschedule_ipi+0x16/0x20 arch/x86/include/asm/idtentry.h:643
RIP: 0033:0x7f7cdf30199d
Code: 08 48 83 c3 08 48 39 d1 72 f3 48 83 e8 08 48 39 f2 73 17 66 2e 0f 1f 84 00 00 00 00 00 48 8b 70 f8 48 83 e8 08 48 39 f2 72 f3 <48> 39 c3 73 3e 48 89 33 48 83 c3 08 48 8b 70 f8 48 89 08 48 8b 0b
RSP: 002b:00007ffc8d7c3f10 EFLAGS: 00000212
RAX: 00007f7cdee634b8 RBX: 00007f7cdee4be48 RCX: ffffffff883e03a1
RDX: ffffffff883dff33 RSI: ffffffff883dfe7e RDI: 00007f7cdee712d0
RBP: 00007f7cdee45490 R08: 00007f7cdee5b3a8 R09: 00000000000000a5
R10: 000000008842c30b R11: 0000000000005d58 R12: 00007f7cdee45488
R13: 000000000000001c R14: 00007f7cdf468000 R15: 00007f7cdf474018
----------------
Code disassembly (best guess):
0: 78 09 js 0xb
2: 00 00 add %al,(%rax)
4: 00 74 05 e8 add %dh,-0x18(%rbp,%rax,1)
8: 3a f2 cmp %dl,%dh
a: e6 ff out %al,$0xff
c: 89 de mov %ebx,%esi
e: 83 e6 04 and $0x4,%esi
11: 48 c1 ee 02 shr $0x2,%rsi
15: 4c 89 f7 mov %r14,%rdi
18: e8 c9 a8 be ff call 0xffbea8e6
1d: f6 c3 02 test $0x2,%bl
20: 74 40 je 0x62
22: 65 48 8b 1d fc c6 94 mov %gs:0x7e94c6fc(%rip),%rbx # 0x7e94c726
29: 7e
* 2a: f0 80 23 fd lock andb $0xfd,(%rbx) <-- trapping instruction
2e: 48 83 bb 78 09 00 00 cmpq $0x0,0x978(%rbx)
35: 00
36: 75 4f jne 0x87
38: 48 8b bb b8 08 00 00 mov 0x8b8(%rbx),%rdi
3f: 48 rex.W