------------[ cut here ]------------
WARNING: CPU: 1 PID: 5777 at net/mac80211/tx.c:4851 __ieee80211_beacon_get+0x183d/0x2080 net/mac80211/tx.c:5075
Modules linked in:
CPU: 1 PID: 5777 Comm: syz.0.344 Not tainted 5.15.169-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/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 17 34 b5 f7 0f 0b e9 4b fa ff ff e8 0b 34 b5 f7 0f 0b e9 3b fe ff ff e8 ff 33 b5 f7 0f 0b e9 06 ee ff ff e8 f3 33 b5 f7 <0f> 0b e9 91 f0 ff ff 44 89 f1 80 e1 07 80 c1 03 38 c1 0f 8c 2d ea
RSP: 0018:ffffc90000dd0840 EFLAGS: 00010246
RAX: ffffffff89cb3fed RBX: 0000000000000000 RCX: ffff88802a843b80
RDX: 0000000000000100 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc90000dd0a70 R08: ffffffff89cb3078 R09: ffffffff89cb2a4b
R10: 0000000000000003 R11: ffff88802a843b80 R12: dffffc0000000000
R13: ffff888062678c80 R14: ffff88806267a298 R15: 1ffff920001ba118
FS: 00007fccc7c1c6c0(0000) GS:ffff8880b9100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020076030 CR3: 0000000062650000 CR4: 00000000003506e0
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:1688 [inline]
__hrtimer_run_queues+0x598/0xcf0 kernel/time/hrtimer.c:1752
hrtimer_run_softirq+0x196/0x2c0 kernel/time/hrtimer.c:1769
handle_softirqs+0x3a7/0x930 kernel/softirq.c:558
__do_softirq kernel/softirq.c:592 [inline]
invoke_softirq kernel/softirq.c:432 [inline]
__irq_exit_rcu+0x157/0x240 kernel/softirq.c:641
irq_exit_rcu+0x5/0x20 kernel/softirq.c:653
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1108 [inline]
sysvec_apic_timer_interrupt+0xa0/0xc0 arch/x86/kernel/apic/apic.c:1108
asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:676
RIP: 0010:check_region_inline mm/kasan/generic.c:172 [inline]
RIP: 0010:kasan_check_range+0x14/0x290 mm/kasan/generic.c:189
Code: ff c3 0f 0b b8 ea ff ff ff c3 cc cc cc cc cc cc cc cc cc cc cc cc 55 41 57 41 56 53 b0 01 48 85 f6 0f 84 9a 01 00 00 48 89 fd <48> 01 f5 0f 82 59 02 00 00 48 89 fd 48 c1 ed 2f 81 fd ff ff 01 00
RSP: 0018:ffffc900032a6ec0 EFLAGS: 00000202
RAX: 0000000000000001 RBX: ffffea0001809134 RCX: ffffffff81bf4f90
RDX: 0000000000000001 RSI: 0000000000000004 RDI: ffffea0001809134
RBP: ffffea0001809134 R08: dffffc0000000000 R09: fffff94000301227
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: ffffea0001809100 R14: 0000000001100dca R15: 0000000000000000
instrument_atomic_write include/linux/instrumented.h:86 [inline]
atomic_set include/linux/atomic/atomic-instrumented.h:41 [inline]
set_page_count include/linux/page_ref.h:77 [inline]
set_page_refcounted mm/internal.h:96 [inline]
post_alloc_hook+0xa0/0x220 mm/page_alloc.c:2392
prep_new_page mm/page_alloc.c:2426 [inline]
get_page_from_freelist+0x322a/0x33c0 mm/page_alloc.c:4159
__alloc_pages+0x272/0x700 mm/page_alloc.c:5423
alloc_pages_vma+0x39a/0x800 mm/mempolicy.c:2146
wp_page_copy+0x221/0x2070 mm/memory.c:3038
handle_pte_fault mm/memory.c:4655 [inline]
__handle_mm_fault mm/memory.c:4772 [inline]
handle_mm_fault+0x2a3d/0x5960 mm/memory.c:4870
do_user_addr_fault arch/x86/mm/fault.c:1357 [inline]
handle_page_fault arch/x86/mm/fault.c:1445 [inline]
exc_page_fault+0x271/0x700 arch/x86/mm/fault.c:1501
asm_exc_page_fault+0x22/0x30 arch/x86/include/asm/idtentry.h:606
RIP: 0010:__put_user_nocheck_4+0x3/0x11
Code: 00 00 48 39 d9 73 54 0f 01 cb 66 89 01 31 c9 0f 01 ca c3 0f 1f 44 00 00 48 bb fd ef ff ff ff 7f 00 00 48 39 d9 73 34 0f 01 cb <89> 01 31 c9 0f 01 ca c3 66 0f 1f 44 00 00 48 bb f9 ef ff ff ff 7f
RSP: 0018:ffffc900032a78f8 EFLAGS: 00050246
RAX: 0000000000000000 RBX: 0000000020076030 RCX: 0000000020076030
RDX: ffff88802a843b80 RSI: 0000000000000002 RDI: 00000000ffffffff
RBP: ffffc900032a7a70 R08: ffffffff8841fe9d R09: fffff52000654ed9
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000000
R13: 0000000020076000 R14: 0000000000000002 R15: ffffc900032a7d60
____sys_recvmsg+0x35b/0x530 net/socket.c:2668
___sys_recvmsg+0x1ec/0x690 net/socket.c:2697
do_recvmmsg+0x36f/0x8f0 net/socket.c:2791
__sys_recvmmsg net/socket.c:2870 [inline]
__do_sys_recvmmsg net/socket.c:2893 [inline]
__se_sys_recvmmsg net/socket.c:2886 [inline]
__x64_sys_recvmmsg+0x195/0x240 net/socket.c:2886
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:0x7fccc97c5719
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fccc7c1c038 EFLAGS: 00000246 ORIG_RAX: 000000000000012b
RAX: ffffffffffffffda RBX: 00007fccc997d058 RCX: 00007fccc97c5719
RDX: 0000000000010106 RSI: 00000000200000c0 RDI: 0000000000000003
RBP: 00007fccc983832e R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000002 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000001 R14: 00007fccc997d058 R15: 00007fff64821358
----------------
Code disassembly (best guess):
0: ff c3 inc %ebx
2: 0f 0b ud2
4: b8 ea ff ff ff mov $0xffffffea,%eax
9: c3 ret
a: cc int3
b: cc int3
c: cc int3
d: cc int3
e: cc int3
f: cc int3
10: cc int3
11: cc int3
12: cc int3
13: cc int3
14: cc int3
15: cc int3
16: 55 push %rbp
17: 41 57 push %r15
19: 41 56 push %r14
1b: 53 push %rbx
1c: b0 01 mov $0x1,%al
1e: 48 85 f6 test %rsi,%rsi
21: 0f 84 9a 01 00 00 je 0x1c1
27: 48 89 fd mov %rdi,%rbp
* 2a: 48 01 f5 add %rsi,%rbp <-- trapping instruction
2d: 0f 82 59 02 00 00 jb 0x28c
33: 48 89 fd mov %rdi,%rbp
36: 48 c1 ed 2f shr $0x2f,%rbp
3a: 81 fd ff ff 01 00 cmp $0x1ffff,%ebp