------------[ cut here ]------------ WARNING: CPU: 0 PID: 3806 at net/mac80211/tx.c:4929 __ieee80211_beacon_get+0x1ab2/0x2110 net/mac80211/tx.c:5248 Modules linked in: CPU: 0 PID: 3806 Comm: syz-executor174 Not tainted 6.1.79-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024 RIP: 0010:__ieee80211_beacon_update_cntdwn net/mac80211/tx.c:4929 [inline] RIP: 0010:__ieee80211_beacon_get+0x1ab2/0x2110 net/mac80211/tx.c:5248 Code: ff e8 32 f0 77 f7 0f 0b e9 64 ff ff ff e8 26 f0 77 f7 0f 0b e9 79 e8 ff ff e8 1a f0 77 f7 0f 0b e9 9c ed ff ff e8 0e f0 77 f7 <0f> 0b e9 30 f1 ff ff 44 89 f1 80 e1 07 80 c1 03 38 c1 0f 8c 06 e9 RSP: 0018:ffffc90000007820 EFLAGS: 00010246 RAX: ffffffff8a128ee2 RBX: 0000000000000000 RCX: ffff88801f8abb80 RDX: 0000000080000100 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffc90000007a30 R08: ffffffff8a12800c R09: ffffffff8a127812 R10: 0000000000000003 R11: ffff88801f8abb80 R12: dffffc0000000000 R13: 1ffff92000000f1c R14: ffff88801e946260 R15: ffffffff8a1274e0 FS: 00007f9c176e26c0(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000202f6030 CR3: 0000000074e5c000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: ieee80211_beacon_get_tim+0xb1/0x5d0 net/mac80211/tx.c:5335 ieee80211_beacon_get include/net/mac80211.h:5245 [inline] mac80211_hwsim_beacon_tx+0x1d2/0xaa0 drivers/net/wireless/mac80211_hwsim.c:2086 __iterate_interfaces+0x21e/0x4b0 net/mac80211/util.c:788 ieee80211_iterate_active_interfaces_atomic+0xd4/0x170 net/mac80211/util.c:824 mac80211_hwsim_beacon+0xd0/0x1e0 drivers/net/wireless/mac80211_hwsim.c:2142 __run_hrtimer kernel/time/hrtimer.c:1686 [inline] __hrtimer_run_queues+0x5e5/0xe50 kernel/time/hrtimer.c:1750 hrtimer_run_softirq+0x196/0x2c0 kernel/time/hrtimer.c:1767 __do_softirq+0x2e9/0xa4c kernel/softirq.c:571 invoke_softirq kernel/softirq.c:445 [inline] __irq_exit_rcu+0x155/0x240 kernel/softirq.c:650 irq_exit_rcu+0x5/0x20 kernel/softirq.c:662 sysvec_apic_timer_interrupt+0x91/0xb0 arch/x86/kernel/apic/apic.c:1106 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:653 RIP: 0010:lockdep_enabled kernel/locking/lockdep.c:122 [inline] RIP: 0010:lock_release+0x121/0xa20 kernel/locking/lockdep.c:5675 Code: 3d f7 06 09 0d 00 0f 84 2b 05 00 00 65 8b 05 c6 04 98 7e 85 c0 0f 85 1c 05 00 00 65 4c 8b 35 36 fb 97 7e 49 8d 9e dc 0a 00 00 <48> 89 d8 48 c1 e8 03 42 0f b6 04 38 84 c0 0f 85 da 05 00 00 83 3b RSP: 0018:ffffc9000446f820 EFLAGS: 00000246 RAX: 0000000000000000 RBX: ffff88801f8ac65c RCX: ffffffff816a73b7 RDX: 0000000000000000 RSI: ffffffff8b3d1020 RDI: ffffffff8b3d0fe0 RBP: ffffc9000446f948 R08: dffffc0000000000 R09: fffffbfff1ce68c6 R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff9200088df10 R13: ffffffff81cdb5a1 R14: ffff88801f8abb80 R15: dffffc0000000000 _copy_from_user+0x26/0x170 lib/usercopy.c:14 copy_from_user include/linux/uaccess.h:161 [inline] copy_msghdr_from_user+0xaa/0x670 net/socket.c:2444 recvmsg_copy_msghdr net/socket.c:2699 [inline] ___sys_recvmsg net/socket.c:2771 [inline] do_recvmmsg+0x408/0xad0 net/socket.c:2869 __sys_recvmmsg net/socket.c:2948 [inline] __do_sys_recvmmsg net/socket.c:2971 [inline] __se_sys_recvmmsg net/socket.c:2964 [inline] __x64_sys_recvmmsg+0x195/0x240 net/socket.c:2964 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f9c17743e09 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 61 1a 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:00007f9c176e2228 EFLAGS: 00000246 ORIG_RAX: 000000000000012b RAX: ffffffffffffffda RBX: 00007f9c177cd378 RCX: 00007f9c17743e09 RDX: 0000000000010106 RSI: 00000000200000c0 RDI: 0000000000000003 RBP: 00007f9c177cd370 R08: 0000000000000000 R09: 00007f9c176e26c0 R10: 0000000000000002 R11: 0000000000000246 R12: 00007f9c177cd37c R13: 00007f9c1779a1c4 R14: 0031313230386c6e R15: 00007ffe0ea17888 ---------------- Code disassembly (best guess): 0: 3d f7 06 09 0d cmp $0xd0906f7,%eax 5: 00 0f add %cl,(%rdi) 7: 84 2b test %ch,(%rbx) 9: 05 00 00 65 8b add $0x8b650000,%eax e: 05 c6 04 98 7e add $0x7e9804c6,%eax 13: 85 c0 test %eax,%eax 15: 0f 85 1c 05 00 00 jne 0x537 1b: 65 4c 8b 35 36 fb 97 mov %gs:0x7e97fb36(%rip),%r14 # 0x7e97fb59 22: 7e 23: 49 8d 9e dc 0a 00 00 lea 0xadc(%r14),%rbx * 2a: 48 89 d8 mov %rbx,%rax <-- trapping instruction 2d: 48 c1 e8 03 shr $0x3,%rax 31: 42 0f b6 04 38 movzbl (%rax,%r15,1),%eax 36: 84 c0 test %al,%al 38: 0f 85 da 05 00 00 jne 0x618 3e: 83 .byte 0x83 3f: 3b .byte 0x3b