------------[ cut here ]------------ WARNING: CPU: 1 PID: 3597 at net/mac80211/tx.c:4851 __ieee80211_beacon_get+0x183d/0x2080 net/mac80211/tx.c:5075 Modules linked in: CPU: 1 PID: 3597 Comm: syz-fuzzer Not tainted 5.15.153-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 f7 88 cc f7 0f 0b e9 4b fa ff ff e8 eb 88 cc f7 0f 0b e9 3b fe ff ff e8 df 88 cc f7 0f 0b e9 06 ee ff ff e8 d3 88 cc 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: ffffffff89b3b0dd RBX: 0000000000000000 RCX: ffff88807ebcd940 RDX: 0000000080000100 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffc90000dd0a70 R08: ffffffff89b3a168 R09: ffffffff89b39b3b R10: 0000000000000003 R11: ffff88807ebcd940 R12: dffffc0000000000 R13: ffff88805f9a4c80 R14: ffff88805f9a6298 R15: 1ffff920001ba118 FS: 000000c000059490(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020000240 CR3: 0000000019ec8000 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: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 common_interrupt+0xa4/0xc0 arch/x86/kernel/irq.c:240 asm_common_interrupt+0x22/0x40 arch/x86/include/asm/idtentry.h:629 RIP: 0010:__sanitizer_cov_trace_const_cmp8+0x0/0x80 kernel/kcov.c:292 Code: 39 d0 77 22 89 f8 89 f6 48 c7 44 0a 08 05 00 00 00 48 89 44 0a 10 48 89 74 0a 18 4c 89 44 0a 20 49 ff c1 4c 89 09 c3 0f 1f 00 <4c> 8b 04 24 65 48 8b 0d 24 32 82 7e 65 8b 05 25 32 82 7e a9 00 01 RSP: 0018:ffffc90003087820 EFLAGS: 00000202 RAX: ffffffff81396f69 RBX: 000000000a6082ab RCX: ffff88807ebcd940 RDX: 0000000000000000 RSI: 000000000a6082ab RDI: 000000001fffffff RBP: ffff888001000000 R08: ffffffff81d323b9 R09: fffff9400010ca01 R10: 0000000000000000 R11: dffffc0000000001 R12: ffff888021940ff0 R13: 00000000000000f0 R14: ffff888021940f00 R15: ffff888000000000 __phys_addr_symbol+0x1d/0x70 arch/x86/mm/physaddr.c:40 check_kernel_text_object mm/usercopy.c:141 [inline] __check_object_size+0x2d1/0x410 mm/usercopy.c:289 check_object_size include/linux/thread_info.h:199 [inline] check_copy_size include/linux/thread_info.h:232 [inline] copy_from_iter include/linux/uio.h:161 [inline] copy_from_iter_full include/linux/uio.h:170 [inline] skb_do_copy_data_nocache include/net/sock.h:2184 [inline] skb_copy_to_page_nocache include/net/sock.h:2210 [inline] tcp_sendmsg_locked+0x1812/0x3a90 net/ipv4/tcp.c:1358 tcp_sendmsg+0x2c/0x40 net/ipv4/tcp.c:1456 sock_sendmsg_nosec net/socket.c:704 [inline] __sock_sendmsg net/socket.c:716 [inline] sock_write_iter+0x39b/0x530 net/socket.c:1079 call_write_iter include/linux/fs.h:2148 [inline] new_sync_write fs/read_write.c:507 [inline] vfs_write+0xacf/0xe50 fs/read_write.c:594 ksys_write+0x1a2/0x2c0 fs/read_write.c:647 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x40720e Code: 48 83 ec 38 e8 13 00 00 00 48 83 c4 38 5d c3 cc cc cc cc cc cc cc cc cc cc cc cc cc 49 89 f2 48 89 fa 48 89 ce 48 89 df 0f 05 <48> 3d 01 f0 ff ff 76 15 48 f7 d8 48 89 c1 48 c7 c0 ff ff ff ff 48 RSP: 002b:000000c000792d20 EFLAGS: 00000216 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 000000000040720e RDX: 00000000000000f0 RSI: 000000c00042e200 RDI: 0000000000000003 RBP: 000000c000792d60 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000216 R12: 000000c000792ea0 R13: 0000000000000001 R14: 000000c0000061a0 R15: 000000000000000e ---------------- Code disassembly (best guess): 0: 39 d0 cmp %edx,%eax 2: 77 22 ja 0x26 4: 89 f8 mov %edi,%eax 6: 89 f6 mov %esi,%esi 8: 48 c7 44 0a 08 05 00 movq $0x5,0x8(%rdx,%rcx,1) f: 00 00 11: 48 89 44 0a 10 mov %rax,0x10(%rdx,%rcx,1) 16: 48 89 74 0a 18 mov %rsi,0x18(%rdx,%rcx,1) 1b: 4c 89 44 0a 20 mov %r8,0x20(%rdx,%rcx,1) 20: 49 ff c1 inc %r9 23: 4c 89 09 mov %r9,(%rcx) 26: c3 ret 27: 0f 1f 00 nopl (%rax) * 2a: 4c 8b 04 24 mov (%rsp),%r8 <-- trapping instruction 2e: 65 48 8b 0d 24 32 82 mov %gs:0x7e823224(%rip),%rcx # 0x7e82325a 35: 7e 36: 65 8b 05 25 32 82 7e mov %gs:0x7e823225(%rip),%eax # 0x7e823262 3d: a9 .byte 0xa9 3e: 00 01 add %al,(%rcx)