audit: type=1804 audit(1678115214.852:502): pid=24585 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=ToMToU comm="syz-executor.4" name="/root/syzkaller-testdir3302997933/syzkaller.WsYXzL/376/bus" dev="sda1" ino=15209 res=1 BTRFS info (device loop1): force zlib compression, level 3 BTRFS info (device loop1): using free space tree IPVS: ftp: loaded support on port[0] = 21 WARNING: CPU: 0 PID: 24622 at net/mac80211/tx.c:4154 __ieee80211_csa_update_counter net/mac80211/tx.c:4154 [inline] WARNING: CPU: 0 PID: 24622 at net/mac80211/tx.c:4154 __ieee80211_csa_update_counter net/mac80211/tx.c:4149 [inline] WARNING: CPU: 0 PID: 24622 at net/mac80211/tx.c:4154 __ieee80211_beacon_get+0x1678/0x1a30 net/mac80211/tx.c:4347 BTRFS info (device loop1): has skinny extents Kernel panic - not syncing: panic_on_warn set ... CPU: 0 PID: 24622 Comm: syz-executor.5 Not tainted 4.19.211-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1fc/0x2ef lib/dump_stack.c:118 panic+0x26a/0x50e kernel/panic.c:186 __warn.cold+0x20/0x5a kernel/panic.c:541 report_bug+0x262/0x2b0 lib/bug.c:183 fixup_bug arch/x86/kernel/traps.c:178 [inline] fixup_bug arch/x86/kernel/traps.c:173 [inline] do_error_trap+0x1d7/0x310 arch/x86/kernel/traps.c:296 invalid_op+0x14/0x20 arch/x86/entry/entry_64.S:1038 RIP: 0010:__ieee80211_csa_update_counter net/mac80211/tx.c:4154 [inline] RIP: 0010:__ieee80211_csa_update_counter net/mac80211/tx.c:4149 [inline] RIP: 0010:__ieee80211_beacon_get+0x1678/0x1a30 net/mac80211/tx.c:4347 Code: 85 70 03 00 00 41 0f b6 45 24 31 ff 44 8d 60 ff 45 88 65 24 44 89 e6 e8 e6 9f bf f9 45 84 e4 0f 85 4f f5 ff ff e8 a8 9e bf f9 <0f> 0b e9 43 f5 ff ff e8 9c 9e bf f9 e8 c7 c6 ad f9 31 ff 41 89 c4 RSP: 0018:ffff8880ba007c18 EFLAGS: 00010206 RAX: ffff88803f2c81c0 RBX: ffff888041d06b38 RCX: ffffffff87a2e6ba RDX: 0000000000000100 RSI: ffffffff87a2e6c8 RDI: 0000000000000001 RBP: ffff888041ce1ac0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000000 R13: ffff888098a34980 R14: 0000000000000000 R15: ffff8880ba007d60 ieee80211_beacon_get_tim+0x88/0x890 net/mac80211/tx.c:4463 ieee80211_beacon_get include/net/mac80211.h:4484 [inline] mac80211_hwsim_beacon_tx+0xff/0x680 drivers/net/wireless/mac80211_hwsim.c:1577 __iterate_interfaces+0x2e1/0x4a0 net/mac80211/util.c:614 ieee80211_iterate_active_interfaces_atomic+0x8d/0x170 net/mac80211/util.c:650 mac80211_hwsim_beacon+0xc9/0x190 drivers/net/wireless/mac80211_hwsim.c:1615 __tasklet_hrtimer_trampoline+0x29/0xa0 kernel/softirq.c:601 tasklet_action_common.constprop.0+0x265/0x360 kernel/softirq.c:522 __do_softirq+0x265/0x980 kernel/softirq.c:292 invoke_softirq kernel/softirq.c:372 [inline] irq_exit+0x215/0x260 kernel/softirq.c:412 exiting_irq arch/x86/include/asm/apic.h:536 [inline] smp_apic_timer_interrupt+0x136/0x550 arch/x86/kernel/apic/apic.c:1098 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:894 RIP: 0010:arch_local_irq_restore arch/x86/include/asm/paravirt.h:789 [inline] RIP: 0010:lock_is_held_type+0x17a/0x210 kernel/locking/lockdep.c:3948 Code: 00 00 00 00 fc ff df c7 85 84 08 00 00 00 00 00 00 48 c1 e8 03 80 3c 10 00 75 63 48 83 3d 45 cc a6 08 00 74 2c 48 89 df 57 9d <0f> 1f 44 00 00 48 83 c4 08 44 89 e0 5b 5d 41 5c c3 48 83 c4 08 41 RSP: 0018:ffff8880429b77e8 EFLAGS: 00000286 ORIG_RAX: ffffffffffffff13 RAX: 1ffffffff13e3051 RBX: 0000000000000286 RCX: 0000000000000000 RDX: dffffc0000000000 RSI: 00000000ffffffff RDI: 0000000000000286 RBP: ffff88803f2c81c0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000005 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 lock_is_held include/linux/lockdep.h:344 [inline] rcu_read_lock_sched_held+0x16c/0x1d0 kernel/rcu/update.c:118 trace_skb_copy_datagram_iovec include/trace/events/skb.h:54 [inline] skb_copy_datagram_iter+0x866/0x9e0 net/core/datagram.c:425 skb_copy_datagram_msg include/linux/skbuff.h:3347 [inline] unix_dgram_recvmsg+0x3b7/0xdb0 net/unix/af_unix.c:2180 ___sys_recvmsg+0x255/0x570 net/socket.c:2389 __sys_recvmmsg+0x254/0x6d0 net/socket.c:2501 do_sys_recvmmsg+0x172/0x190 net/socket.c:2577 __do_sys_recvmmsg net/socket.c:2595 [inline] __se_sys_recvmmsg net/socket.c:2591 [inline] __x64_sys_recvmmsg+0xba/0x150 net/socket.c:2591 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7fdc5dde80f9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 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:00007fdc5c318168 EFLAGS: 00000246 ORIG_RAX: 000000000000012b RAX: ffffffffffffffda RBX: 00007fdc5df08120 RCX: 00007fdc5dde80f9 RDX: 0000000000010106 RSI: 00000000200000c0 RDI: 0000000000000003 RBP: 00007fdc5de43ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000002 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffc595f21bf R14: 00007fdc5c318300 R15: 0000000000022000 Kernel Offset: disabled Rebooting in 86400 seconds.. ---------------- Code disassembly (best guess), 6 bytes skipped: 0: df c7 ffreep %st(7) 2: 85 84 08 00 00 00 00 test %eax,0x0(%rax,%rcx,1) 9: 00 00 add %al,(%rax) b: 48 c1 e8 03 shr $0x3,%rax f: 80 3c 10 00 cmpb $0x0,(%rax,%rdx,1) 13: 75 63 jne 0x78 15: 48 83 3d 45 cc a6 08 cmpq $0x0,0x8a6cc45(%rip) # 0x8a6cc62 1c: 00 1d: 74 2c je 0x4b 1f: 48 89 df mov %rbx,%rdi 22: 57 push %rdi 23: 9d popfq * 24: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1) <-- trapping instruction 29: 48 83 c4 08 add $0x8,%rsp 2d: 44 89 e0 mov %r12d,%eax 30: 5b pop %rbx 31: 5d pop %rbp 32: 41 5c pop %r12 34: c3 retq 35: 48 83 c4 08 add $0x8,%rsp 39: 41 rex.B