------------[ cut here ]------------ WARNING: CPU: 0 PID: 3696 at net/mac80211/tx.c:4849 __ieee80211_beacon_get+0x183d/0x2080 net/mac80211/tx.c:5073 Modules linked in: CPU: 0 PID: 3696 Comm: syz-executor144 Not tainted 5.15.105-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023 RIP: 0010:__ieee80211_beacon_update_cntdwn net/mac80211/tx.c:4849 [inline] RIP: 0010:__ieee80211_beacon_get+0x183d/0x2080 net/mac80211/tx.c:5073 Code: ff e8 57 fd d0 f7 0f 0b e9 4b fa ff ff e8 4b fd d0 f7 0f 0b e9 3b fe ff ff e8 3f fd d0 f7 0f 0b e9 06 ee ff ff e8 33 fd d0 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:ffffc90000007840 EFLAGS: 00010246 RAX: ffffffff89aebd8d RBX: 0000000000000000 RCX: ffff88801c781d00 RDX: 0000000080000101 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffc90000007a70 R08: ffffffff89aeae18 R09: ffffffff89aea7eb R10: 0000000000000003 R11: ffff88801c781d00 R12: dffffc0000000000 R13: ffff888023828c80 R14: ffff88802382a298 R15: 1ffff92000000f18 FS: 00005555557153c0(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000000 CR3: 000000001ec7f000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: ieee80211_beacon_get_tim+0xb7/0x950 net/mac80211/tx.c:5192 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:1685 [inline] __hrtimer_run_queues+0x598/0xcf0 kernel/time/hrtimer.c:1749 hrtimer_run_softirq+0x196/0x2c0 kernel/time/hrtimer.c:1766 __do_softirq+0x3b3/0x93a kernel/softirq.c:558 invoke_softirq kernel/softirq.c:432 [inline] __irq_exit_rcu+0x155/0x240 kernel/softirq.c:636 irq_exit_rcu+0x5/0x20 kernel/softirq.c:648 sysvec_apic_timer_interrupt+0x91/0xb0 arch/x86/kernel/apic/apic.c:1097 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:638 RIP: 0010:__orc_find arch/x86/kernel/unwind_orc.c:52 [inline] RIP: 0010:orc_find arch/x86/kernel/unwind_orc.c:178 [inline] RIP: 0010:unwind_next_frame+0x53a/0x1fa0 arch/x86/kernel/unwind_orc.c:448 Code: 1c 46 48 89 d8 48 c1 e8 03 0f b6 04 10 84 c0 75 27 48 63 03 48 01 d8 48 8d 4b 04 4c 39 e8 4c 0f 46 f1 48 8d 43 fc 48 0f 47 e8 <4c> 0f 46 e3 49 39 ee 76 b3 e9 31 fd ff ff 89 d9 80 e1 07 80 c1 03 RSP: 0018:ffffc90002f3eda8 EFLAGS: 00000216 RAX: ffffffff8df81be4 RBX: ffffffff8df81be8 RCX: ffffffff8df81bec RDX: dffffc0000000000 RSI: ffffffff8e628324 RDI: ffffffff8df81bcc RBP: ffffffff8df81be4 R08: 000000000000000f R09: ffffc90002f3ef50 R10: 0000000000000000 R11: dffffc0000000001 R12: ffffffff8df81bcc R13: ffffffff81c8d89a R14: ffffffff8df81bcc R15: ffffc90002f3ee60 arch_stack_walk+0x10d/0x140 arch/x86/kernel/stacktrace.c:25 stack_trace_save+0x113/0x1c0 kernel/stacktrace.c:122 kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track+0x4b/0x80 mm/kasan/common.c:46 kasan_set_free_info+0x1f/0x40 mm/kasan/generic.c:360 ____kasan_slab_free+0xd8/0x120 mm/kasan/common.c:366 kasan_slab_free include/linux/kasan.h:230 [inline] slab_free_hook mm/slub.c:1705 [inline] slab_free_freelist_hook+0xdd/0x160 mm/slub.c:1731 slab_free mm/slub.c:3499 [inline] kmem_cache_free+0x91/0x1f0 mm/slub.c:3515 free_buffer_head+0x45/0xb0 fs/buffer.c:3327 try_to_free_buffers+0x464/0x5a0 fs/buffer.c:3268 do_invalidatepage mm/truncate.c:157 [inline] truncate_cleanup_page+0x179/0x440 mm/truncate.c:176 truncate_inode_pages_range+0x2e7/0x1290 mm/truncate.c:325 truncate_inode_pages mm/truncate.c:425 [inline] truncate_pagecache+0x68/0x80 mm/truncate.c:735 ext4_setattr+0xe8c/0x1990 fs/ext4/inode.c:5517 notify_change+0xd4d/0x1000 fs/attr.c:488 do_truncate+0x21c/0x300 fs/open.c:65 handle_truncate fs/namei.c:3195 [inline] do_open fs/namei.c:3542 [inline] path_openat+0x28a0/0x2f20 fs/namei.c:3672 do_filp_open+0x21c/0x460 fs/namei.c:3699 do_sys_openat2+0x13b/0x500 fs/open.c:1211 do_sys_open fs/open.c:1227 [inline] __do_sys_openat fs/open.c:1243 [inline] __se_sys_openat fs/open.c:1238 [inline] __x64_sys_openat+0x243/0x290 fs/open.c:1238 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:0x7f8bd8391489 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 41 15 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 c0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fff739f8be8 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007f8bd8391489 RDX: 000000000000275a RSI: 0000000020000040 RDI: 00000000ffffff9c RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000031aa4 R13: 00007fff739f8c70 R14: 00007fff739f8c60 R15: 00007fff739f8c2c ---------------- Code disassembly (best guess): 0: 1c 46 sbb $0x46,%al 2: 48 89 d8 mov %rbx,%rax 5: 48 c1 e8 03 shr $0x3,%rax 9: 0f b6 04 10 movzbl (%rax,%rdx,1),%eax d: 84 c0 test %al,%al f: 75 27 jne 0x38 11: 48 63 03 movslq (%rbx),%rax 14: 48 01 d8 add %rbx,%rax 17: 48 8d 4b 04 lea 0x4(%rbx),%rcx 1b: 4c 39 e8 cmp %r13,%rax 1e: 4c 0f 46 f1 cmovbe %rcx,%r14 22: 48 8d 43 fc lea -0x4(%rbx),%rax 26: 48 0f 47 e8 cmova %rax,%rbp * 2a: 4c 0f 46 e3 cmovbe %rbx,%r12 <-- trapping instruction 2e: 49 39 ee cmp %rbp,%r14 31: 76 b3 jbe 0xffffffe6 33: e9 31 fd ff ff jmpq 0xfffffd69 38: 89 d9 mov %ebx,%ecx 3a: 80 e1 07 and $0x7,%cl 3d: 80 c1 03 add $0x3,%cl