------------[ cut here ]------------ WARNING: CPU: 0 PID: 3862 at net/mac80211/tx.c:4874 __ieee80211_beacon_update_cntdwn net/mac80211/tx.c:4874 [inline] WARNING: CPU: 0 PID: 3862 at net/mac80211/tx.c:4874 __ieee80211_beacon_get+0x17f8/0x1b00 net/mac80211/tx.c:5191 Modules linked in: CPU: 0 PID: 3862 Comm: syz-executor277 Not tainted 5.19.0-syzkaller-13930-g7ebfc85e2cd7 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022 RIP: 0010:__ieee80211_beacon_update_cntdwn net/mac80211/tx.c:4874 [inline] RIP: 0010:__ieee80211_beacon_get+0x17f8/0x1b00 net/mac80211/tx.c:5191 Code: e9 af fb ff ff 45 31 f6 c7 44 24 44 00 00 00 00 e9 63 f7 ff ff c7 44 24 44 00 00 00 00 45 31 f6 e9 53 f7 ff ff e8 38 1f a9 f8 <0f> 0b e9 cf f2 ff ff 48 89 de 48 c7 c7 60 46 b3 8d e8 62 88 4c fb RSP: 0018:ffffc90000007bf8 EFLAGS: 00010246 RAX: 0000000000000000 RBX: ffff888071bdc600 RCX: 0000000000000100 RDX: ffff888022879d80 RSI: ffffffff88d2e7d8 RDI: 0000000000000001 RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000001 R12: 0000000000000000 R13: ffff8880238e2248 R14: 1ffff92000000f93 R15: ffff8880238e2680 FS: 00007fcd6510f700(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000002021c030 CR3: 0000000074a9b000 CR4: 0000000000350ef0 Call Trace: ieee80211_beacon_get_tim+0x95/0x4e0 net/mac80211/tx.c:5278 ieee80211_beacon_get include/net/mac80211.h:5196 [inline] mac80211_hwsim_beacon_tx+0x1d0/0xab0 drivers/net/wireless/mac80211_hwsim.c:2044 __iterate_interfaces+0x2c8/0x550 net/mac80211/util.c:796 ieee80211_iterate_active_interfaces_atomic+0x70/0x180 net/mac80211/util.c:832 mac80211_hwsim_beacon+0xfd/0x1f0 drivers/net/wireless/mac80211_hwsim.c:2100 __run_hrtimer kernel/time/hrtimer.c:1685 [inline] __hrtimer_run_queues+0x5fa/0xe40 kernel/time/hrtimer.c:1749 hrtimer_run_softirq+0x17b/0x360 kernel/time/hrtimer.c:1766 __do_softirq+0x1d3/0x9c6 kernel/softirq.c:571 invoke_softirq kernel/softirq.c:445 [inline] __irq_exit_rcu+0x123/0x180 kernel/softirq.c:650 irq_exit_rcu+0x5/0x20 kernel/softirq.c:662 sysvec_apic_timer_interrupt+0x93/0xc0 arch/x86/kernel/apic/apic.c:1106 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:649 RIP: 0010:__skb_try_recv_datagram+0x235/0x4e0 net/core/datagram.c:282 Code: 02 00 00 48 8b 44 24 40 45 31 f6 44 89 38 e8 62 b8 2a fa 48 8b 4c 24 48 48 b8 00 00 00 00 00 fc ff df 48 c7 04 01 00 00 00 00 <48> 8b 84 24 a8 00 00 00 65 48 2b 04 25 28 00 00 00 0f 85 8c 02 00 RSP: 0018:ffffc900044df790 EFLAGS: 00000293 RAX: dffffc0000000000 RBX: ffff8880736da800 RCX: 1ffff9200089befc RDX: ffff888022879d80 RSI: ffffffff87514eae RDI: 0000000000000005 RBP: dffffc0000000000 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: ffff8880736da9b8 R13: ffffc900044df900 R14: ffff888025a9f640 R15: 0000000000000000 __unix_dgram_recvmsg+0x190/0xb80 net/unix/af_unix.c:2407 unix_dgram_recvmsg+0xc0/0xe0 net/unix/af_unix.c:2504 sock_recvmsg_nosec net/socket.c:995 [inline] ____sys_recvmsg+0x536/0x600 net/socket.c:2699 ___sys_recvmsg+0xf2/0x180 net/socket.c:2743 do_recvmmsg+0x25e/0x6e0 net/socket.c:2837 __sys_recvmmsg net/socket.c:2916 [inline] __do_sys_recvmmsg net/socket.c:2939 [inline] __se_sys_recvmmsg net/socket.c:2932 [inline] __x64_sys_recvmmsg+0x20b/0x260 net/socket.c:2932 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fcd6517ff19 ================================ WARNING: inconsistent lock state 5.19.0-syzkaller-13930-g7ebfc85e2cd7 #0 Not tainted -------------------------------- inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. syz-executor277/3862 [HC0[0]:SC1[1]:HE1:SE0] takes: ffffffff8c0bee78 (vmap_area_lock){+.?.}-{2:2}, at: spin_lock include/linux/spinlock.h:349 [inline] ffffffff8c0bee78 (vmap_area_lock){+.?.}-{2:2}, at: find_vmap_area+0x1c/0x130 mm/vmalloc.c:1836 {SOFTIRQ-ON-W} state was registered at: lock_acquire kernel/locking/lockdep.c:5666 [inline] lock_acquire+0x1ab/0x570 kernel/locking/lockdep.c:5631 __raw_spin_lock include/linux/spinlock_api_smp.h:133 [inline] _raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:154 spin_lock include/linux/spinlock.h:349 [inline] alloc_vmap_area+0xa0b/0x1d50 mm/vmalloc.c:1617 __get_vm_area_node+0x142/0x3f0 mm/vmalloc.c:2484 get_vm_area_caller+0x43/0x50 mm/vmalloc.c:2537 __ioremap_caller.constprop.0+0x292/0x600 arch/x86/mm/ioremap.c:280 acpi_os_ioremap include/acpi/acpi_io.h:13 [inline] acpi_map drivers/acpi/osl.c:296 [inline] acpi_os_map_iomem+0x463/0x550 drivers/acpi/osl.c:355 acpi_tb_acquire_table+0xd8/0x209 drivers/acpi/acpica/tbdata.c:142 acpi_tb_validate_table drivers/acpi/acpica/tbdata.c:317 [inline] acpi_tb_validate_table+0x50/0x8c drivers/acpi/acpica/tbdata.c:308 acpi_tb_verify_temp_table+0x84/0x674 drivers/acpi/acpica/tbdata.c:504 acpi_reallocate_root_table+0x374/0x3e0 drivers/acpi/acpica/tbxface.c:180 acpi_early_init+0x13a/0x438 drivers/acpi/bus.c:1214 start_kernel+0x3cf/0x48f init/main.c:1099 secondary_startup_64_no_verify+0xce/0xdb irq event stamp: 81468 hardirqs last enabled at (81468): [] __up_console_sem+0xae/0xc0 kernel/printk/printk.c:264 hardirqs last disabled at (81467): [] __up_console_sem+0x93/0xc0 kernel/printk/printk.c:262 softirqs last enabled at (76486): [] invoke_softirq kernel/softirq.c:445 [inline] softirqs last enabled at (76486): [] __irq_exit_rcu+0x123/0x180 kernel/softirq.c:650 softirqs last disabled at (80471): [] invoke_softirq kernel/softirq.c:445 [inline] softirqs last disabled at (80471): [] __irq_exit_rcu+0x123/0x180 kernel/softirq.c:650 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock(vmap_area_lock); lock(vmap_area_lock); *** DEADLOCK *** 3 locks held by syz-executor277/3862: #0: ffff8880736dad80 (&u->iolock){+.+.}-{3:3}, at: __unix_dgram_recvmsg+0x226/0xb80 net/unix/af_unix.c:2404 #1: ffffffff8bf89240 (rcu_read_lock){....}-{1:2}, at: ieee80211_iterate_active_interfaces_atomic+0x0/0x180 net/mac80211/util.c:4816 #2: ffffffff8bf89240 (rcu_read_lock){....}-{1:2}, at: __ieee80211_beacon_get+0x0/0x1b00 net/mac80211/tx.c:3781 stack backtrace: CPU: 0 PID: 3862 Comm: syz-executor277 Not tainted 5.19.0-syzkaller-13930-g7ebfc85e2cd7 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106 print_usage_bug kernel/locking/lockdep.c:3961 [inline] valid_state kernel/locking/lockdep.c:3973 [inline] mark_lock_irq kernel/locking/lockdep.c:4176 [inline] mark_lock.part.0.cold+0x18/0xd8 kernel/locking/lockdep.c:4632 mark_lock kernel/locking/lockdep.c:4596 [inline] mark_usage kernel/locking/lockdep.c:4527 [inline] __lock_acquire+0x11d9/0x56d0 kernel/locking/lockdep.c:5007 lock_acquire kernel/locking/lockdep.c:5666 [inline] lock_acquire+0x1ab/0x570 kernel/locking/lockdep.c:5631 __raw_spin_lock include/linux/spinlock_api_smp.h:133 [inline] _raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:154 spin_lock include/linux/spinlock.h:349 [inline] find_vmap_area+0x1c/0x130 mm/vmalloc.c:1836 check_heap_object mm/usercopy.c:176 [inline] __check_object_size mm/usercopy.c:250 [inline] __check_object_size+0x1f8/0x700 mm/usercopy.c:212 check_object_size include/linux/thread_info.h:199 [inline] __copy_from_user_inatomic include/linux/uaccess.h:62 [inline] copy_from_user_nmi arch/x86/lib/usercopy.c:47 [inline] copy_from_user_nmi+0xcb/0x130 arch/x86/lib/usercopy.c:31 copy_code arch/x86/kernel/dumpstack.c:91 [inline] show_opcodes+0x59/0xb0 arch/x86/kernel/dumpstack.c:121 show_iret_regs+0xd/0x33 arch/x86/kernel/dumpstack.c:149 __show_regs+0x1e/0x60 arch/x86/kernel/process_64.c:74 show_trace_log_lvl+0x25b/0x2ba arch/x86/kernel/dumpstack.c:292 __warn+0xe2/0x190 kernel/panic.c:621 report_bug+0x1bc/0x210 lib/bug.c:198 handle_bug+0x3c/0x60 arch/x86/kernel/traps.c:316 exc_invalid_op+0x14/0x40 arch/x86/kernel/traps.c:336 asm_exc_invalid_op+0x16/0x20 arch/x86/include/asm/idtentry.h:568 RIP: 0010:__ieee80211_beacon_update_cntdwn net/mac80211/tx.c:4874 [inline] RIP: 0010:__ieee80211_beacon_get+0x17f8/0x1b00 net/mac80211/tx.c:5191 Code: e9 af fb ff ff 45 31 f6 c7 44 24 44 00 00 00 00 e9 63 f7 ff ff c7 44 24 44 00 00 00 00 45 31 f6 e9 53 f7 ff ff e8 38 1f a9 f8 <0f> 0b e9 cf f2 ff ff 48 89 de 48 c7 c7 60 46 b3 8d e8 62 88 4c fb RSP: 0018:ffffc90000007bf8 EFLAGS: 00010246 RAX: 0000000000000000 RBX: ffff888071bdc600 RCX: 0000000000000100 RDX: ffff888022879d80 RSI: ffffffff88d2e7d8 RDI: 0000000000000001 RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000001 R12: 0000000000000000 R13: ffff8880238e2248 R14: 1ffff92000000f93 R15: ffff8880238e2680 ieee80211_beacon_get_tim+0x95/0x4e0 net/mac80211/tx.c:5278 ieee80211_beacon_get include/net/mac80211.h:5196 [inline] mac80211_hwsim_beacon_tx+0x1d0/0xab0 drivers/net/wireless/mac80211_hwsim.c:2044 __iterate_interfaces+0x2c8/0x550 net/mac80211/util.c:796 ieee80211_iterate_active_interfaces_atomic+0x70/0x180 net/mac80211/util.c:832 mac80211_hwsim_beacon+0xfd/0x1f0 drivers/net/wireless/mac80211_hwsim.c:2100 __run_hrtimer kernel/time/hrtimer.c:1685 [inline] __hrtimer_run_queues+0x5fa/0xe40 kernel/time/hrtimer.c:1749 hrtimer_run_softirq+0x17b/0x360 kernel/time/hrtimer.c:1766 __do_softirq+0x1d3/0x9c6 kernel/softirq.c:571 invoke_softirq kernel/softirq.c:445 [inline] __irq_exit_rcu+0x123/0x180 kernel/softirq.c:650 irq_exit_rcu+0x5/0x20 kernel/softirq.c:662 sysvec_apic_timer_interrupt+0x93/0xc0 arch/x86/kernel/apic/apic.c:1106 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:649 RIP: 0010:__skb_try_recv_datagram+0x235/0x4e0 net/core/datagram.c:282 Code: 02 00 00 48 8b 44 24 40 45 31 f6 44 89 38 e8 62 b8 2a fa 48 8b 4c 24 48 48 b8 00 00 00 00 00 fc ff df 48 c7 04 01 00 00 00 00 <48> 8b 84 24 a8 00 00 00 65 48 2b 04 25 28 00 00 00 0f 85 8c 02 00 RSP: 0018:ffffc900044df790 EFLAGS: 00000293 RAX: dffffc0000000000 RBX: ffff8880736da800 RCX: 1ffff9200089befc RDX: ffff888022879d80 RSI: ffffffff87514eae RDI: 0000000000000005 RBP: dffffc0000000000 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: ffff8880736da9b8 R13: ffffc900044df900 R14: ffff888025a9f640 R15: 0000000000000000 __unix_dgram_recvmsg+0x190/0xb80 net/unix/af_unix.c:2407 unix_dgram_recvmsg+0xc0/0xe0 net/unix/af_unix.c:2504 sock_recvmsg_nosec net/socket.c:995 [inline] ____sys_recvmsg+0x536/0x600 net/socket.c:2699 ___sys_recvmsg+0xf2/0x180 net/socket.c:2743 do_recvmmsg+0x25e/0x6e0 net/socket.c:2837 __sys_recvmmsg net/socket.c:2916 [inline] __do_sys_recvmmsg net/socket.c:2939 [inline] __se_sys_recvmmsg net/socket.c:2932 [inline] __x64_sys_recvmmsg+0x20b/0x260 net/socket.c:2932 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fcd6517ff19 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:00007fcd6510f308 EFLAGS: 00000246 ORIG_RAX: 000000000000012b RAX: ffffffffffffffda RBX: 00007fcd65208438 RCX: 00007fcd6517ff19 RDX: 0000000000010106 RSI: 00000000200000c0 RDI: 0000000000000003 RBP: 00007fcd65208430 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000002 R11: 0000000000000246 R12: 00007fcd6520843c R13: 00007fcd651d51b4 R14: 0031313230386c6e R15: 0000000000022000 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:00007fcd6510f308 EFLAGS: 00000246 ORIG_RAX: 000000000000012b RAX: ffffffffffffffda RBX: 00007fcd65208438 RCX: 00007fcd6517ff19 RDX: 0000000000010106 RSI: 00000000200000c0 RDI: 0000000000000003 RBP: 00007fcd65208430 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000002 R11: 0000000000000246 R12: 00007fcd6520843c R13: 00007fcd651d51b4 R14: 0031313230386c6e R15: 0000000000022000 ---------------- Code disassembly (best guess): 0: 02 00 add (%rax),%al 2: 00 48 8b add %cl,-0x75(%rax) 5: 44 24 40 rex.R and $0x40,%al 8: 45 31 f6 xor %r14d,%r14d b: 44 89 38 mov %r15d,(%rax) e: e8 62 b8 2a fa callq 0xfa2ab875 13: 48 8b 4c 24 48 mov 0x48(%rsp),%rcx 18: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 1f: fc ff df 22: 48 c7 04 01 00 00 00 movq $0x0,(%rcx,%rax,1) 29: 00 * 2a: 48 8b 84 24 a8 00 00 mov 0xa8(%rsp),%rax <-- trapping instruction 31: 00 32: 65 48 2b 04 25 28 00 sub %gs:0x28,%rax 39: 00 00 3b: 0f .byte 0xf 3c: 85 .byte 0x85 3d: 8c 02 mov %es,(%rdx)