do_user_addr_fault+0x489/0x11c0 arch/x86/mm/fault.c:1397 handle_page_fault arch/x86/mm/fault.c:1484 [inline] exc_page_fault+0x9e/0x180 arch/x86/mm/fault.c:1540 asm_exc_page_fault+0x22/0x30 arch/x86/include/asm/idtentry.h:570 RIP: 0033:0x7f548c2ac5d0 ================================ WARNING: inconsistent lock state 5.19.0-rc7-syzkaller-00151-gb7423bb23cdd #0 Not tainted -------------------------------- inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. rcK/7140 [HC0[0]:SC1[1]:HE0:SE0] takes: ffffffff87b82b98 (vmap_area_lock){+.?.}-{2:2}, at: spin_lock include/linux/spinlock.h:349 [inline] ffffffff87b82b98 (vmap_area_lock){+.?.}-{2:2}, at: find_vmap_area+0x1c/0x130 mm/vmalloc.c:1805 {SOFTIRQ-ON-W} state was registered at: lock_acquire kernel/locking/lockdep.c:5665 [inline] lock_acquire+0x1ab/0x570 kernel/locking/lockdep.c:5630 __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+0xa49/0x1f00 mm/vmalloc.c:1586 __get_vm_area_node+0x142/0x3f0 mm/vmalloc.c:2453 get_vm_area_caller+0x43/0x50 mm/vmalloc.c:2506 __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:1199 start_kernel+0x3cf/0x48f init/main.c:1098 secondary_startup_64_no_verify+0xce/0xdb irq event stamp: 1227 hardirqs last enabled at (1226): [] __raw_spin_unlock_irq include/linux/spinlock_api_smp.h:159 [inline] hardirqs last enabled at (1226): [] _raw_spin_unlock_irq+0x1f/0x40 kernel/locking/spinlock.c:202 hardirqs last disabled at (1227): [] __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:108 [inline] hardirqs last disabled at (1227): [] _raw_spin_lock_irqsave+0x4e/0x50 kernel/locking/spinlock.c:162 softirqs last enabled at (884): [] fpu_reset_fpregs arch/x86/kernel/fpu/core.c:699 [inline] softirqs last enabled at (884): [] fpu_flush_thread+0x29d/0x3e0 arch/x86/kernel/fpu/core.c:745 softirqs last disabled at (1223): [] invoke_softirq kernel/softirq.c:445 [inline] softirqs last disabled at (1223): [] __irq_exit_rcu+0x113/0x170 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 *** 8 locks held by rcK/7140: #0: ffff888113aeea28 (&mm->mmap_lock#2){++++}-{3:3}, at: mmap_read_trylock include/linux/mmap_lock.h:136 [inline] #0: ffff888113aeea28 (&mm->mmap_lock#2){++++}-{3:3}, at: do_user_addr_fault+0x285/0x11c0 arch/x86/mm/fault.c:1338 #1: ffffffff87a95140 (rcu_read_lock){....}-{1:2}, at: filemap_map_pages+0x186/0x1480 mm/filemap.c:3361 #2: ffff88811fb03378 (ptlock_ptr(page)#2){+.+.}-{2:2}, at: spin_lock include/linux/spinlock.h:349 [inline] #2: ffff88811fb03378 (ptlock_ptr(page)#2){+.+.}-{2:2}, at: filemap_map_pages+0x3ea/0x1480 mm/filemap.c:3375 #3: ffffc90000178d70 ((&dum_hcd->timer)){+.-.}-{0:0}, at: lockdep_copy_map include/linux/lockdep.h:31 [inline] #3: ffffc90000178d70 ((&dum_hcd->timer)){+.-.}-{0:0}, at: call_timer_fn+0xd5/0x6b0 kernel/time/timer.c:1464 #4: ffff888109ee1230 (&dev->event_lock){-.-.}-{2:2}, at: input_event drivers/input/input.c:456 [inline] #4: ffff888109ee1230 (&dev->event_lock){-.-.}-{2:2}, at: input_event+0x7b/0xb0 drivers/input/input.c:449 #5: ffffffff87a95140 (rcu_read_lock){....}-{1:2}, at: input_pass_values.part.0+0x0/0x710 drivers/input/input.c:884 #6: ffffffff87eb2cd8 (kbd_event_lock){..-.}-{2:2}, at: spin_lock include/linux/spinlock.h:349 [inline] #6: ffffffff87eb2cd8 (kbd_event_lock){..-.}-{2:2}, at: kbd_event+0x86/0x1780 drivers/tty/vt/keyboard.c:1537 #7: ffffffff87a95140 (rcu_read_lock){....}-{1:2}, at: show_state_filter+0x0/0x300 kernel/sched/core.c:8763 stack backtrace: CPU: 1 PID: 7140 Comm: rcK Not tainted 5.19.0-rc7-syzkaller-00151-gb7423bb23cdd #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/29/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+0x11e7/0x5660 kernel/locking/lockdep.c:5007 lock_acquire kernel/locking/lockdep.c:5665 [inline] lock_acquire+0x1ab/0x570 kernel/locking/lockdep.c:5630 __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:1805 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 sched_show_task kernel/sched/core.c:8801 [inline] sched_show_task+0x44c/0x5c0 kernel/sched/core.c:8775 show_state_filter+0x13e/0x300 kernel/sched/core.c:8846 k_spec drivers/tty/vt/keyboard.c:667 [inline] k_spec+0xe1/0x130 drivers/tty/vt/keyboard.c:656 kbd_keycode drivers/tty/vt/keyboard.c:1524 [inline] kbd_event+0xcdd/0x1780 drivers/tty/vt/keyboard.c:1543 input_to_handler+0x3b9/0x4c0 drivers/input/input.c:129 input_pass_values.part.0+0x230/0x710 drivers/input/input.c:156 input_pass_values drivers/input/input.c:426 [inline] input_handle_event+0x67e/0x1440 drivers/input/input.c:426 input_event drivers/input/input.c:457 [inline] input_event+0x8e/0xb0 drivers/input/input.c:449 hidinput_hid_event+0x79d/0x2010 drivers/hid/hid-input.c:1631 hid_process_event+0x491/0x570 drivers/hid/hid-core.c:1527 hid_input_array_field+0x30c/0x660 drivers/hid/hid-core.c:1631 hid_process_report drivers/hid/hid-core.c:1681 [inline] hid_report_raw_event+0xa8a/0x1280 drivers/hid/hid-core.c:1998 hid_input_report+0x360/0x4c0 drivers/hid/hid-core.c:2065 hid_irq_in+0x50e/0x690 drivers/hid/usbhid/hid-core.c:284 __usb_hcd_giveback_urb+0x2b0/0x5c0 drivers/usb/core/hcd.c:1670 usb_hcd_giveback_urb+0x367/0x410 drivers/usb/core/hcd.c:1747 dummy_timer+0x11f9/0x32b0 drivers/usb/gadget/udc/dummy_hcd.c:1988 call_timer_fn+0x1a5/0x6b0 kernel/time/timer.c:1474 expire_timers kernel/time/timer.c:1519 [inline] __run_timers.part.0+0x679/0xa80 kernel/time/timer.c:1790 __run_timers kernel/time/timer.c:1768 [inline] run_timer_softirq+0xb3/0x1d0 kernel/time/timer.c:1803 __do_softirq+0x288/0x9a5 kernel/softirq.c:571 invoke_softirq kernel/softirq.c:445 [inline] __irq_exit_rcu+0x113/0x170 kernel/softirq.c:650 irq_exit_rcu+0x5/0x20 kernel/softirq.c:662 sysvec_apic_timer_interrupt+0x8e/0xc0 arch/x86/kernel/apic/apic.c:1106 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:649 RIP: 0010:arch_atomic_try_cmpxchg arch/x86/include/asm/atomic.h:202 [inline] RIP: 0010:arch_atomic_fetch_add_unless include/linux/atomic/atomic-arch-fallback.h:1247 [inline] RIP: 0010:arch_atomic_add_unless include/linux/atomic/atomic-arch-fallback.h:1267 [inline] RIP: 0010:atomic_add_unless include/linux/atomic/atomic-instrumented.h:608 [inline] RIP: 0010:page_ref_add_unless include/linux/page_ref.h:238 [inline] RIP: 0010:folio_ref_add_unless include/linux/page_ref.h:247 [inline] RIP: 0010:folio_ref_try_add_rcu include/linux/page_ref.h:280 [inline] RIP: 0010:folio_try_get_rcu include/linux/page_ref.h:313 [inline] RIP: 0010:next_uptodate_page+0x143/0xad0 mm/filemap.c:3308 Code: e8 b2 3e ec ff 31 ff 44 89 f6 e8 e8 3a ec ff 45 85 f6 0f 84 07 02 00 00 e8 9a 3e ec ff 41 8d 56 01 44 89 f0 f0 41 0f b1 14 24 <0f> 94 c2 31 ff 41 89 c6 89 d6 88 54 24 08 e8 7a 3a ec ff 0f b6 54 RSP: 0000:ffffc9000ed1fb68 EFLAGS: 00000246 RAX: 0000000000000007 RBX: ffffc9000ed1fc70 RCX: 0000000000000000 RDX: 0000000000000008 RSI: ffffffff8158ea56 RDI: 0000000000000005 RBP: ffffea0008ff80c0 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000007 R11: 0000000000000001 R12: ffffea0008ff80f4 R13: dffffc0000000000 R14: 0000000000000007 R15: 000000000000001f next_map_page mm/filemap.c:3346 [inline] filemap_map_pages+0xae9/0x1480 mm/filemap.c:3418 do_fault_around mm/memory.c:4480 [inline] do_read_fault mm/memory.c:4506 [inline] do_fault mm/memory.c:4640 [inline] handle_pte_fault mm/memory.c:4904 [inline] __handle_mm_fault+0x1f15/0x31b0 mm/memory.c:5043 handle_mm_fault+0x1c8/0x790 mm/memory.c:5141 do_user_addr_fault+0x489/0x11c0 arch/x86/mm/fault.c:1397 handle_page_fault arch/x86/mm/fault.c:1484 [inline] exc_page_fault+0x9e/0x180 arch/x86/mm/fault.c:1540 asm_exc_page_fault+0x22/0x30 arch/x86/include/asm/idtentry.h:570 RIP: 0033:0x7f548c2ac5d0 Code: Unable to access opcode bytes at RIP 0x7f548c2ac5a6. RSP: 002b:00007fff22272e38 EFLAGS: 00010202 RAX: 00007f548c2acfd0 RBX: 00007f548c290ba8 RCX: 0000000000000002 RDX: 00007f548c2904d8 RSI: 00007f548c290ba8 RDI: 00007f548c290430 RBP: 00007fff22272ea0 R08: 00007f548c2c0fd8 R09: 00007f548c2a90c0 R10: 000000000000000a R11: 00007f548c290ba8 R12: 00007f548c290000 R13: 0000000700000007 R14: 0000000000000007 R15: 00007fff22272eb0 Code: Unable to access opcode bytes at RIP 0x7f548c2ac5a6. RSP: 002b:00007fff22272e38 EFLAGS: 00010202 RAX: 00007f548c2acfd0 RBX: 00007f548c290ba8 RCX: 0000000000000002 RDX: 00007f548c2904d8 RSI: 00007f548c290ba8 RDI: 00007f548c290430 RBP: 00007fff22272ea0 R08: 00007f548c2c0fd8 R09: 00007f548c2a90c0 R10: 000000000000000a R11: 00007f548c290ba8 R12: 00007f548c290000 R13: 0000000700000007 R14: 0000000000000007 R15: 00007fff22272eb0 INFO: lockdep is turned off. ---------------- Code disassembly (best guess): 0: e8 b2 3e ec ff callq 0xffec3eb7 5: 31 ff xor %edi,%edi 7: 44 89 f6 mov %r14d,%esi a: e8 e8 3a ec ff callq 0xffec3af7 f: 45 85 f6 test %r14d,%r14d 12: 0f 84 07 02 00 00 je 0x21f 18: e8 9a 3e ec ff callq 0xffec3eb7 1d: 41 8d 56 01 lea 0x1(%r14),%edx 21: 44 89 f0 mov %r14d,%eax 24: f0 41 0f b1 14 24 lock cmpxchg %edx,(%r12) * 2a: 0f 94 c2 sete %dl <-- trapping instruction 2d: 31 ff xor %edi,%edi 2f: 41 89 c6 mov %eax,%r14d 32: 89 d6 mov %edx,%esi 34: 88 54 24 08 mov %dl,0x8(%rsp) 38: e8 7a 3a ec ff callq 0xffec3ab7 3d: 0f .byte 0xf 3e: b6 54 mov $0x54,%dh