------------[ cut here ]------------ WARNING: CPU: 1 PID: 3569 at net/mac80211/tx.c:4849 __ieee80211_beacon_get+0x183d/0x2080 net/mac80211/tx.c:5073 Modules linked in: CPU: 1 PID: 3569 Comm: syz-executor184 Not tainted 5.15.118-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/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 b7 1f cd f7 0f 0b e9 4b fa ff ff e8 ab 1f cd f7 0f 0b e9 3b fe ff ff e8 9f 1f cd f7 0f 0b e9 06 ee ff ff e8 93 1f cd 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: ffffffff89b2dabd RBX: 0000000000000000 RCX: ffff88807e450000 RDX: 0000000080000101 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffc90000dd0a70 R08: ffffffff89b2cb48 R09: ffffffff89b2c51b R10: 0000000000000003 R11: ffff88807e450000 R12: dffffc0000000000 R13: ffff88806fd58c80 R14: ffff88806fd5a298 R15: 1ffff920001ba118 FS: 00005555571d6300(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f5fcce011b8 CR3: 000000001df87000 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: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:1096 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:638 RIP: 0010:instrument_atomic_read include/linux/instrumented.h:71 [inline] RIP: 0010:atomic_long_read include/linux/atomic/atomic-instrumented.h:1183 [inline] RIP: 0010:rwsem_owner_flags kernel/locking/rwsem.c:279 [inline] RIP: 0010:rwsem_spin_on_owner+0x1f2/0x300 kernel/locking/rwsem.c:740 Code: f7 78 8c e8 30 69 67 00 48 83 3d 68 0a 17 0b 00 0f 84 1e 01 00 00 48 89 ef e8 0a d8 d5 ff 66 90 84 c0 0f 85 a5 00 00 00 f3 90 <48> 89 df be 08 00 00 00 e8 91 6a 67 00 43 80 3c 2f 00 74 08 48 89 RSP: 0018:ffffc90002d1f1d8 EFLAGS: 00000246 RAX: ffff8880b9a00000 RBX: ffff888022d0d348 RCX: ffffffff8161ecac RDX: 0000000000000000 RSI: 0000000000000008 RDI: 0000000000000000 RBP: 0000000000000000 R08: dffffc0000000000 R09: ffffed100fc8a001 R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000008 R13: dffffc0000000000 R14: ffff88801bc73b80 R15: 1ffff110045a1a69 rwsem_down_write_slowpath+0xe91/0x15c0 kernel/locking/rwsem.c:1150 __down_write_common kernel/locking/rwsem.c:1284 [inline] __down_write kernel/locking/rwsem.c:1293 [inline] down_write+0x164/0x170 kernel/locking/rwsem.c:1542 inode_lock include/linux/fs.h:787 [inline] process_measurement+0x435/0x1d60 security/integrity/ima/ima_main.c:241 ima_file_check+0xf3/0x180 security/integrity/ima/ima_main.c:519 do_open fs/namei.c:3540 [inline] path_openat+0x2745/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:0x7f5fccdac5e9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 a1 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffc23251748 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00000000000f4240 RCX: 00007f5fccdac5e9 RDX: 000000000000275a RSI: 0000000020000040 RDI: 00000000ffffff9c RBP: 0000000000000000 R08: 00007ffc00000004 R09: 00007ffc00000004 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000000106aa R13: 00007ffc23251800 R14: 00007ffc232517f0 R15: 00007ffc23251780 ---------------- Code disassembly (best guess): 0: f7 78 8c idivl -0x74(%rax) 3: e8 30 69 67 00 callq 0x676938 8: 48 83 3d 68 0a 17 0b cmpq $0x0,0xb170a68(%rip) # 0xb170a78 f: 00 10: 0f 84 1e 01 00 00 je 0x134 16: 48 89 ef mov %rbp,%rdi 19: e8 0a d8 d5 ff callq 0xffd5d828 1e: 66 90 xchg %ax,%ax 20: 84 c0 test %al,%al 22: 0f 85 a5 00 00 00 jne 0xcd 28: f3 90 pause * 2a: 48 89 df mov %rbx,%rdi <-- trapping instruction 2d: be 08 00 00 00 mov $0x8,%esi 32: e8 91 6a 67 00 callq 0x676ac8 37: 43 80 3c 2f 00 cmpb $0x0,(%r15,%r13,1) 3c: 74 08 je 0x46 3e: 48 rex.W 3f: 89 .byte 0x89