------------[ cut here ]------------
WARNING: CPU: 1 PID: 6349 at net/mac80211/tx.c:5033 __ieee80211_beacon_update_cntdwn net/mac80211/tx.c:5033 [inline]
WARNING: CPU: 1 PID: 6349 at net/mac80211/tx.c:5033 __ieee80211_beacon_get+0x1233/0x1600 net/mac80211/tx.c:5444
Modules linked in:
CPU: 1 PID: 6349 Comm: syz.0.196 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/18/2026
RIP: 0010:__ieee80211_beacon_update_cntdwn net/mac80211/tx.c:5033 [inline]
RIP: 0010:__ieee80211_beacon_get+0x1233/0x1600 net/mac80211/tx.c:5444
Code: 24 4c 89 e7 e8 0e 75 c0 f7 45 31 f6 4c 8b bc 24 a0 00 00 00 e9 7a fe ff ff e8 09 b3 82 f7 0f 0b e9 f6 f7 ff ff e8 fd b2 82 f7 <0f> 0b e9 48 fb ff ff e8 f1 b2 82 f7 48 c7 c7 20 89 64 8e 4c 89 e6
RSP: 0018:ffffc900001f0a18 EFLAGS: 00010246
RAX: ffffffff8a047053 RBX: ffffffff8a045e56 RCX: ffff888023b03c00
RDX: 0000000000000100 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000000 R08: ffff888023b03c00 R09: 0000000000000003
R10: 0000000000000007 R11: 0000000000000100 R12: ffff88805b4aa3c0
R13: dffffc0000000000 R14: ffff88805b4aa8b0 R15: ffff888025d40424
FS: 00007f3b5a0006c0(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f3b52ff6000 CR3: 000000001f3f7000 CR4: 00000000003506e0
Call Trace:
ieee80211_beacon_get_tim+0xbf/0x580 net/mac80211/tx.c:5571
ieee80211_beacon_get include/net/mac80211.h:5440 [inline]
mac80211_hwsim_beacon_tx+0x3c7/0x780 drivers/net/wireless/virtual/mac80211_hwsim.c:2265
__iterate_interfaces+0x243/0x500 net/mac80211/util.c:766
ieee80211_iterate_active_interfaces_atomic+0xdb/0x180 net/mac80211/util.c:802
mac80211_hwsim_beacon+0xbb/0x1b0 drivers/net/wireless/virtual/mac80211_hwsim.c:2295
__run_hrtimer kernel/time/hrtimer.c:1750 [inline]
__hrtimer_run_queues+0x520/0xc40 kernel/time/hrtimer.c:1814
hrtimer_run_softirq+0x187/0x2b0 kernel/time/hrtimer.c:1831
handle_softirqs+0x280/0x820 kernel/softirq.c:578
__do_softirq kernel/softirq.c:612 [inline]
invoke_softirq kernel/softirq.c:452 [inline]
__irq_exit_rcu+0xd3/0x190 kernel/softirq.c:661
irq_exit_rcu+0x9/0x20 kernel/softirq.c:673
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1088 [inline]
sysvec_apic_timer_interrupt+0xa4/0xc0 arch/x86/kernel/apic/apic.c:1088
asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:687
RIP: 0010:lock_acquire+0x208/0x420 kernel/locking/lockdep.c:5758
Code: f7 84 24 80 00 00 00 00 02 00 00 43 c6 44 3c 04 f8 0f 85 f0 00 00 00 41 f7 c6 00 02 00 00 74 01 fb 48 c7 44 24 60 0e 36 e0 45 <4b> c7 04 3c 00 00 00 00 43 c7 44 3c 08 00 00 00 00 65 48 8b 04 25
RSP: 0018:ffffc9001a97f6c0 EFLAGS: 00000206
RAX: 0000000000000001 RBX: 0000000000000000 RCX: 521e972ef5a72300
RDX: 0000000000000000 RSI: ffffffff8acadb60 RDI: ffffffff8b1c8fa0
RBP: ffffc9001a97f7d0 R08: dffffc0000000000 R09: 1ffffffff2238ca0
R10: dffffc0000000000 R11: fffffbfff2238ca1 R12: 1ffff9200352fee4
R13: ffffffff8d1320e0 R14: 0000000000000246 R15: dffffc0000000000
rcu_lock_acquire include/linux/rcupdate.h:334 [inline]
rcu_read_lock include/linux/rcupdate.h:786 [inline]
percpu_ref_put_many include/linux/percpu-refcount.h:330 [inline]
percpu_ref_put+0x35/0x180 include/linux/percpu-refcount.h:351
css_put include/linux/cgroup_refcnt.h:79 [inline]
__mem_cgroup_charge+0x56/0x80 mm/memcontrol.c:7112
mem_cgroup_charge include/linux/memcontrol.h:686 [inline]
shmem_add_to_page_cache+0x904/0x1b30 mm/shmem.c:784
shmem_get_folio_gfp+0xf08/0x2aa0 mm/shmem.c:2071
shmem_get_folio mm/shmem.c:2164 [inline]
shmem_write_begin+0xf2/0x420 mm/shmem.c:2706
generic_perform_write+0x2fe/0x5c0 mm/filemap.c:4036
shmem_file_write_iter+0xfb/0x120 mm/shmem.c:2883
call_write_iter include/linux/fs.h:2018 [inline]
new_sync_write fs/read_write.c:491 [inline]
vfs_write+0x46c/0x990 fs/read_write.c:584
ksys_write+0x150/0x260 fs/read_write.c:637
do_syscall_x64 arch/x86/entry/common.c:46 [inline]
do_syscall_64+0x55/0xa0 arch/x86/entry/common.c:76
entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f3b5915d68e
Code: 08 0f 85 a5 a8 ff ff 49 89 fb 48 89 f0 48 89 d7 48 89 ce 4c 89 c2 4d 89 ca 4c 8b 44 24 08 4c 8b 4c 24 10 4c 89 5c 24 08 0f 05 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 80 00 00 00 00 48 83 ec 08
RSP: 002b:00007f3b59fffda8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f3b5a0006c0 RCX: 00007f3b5915d68e
RDX: 0000000004000000 RSI: 00007f3b4eff7000 RDI: 0000000000000003
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000003
R13: 00007f3b59fffee0 R14: 00007f3b59fffea0 R15: 00007f3b4eff7000
----------------
Code disassembly (best guess):
0: f7 84 24 80 00 00 00 testl $0x200,0x80(%rsp)
7: 00 02 00 00
b: 43 c6 44 3c 04 f8 movb $0xf8,0x4(%r12,%r15,1)
11: 0f 85 f0 00 00 00 jne 0x107
17: 41 f7 c6 00 02 00 00 test $0x200,%r14d
1e: 74 01 je 0x21
20: fb sti
21: 48 c7 44 24 60 0e 36 movq $0x45e0360e,0x60(%rsp)
28: e0 45
* 2a: 4b c7 04 3c 00 00 00 movq $0x0,(%r12,%r15,1) <-- trapping instruction
31: 00
32: 43 c7 44 3c 08 00 00 movl $0x0,0x8(%r12,%r15,1)
39: 00 00
3b: 65 gs
3c: 48 rex.W
3d: 8b .byte 0x8b
3e: 04 25 add $0x25,%al