======================================================== WARNING: possible irq lock inversion dependency detected 6.17.0-rc1-syzkaller-00029-g91325f31afc1 #0 Not tainted -------------------------------------------------------- syz.5.3634/14866 just changed the state of lock: ffff888028dd7230 (&dev->event_lock#2){..-.}-{3:3}, at: class_spinlock_irqsave_constructor include/linux/spinlock.h:585 [inline] ffff888028dd7230 (&dev->event_lock#2){..-.}-{3:3}, at: input_event drivers/input/input.c:394 [inline] ffff888028dd7230 (&dev->event_lock#2){..-.}-{3:3}, at: input_event+0x74/0xd0 drivers/input/input.c:390 but this lock took another, SOFTIRQ-READ-unsafe lock in the past: (tasklist_lock){.+.+}-{3:3} and interrupts could create inverse lock ordering between them. other info that might help us debug this: Chain exists of: &dev->event_lock#2 --> &client->buffer_lock --> tasklist_lock Possible interrupt unsafe locking scenario: CPU0 CPU1 ---- ---- lock(tasklist_lock); local_irq_disable(); lock(&dev->event_lock#2); lock(&client->buffer_lock); lock(&dev->event_lock#2); *** DEADLOCK *** 5 locks held by syz.5.3634/14866: #0: ffffffff8e6de750 (dup_mmap_sem){++++}-{0:0}, at: dup_mm kernel/fork.c:1484 [inline] #0: ffffffff8e6de750 (dup_mmap_sem){++++}-{0:0}, at: copy_mm kernel/fork.c:1537 [inline] #0: ffffffff8e6de750 (dup_mmap_sem){++++}-{0:0}, at: copy_process+0x4076/0x7690 kernel/fork.c:2175 #1: ffff888029c1c260 (&mm->mmap_lock){++++}-{4:4}, at: mmap_write_lock_killable include/linux/mmap_lock.h:415 [inline] #1: ffff888029c1c260 (&mm->mmap_lock){++++}-{4:4}, at: dup_mmap+0xfd/0x21d0 mm/mmap.c:1727 #2: ffff888029c181e0 (&mm->mmap_lock/1){+.+.}-{4:4}, at: mmap_write_lock_nested include/linux/mmap_lock.h:405 [inline] #2: ffff888029c181e0 (&mm->mmap_lock/1){+.+.}-{4:4}, at: dup_mmap+0x198/0x21d0 mm/mmap.c:1734 #3: ffffffff8e5c11e0 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:331 [inline] #3: ffffffff8e5c11e0 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:841 [inline] #3: ffffffff8e5c11e0 (rcu_read_lock){....}-{1:3}, at: __update_page_owner_handle+0x64/0x550 mm/page_owner.c:243 #4: ffffffff8e5c11e0 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:331 [inline] #4: ffffffff8e5c11e0 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:841 [inline] #4: ffffffff8e5c11e0 (rcu_read_lock){....}-{1:3}, at: xpad360w_process_packet drivers/input/joystick/xpad.c:1032 [inline] #4: ffffffff8e5c11e0 (rcu_read_lock){....}-{1:3}, at: xpad_irq_in+0x1343/0x2ac0 drivers/input/joystick/xpad.c:1250 the shortest dependencies between 2nd lock and 1st lock: -> (tasklist_lock){.+.+}-{3:3} { HARDIRQ-ON-R at: lock_acquire kernel/locking/lockdep.c:5868 [inline] lock_acquire+0x179/0x350 kernel/locking/lockdep.c:5825 __raw_read_lock include/linux/rwlock_api_smp.h:150 [inline] _raw_read_lock+0x5f/0x70 kernel/locking/spinlock.c:228 __do_wait+0x105/0x890 kernel/exit.c:1662 do_wait+0x21e/0x5a0 kernel/exit.c:1706 kernel_wait+0x9f/0x160 kernel/exit.c:1882 call_usermodehelper_exec_sync kernel/umh.c:136 [inline] call_usermodehelper_exec_work+0xf1/0x170 kernel/umh.c:163 process_one_work+0x9cc/0x1b70 kernel/workqueue.c:3236 process_scheduled_works kernel/workqueue.c:3319 [inline] worker_thread+0x6c8/0xf10 kernel/workqueue.c:3400 kthread+0x3c5/0x780 kernel/kthread.c:463 ret_from_fork+0x5d7/0x6f0 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 SOFTIRQ-ON-R at: lock_acquire kernel/locking/lockdep.c:5868 [inline] lock_acquire+0x179/0x350 kernel/locking/lockdep.c:5825 __raw_read_lock include/linux/rwlock_api_smp.h:150 [inline] _raw_read_lock+0x5f/0x70 kernel/locking/spinlock.c:228 __do_wait+0x105/0x890 kernel/exit.c:1662 do_wait+0x21e/0x5a0 kernel/exit.c:1706 kernel_wait+0x9f/0x160 kernel/exit.c:1882 call_usermodehelper_exec_sync kernel/umh.c:136 [inline] call_usermodehelper_exec_work+0xf1/0x170 kernel/umh.c:163 process_one_work+0x9cc/0x1b70 kernel/workqueue.c:3236 process_scheduled_works kernel/workqueue.c:3319 [inline] worker_thread+0x6c8/0xf10 kernel/workqueue.c:3400 kthread+0x3c5/0x780 kernel/kthread.c:463 ret_from_fork+0x5d7/0x6f0 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 INITIAL USE at: lock_acquire kernel/locking/lockdep.c:5868 [inline] lock_acquire+0x179/0x350 kernel/locking/lockdep.c:5825 __raw_write_lock_irq include/linux/rwlock_api_smp.h:195 [inline] _raw_write_lock_irq+0x36/0x50 kernel/locking/spinlock.c:326 copy_process+0x4caf/0x7690 kernel/fork.c:2321 kernel_clone+0xfc/0x930 kernel/fork.c:2605 user_mode_thread+0xc7/0x110 kernel/fork.c:2683 rest_init+0x23/0x2b0 init/main.c:709 start_kernel+0x3ee/0x4d0 init/main.c:1097 x86_64_start_reservations+0x18/0x30 arch/x86/kernel/head64.c:307 x86_64_start_kernel+0x130/0x190 arch/x86/kernel/head64.c:288 common_startup_64+0x13e/0x148 INITIAL READ USE at: lock_acquire kernel/locking/lockdep.c:5868 [inline] lock_acquire+0x179/0x350 kernel/locking/lockdep.c:5825 __raw_read_lock include/linux/rwlock_api_smp.h:150 [inline] _raw_read_lock+0x5f/0x70 kernel/locking/spinlock.c:228 __do_wait+0x105/0x890 kernel/exit.c:1662 do_wait+0x21e/0x5a0 kernel/exit.c:1706 kernel_wait+0x9f/0x160 kernel/exit.c:1882 call_usermodehelper_exec_sync kernel/umh.c:136 [inline] call_usermodehelper_exec_work+0xf1/0x170 kernel/umh.c:163 process_one_work+0x9cc/0x1b70 kernel/workqueue.c:3236 process_scheduled_works kernel/workqueue.c:3319 [inline] worker_thread+0x6c8/0xf10 kernel/workqueue.c:3400 kthread+0x3c5/0x780 kernel/kthread.c:463 ret_from_fork+0x5d7/0x6f0 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 } ... key at: [] tasklist_lock+0x18/0x40 ... acquired at: __raw_read_lock include/linux/rwlock_api_smp.h:150 [inline] _raw_read_lock+0x5f/0x70 kernel/locking/spinlock.c:228 send_sigurg+0xed/0xc80 fs/fcntl.c:967 sk_send_sigurg+0x76/0x360 net/core/sock.c:3622 queue_oob net/unix/af_unix.c:2380 [inline] unix_stream_sendmsg+0xfa5/0x1340 net/unix/af_unix.c:2516 sock_sendmsg_nosec net/socket.c:714 [inline] __sock_sendmsg net/socket.c:729 [inline] ____sys_sendmsg+0xa98/0xc70 net/socket.c:2614 ___sys_sendmsg+0x134/0x1d0 net/socket.c:2668 __sys_sendmmsg+0x200/0x420 net/socket.c:2757 __do_sys_sendmmsg net/socket.c:2784 [inline] __se_sys_sendmmsg net/socket.c:2781 [inline] __x64_sys_sendmmsg+0x9c/0x100 net/socket.c:2781 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0x4c0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f -> (&f_owner->lock){....}-{3:3} { INITIAL USE at: lock_acquire kernel/locking/lockdep.c:5868 [inline] lock_acquire+0x179/0x350 kernel/locking/lockdep.c:5825 __raw_write_lock_irq include/linux/rwlock_api_smp.h:195 [inline] _raw_write_lock_irq+0x36/0x50 kernel/locking/spinlock.c:326 __f_setown+0x61/0x3c0 fs/fcntl.c:136 generic_add_lease fs/locks.c:1874 [inline] generic_setlease fs/locks.c:1942 [inline] generic_setlease+0xeef/0x1300 fs/locks.c:1929 kernel_setlease+0x106/0x140 fs/locks.c:1991 vfs_setlease+0x258/0x2d0 fs/locks.c:2026 do_fcntl_add_lease fs/locks.c:2047 [inline] fcntl_setlease+0x3ed/0x5a0 fs/locks.c:2069 do_fcntl+0x751/0x15a0 fs/fcntl.c:536 __do_sys_fcntl fs/fcntl.c:591 [inline] __se_sys_fcntl fs/fcntl.c:576 [inline] __x64_sys_fcntl+0x163/0x200 fs/fcntl.c:576 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0x4c0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f INITIAL READ USE at: lock_acquire kernel/locking/lockdep.c:5868 [inline] lock_acquire+0x179/0x350 kernel/locking/lockdep.c:5825 __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:160 [inline] _raw_read_lock_irqsave+0x74/0x90 kernel/locking/spinlock.c:236 send_sigio+0x31/0x3e0 fs/fcntl.c:907 kill_fasync_rcu fs/fcntl.c:1133 [inline] kill_fasync fs/fcntl.c:1148 [inline] kill_fasync+0x214/0x510 fs/fcntl.c:1141 lease_break_callback+0x23/0x30 fs/locks.c:558 __break_lease+0x671/0x1810 fs/locks.c:1592 break_lease include/linux/filelock.h:446 [inline] do_dentry_open+0x91f/0x1530 fs/open.c:956 vfs_open+0x82/0x3f0 fs/open.c:1095 do_open fs/namei.c:3887 [inline] path_openat+0x1de4/0x2cb0 fs/namei.c:4046 do_filp_open+0x20b/0x470 fs/namei.c:4073 do_sys_openat2+0x11b/0x1d0 fs/open.c:1435 do_sys_open fs/open.c:1450 [inline] __do_sys_open fs/open.c:1458 [inline] __se_sys_open fs/open.c:1454 [inline] __x64_sys_open+0x153/0x1e0 fs/open.c:1454 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0x4c0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f } ... key at: [] __key.1+0x0/0x40 ... acquired at: __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:160 [inline] _raw_read_lock_irqsave+0x74/0x90 kernel/locking/spinlock.c:236 send_sigio+0x31/0x3e0 fs/fcntl.c:907 kill_fasync_rcu fs/fcntl.c:1133 [inline] kill_fasync fs/fcntl.c:1148 [inline] kill_fasync+0x214/0x510 fs/fcntl.c:1141 lease_break_callback+0x23/0x30 fs/locks.c:558 __break_lease+0x671/0x1810 fs/locks.c:1592 break_lease include/linux/filelock.h:446 [inline] do_dentry_open+0x91f/0x1530 fs/open.c:956 vfs_open+0x82/0x3f0 fs/open.c:1095 do_open fs/namei.c:3887 [inline] path_openat+0x1de4/0x2cb0 fs/namei.c:4046 do_filp_open+0x20b/0x470 fs/namei.c:4073 do_sys_openat2+0x11b/0x1d0 fs/open.c:1435 do_sys_open fs/open.c:1450 [inline] __do_sys_open fs/open.c:1458 [inline] __se_sys_open fs/open.c:1454 [inline] __x64_sys_open+0x153/0x1e0 fs/open.c:1454 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0x4c0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f -> (&new->fa_lock){....}-{3:3} { INITIAL USE at: lock_acquire kernel/locking/lockdep.c:5868 [inline] lock_acquire+0x179/0x350 kernel/locking/lockdep.c:5825 __raw_write_lock_irq include/linux/rwlock_api_smp.h:195 [inline] _raw_write_lock_irq+0x36/0x50 kernel/locking/spinlock.c:326 fasync_remove_entry+0xb2/0x1e0 fs/fcntl.c:1001 fasync_helper+0xaf/0xd0 fs/fcntl.c:1104 lease_modify+0x232/0x500 fs/locks.c:1455 locks_remove_lease fs/locks.c:2675 [inline] locks_remove_file+0x29e/0x5c0 fs/locks.c:2700 __fput+0x351/0xb70 fs/file_table.c:460 task_work_run+0x150/0x240 kernel/task_work.c:227 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] exit_to_user_mode_loop+0xeb/0x110 kernel/entry/common.c:43 exit_to_user_mode_prepare include/linux/irq-entry-common.h:225 [inline] syscall_exit_to_user_mode_work include/linux/entry-common.h:175 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:210 [inline] do_syscall_64+0x3f6/0x4c0 arch/x86/entry/syscall_64.c:100 entry_SYSCALL_64_after_hwframe+0x77/0x7f INITIAL READ USE at: lock_acquire kernel/locking/lockdep.c:5868 [inline] lock_acquire+0x179/0x350 kernel/locking/lockdep.c:5825 __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:160 [inline] _raw_read_lock_irqsave+0x74/0x90 kernel/locking/spinlock.c:236 kill_fasync_rcu fs/fcntl.c:1124 [inline] kill_fasync fs/fcntl.c:1148 [inline] kill_fasync+0x138/0x510 fs/fcntl.c:1141 lease_break_callback+0x23/0x30 fs/locks.c:558 __break_lease+0x671/0x1810 fs/locks.c:1592 break_lease include/linux/filelock.h:446 [inline] do_dentry_open+0x91f/0x1530 fs/open.c:956 vfs_open+0x82/0x3f0 fs/open.c:1095 do_open fs/namei.c:3887 [inline] path_openat+0x1de4/0x2cb0 fs/namei.c:4046 do_filp_open+0x20b/0x470 fs/namei.c:4073 do_sys_openat2+0x11b/0x1d0 fs/open.c:1435 do_sys_open fs/open.c:1450 [inline] __do_sys_open fs/open.c:1458 [inline] __se_sys_open fs/open.c:1454 [inline] __x64_sys_open+0x153/0x1e0 fs/open.c:1454 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0x4c0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f } ... key at: [] __key.0+0x0/0x40 ... acquired at: __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:160 [inline] _raw_read_lock_irqsave+0x74/0x90 kernel/locking/spinlock.c:236 kill_fasync_rcu fs/fcntl.c:1124 [inline] kill_fasync fs/fcntl.c:1148 [inline] kill_fasync+0x138/0x510 fs/fcntl.c:1141 __pass_event drivers/input/evdev.c:240 [inline] evdev_pass_values+0x619/0x9b0 drivers/input/evdev.c:278 evdev_events+0x1bb/0x390 drivers/input/evdev.c:306 input_pass_values+0x74e/0x880 drivers/input/input.c:127 input_event_dispose drivers/input/input.c:341 [inline] input_handle_event+0xf00/0x14d0 drivers/input/input.c:369 input_inject_event+0x1e8/0x3b0 drivers/input/input.c:423 evdev_write+0x457/0x750 drivers/input/evdev.c:528 vfs_write+0x2a0/0x11d0 fs/read_write.c:684 ksys_write+0x1f8/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0x4c0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f -> (&client->buffer_lock){....}-{3:3} { INITIAL USE at: lock_acquire kernel/locking/lockdep.c:5868 [inline] lock_acquire+0x179/0x350 kernel/locking/lockdep.c:5825 __raw_spin_lock_irq include/linux/spinlock_api_smp.h:119 [inline] _raw_spin_lock_irq+0x36/0x50 kernel/locking/spinlock.c:170 spin_lock_irq include/linux/spinlock.h:376 [inline] evdev_fetch_next_event drivers/input/evdev.c:543 [inline] evdev_read+0x436/0xee0 drivers/input/evdev.c:584 vfs_read+0x1e4/0xcf0 fs/read_write.c:570 ksys_read+0x1f8/0x250 fs/read_write.c:715 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0x4c0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f } ... key at: [] __key.1+0x0/0x40 ... acquired at: __raw_spin_lock include/linux/spinlock_api_smp.h:133 [inline] _raw_spin_lock+0x2e/0x40 kernel/locking/spinlock.c:154 spin_lock include/linux/spinlock.h:351 [inline] evdev_pass_values+0x10e/0x9b0 drivers/input/evdev.c:261 evdev_events+0x1bb/0x390 drivers/input/evdev.c:306 input_pass_values+0x74e/0x880 drivers/input/input.c:127 input_event_dispose drivers/input/input.c:341 [inline] input_handle_event+0xf00/0x14d0 drivers/input/input.c:369 input_inject_event+0x1e8/0x3b0 drivers/input/input.c:423 evdev_write+0x457/0x750 drivers/input/evdev.c:528 vfs_write+0x2a0/0x11d0 fs/read_write.c:684 ksys_write+0x1f8/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0x4c0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f -> (&dev->event_lock#2){..-.}-{3:3} { IN-SOFTIRQ-W at: lock_acquire kernel/locking/lockdep.c:5868 [inline] lock_acquire+0x179/0x350 kernel/locking/lockdep.c:5825 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x3a/0x60 kernel/locking/spinlock.c:162 class_spinlock_irqsave_constructor include/linux/spinlock.h:585 [inline] input_event drivers/input/input.c:394 [inline] input_event+0x74/0xd0 drivers/input/input.c:390 input_report_abs include/linux/input.h:449 [inline] xpad360_process_packet.part.0+0xed/0xce0 drivers/input/joystick/xpad.c:908 xpad360_process_packet drivers/input/joystick/xpad.c:1035 [inline] xpad360w_process_packet drivers/input/joystick/xpad.c:1035 [inline] xpad_irq_in+0x1414/0x2ac0 drivers/input/joystick/xpad.c:1250 __usb_hcd_giveback_urb+0x38d/0x6e0 drivers/usb/core/hcd.c:1663 usb_hcd_giveback_urb+0x39b/0x450 drivers/usb/core/hcd.c:1747 dummy_timer+0x1814/0x3a30 drivers/usb/gadget/udc/dummy_hcd.c:1995 __run_hrtimer kernel/time/hrtimer.c:1761 [inline] __hrtimer_run_queues+0x202/0xad0 kernel/time/hrtimer.c:1825 hrtimer_run_softirq+0x17d/0x350 kernel/time/hrtimer.c:1842 handle_softirqs+0x216/0x8e0 kernel/softirq.c:579 __do_softirq kernel/softirq.c:613 [inline] invoke_softirq kernel/softirq.c:453 [inline] __irq_exit_rcu+0x109/0x170 kernel/softirq.c:680 irq_exit_rcu+0x9/0x30 kernel/softirq.c:696 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1050 [inline] sysvec_apic_timer_interrupt+0xa4/0xc0 arch/x86/kernel/apic/apic.c:1050 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 __nr_to_section include/linux/mmzone.h:1935 [inline] __pfn_to_section include/linux/mmzone.h:2079 [inline] lookup_page_ext+0x46/0x1d0 mm/page_ext.c:251 page_ext_iter_begin include/linux/page_ext.h:132 [inline] __update_page_owner_handle+0xd9/0x550 mm/page_owner.c:244 __set_page_owner+0x126/0x550 mm/page_owner.c:330 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1c0/0x230 mm/page_alloc.c:1851 prep_new_page mm/page_alloc.c:1859 [inline] get_page_from_freelist+0x132b/0x38e0 mm/page_alloc.c:3858 __alloc_frozen_pages_noprof+0x261/0x23f0 mm/page_alloc.c:5148 alloc_pages_mpol+0x1fb/0x550 mm/mempolicy.c:2416 folio_alloc_mpol_noprof+0x36/0x2f0 mm/mempolicy.c:2435 vma_alloc_folio_noprof+0xed/0x1e0 mm/mempolicy.c:2470 folio_prealloc mm/memory.c:1063 [inline] copy_pte_range mm/memory.c:1214 [inline] copy_pmd_range mm/memory.c:1261 [inline] copy_pud_range mm/memory.c:1298 [inline] copy_p4d_range mm/memory.c:1322 [inline] copy_page_range+0x4336/0x5c80 mm/memory.c:1410 dup_mmap+0xe88/0x21d0 mm/mmap.c:1834 dup_mm kernel/fork.c:1485 [inline] copy_mm kernel/fork.c:1537 [inline] copy_process+0x4081/0x7690 kernel/fork.c:2175 kernel_clone+0xfc/0x930 kernel/fork.c:2605 __do_sys_clone+0xce/0x120 kernel/fork.c:2748 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0x4c0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f INITIAL USE at: lock_acquire kernel/locking/lockdep.c:5868 [inline] lock_acquire+0x179/0x350 kernel/locking/lockdep.c:5825 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x3a/0x60 kernel/locking/spinlock.c:162 class_spinlock_irqsave_constructor include/linux/spinlock.h:585 [inline] input_inject_event+0x9f/0x3b0 drivers/input/input.c:418 __led_set_brightness drivers/leds/led-core.c:52 [inline] led_set_brightness_nopm drivers/leds/led-core.c:335 [inline] led_set_brightness_nosleep drivers/leds/led-core.c:369 [inline] led_set_brightness+0x217/0x290 drivers/leds/led-core.c:328 kbd_led_trigger_activate+0xcb/0x110 drivers/tty/vt/keyboard.c:1029 led_trigger_set+0x59a/0xc50 drivers/leds/led-triggers.c:220 led_match_default_trigger drivers/leds/led-triggers.c:277 [inline] led_match_default_trigger drivers/leds/led-triggers.c:271 [inline] led_trigger_set_default drivers/leds/led-triggers.c:300 [inline] led_trigger_set_default+0x1e0/0x2e0 drivers/leds/led-triggers.c:284 led_classdev_register_ext+0x7b8/0xa10 drivers/leds/led-class.c:565 led_classdev_register include/linux/leds.h:274 [inline] input_leds_connect+0x552/0x8e0 drivers/input/input-leds.c:145 input_attach_handler.isra.0+0x176/0x250 drivers/input/input.c:993 input_register_device+0xab9/0x1180 drivers/input/input.c:2412 atkbd_connect+0x5f8/0xa40 drivers/input/keyboard/atkbd.c:1340 serio_connect_driver drivers/input/serio/serio.c:43 [inline] serio_driver_probe+0x7c/0xd0 drivers/input/serio/serio.c:747 call_driver_probe drivers/base/dd.c:581 [inline] really_probe+0x241/0xa90 drivers/base/dd.c:659 __driver_probe_device+0x1de/0x440 drivers/base/dd.c:801 driver_probe_device+0x4c/0x1b0 drivers/base/dd.c:831 __driver_attach+0x283/0x580 drivers/base/dd.c:1217 bus_for_each_dev+0x13b/0x1d0 drivers/base/bus.c:370 serio_attach_driver drivers/input/serio/serio.c:776 [inline] serio_handle_event+0x335/0xc30 drivers/input/serio/serio.c:213 process_one_work+0x9cc/0x1b70 kernel/workqueue.c:3236 process_scheduled_works kernel/workqueue.c:3319 [inline] worker_thread+0x6c8/0xf10 kernel/workqueue.c:3400 kthread+0x3c5/0x780 kernel/kthread.c:463 ret_from_fork+0x5d7/0x6f0 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 } ... key at: [] __key.7+0x0/0x40 ... acquired at: mark_usage kernel/locking/lockdep.c:4642 [inline] __lock_acquire+0x8b7/0x1ce0 kernel/locking/lockdep.c:5191 lock_acquire kernel/locking/lockdep.c:5868 [inline] lock_acquire+0x179/0x350 kernel/locking/lockdep.c:5825 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x3a/0x60 kernel/locking/spinlock.c:162 class_spinlock_irqsave_constructor include/linux/spinlock.h:585 [inline] input_event drivers/input/input.c:394 [inline] input_event+0x74/0xd0 drivers/input/input.c:390 input_report_abs include/linux/input.h:449 [inline] xpad360_process_packet.part.0+0xed/0xce0 drivers/input/joystick/xpad.c:908 xpad360_process_packet drivers/input/joystick/xpad.c:1035 [inline] xpad360w_process_packet drivers/input/joystick/xpad.c:1035 [inline] xpad_irq_in+0x1414/0x2ac0 drivers/input/joystick/xpad.c:1250 __usb_hcd_giveback_urb+0x38d/0x6e0 drivers/usb/core/hcd.c:1663 usb_hcd_giveback_urb+0x39b/0x450 drivers/usb/core/hcd.c:1747 dummy_timer+0x1814/0x3a30 drivers/usb/gadget/udc/dummy_hcd.c:1995 __run_hrtimer kernel/time/hrtimer.c:1761 [inline] __hrtimer_run_queues+0x202/0xad0 kernel/time/hrtimer.c:1825 hrtimer_run_softirq+0x17d/0x350 kernel/time/hrtimer.c:1842 handle_softirqs+0x216/0x8e0 kernel/softirq.c:579 __do_softirq kernel/softirq.c:613 [inline] invoke_softirq kernel/softirq.c:453 [inline] __irq_exit_rcu+0x109/0x170 kernel/softirq.c:680 irq_exit_rcu+0x9/0x30 kernel/softirq.c:696 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1050 [inline] sysvec_apic_timer_interrupt+0xa4/0xc0 arch/x86/kernel/apic/apic.c:1050 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 __nr_to_section include/linux/mmzone.h:1935 [inline] __pfn_to_section include/linux/mmzone.h:2079 [inline] lookup_page_ext+0x46/0x1d0 mm/page_ext.c:251 page_ext_iter_begin include/linux/page_ext.h:132 [inline] __update_page_owner_handle+0xd9/0x550 mm/page_owner.c:244 __set_page_owner+0x126/0x550 mm/page_owner.c:330 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1c0/0x230 mm/page_alloc.c:1851 prep_new_page mm/page_alloc.c:1859 [inline] get_page_from_freelist+0x132b/0x38e0 mm/page_alloc.c:3858 __alloc_frozen_pages_noprof+0x261/0x23f0 mm/page_alloc.c:5148 alloc_pages_mpol+0x1fb/0x550 mm/mempolicy.c:2416 folio_alloc_mpol_noprof+0x36/0x2f0 mm/mempolicy.c:2435 vma_alloc_folio_noprof+0xed/0x1e0 mm/mempolicy.c:2470 folio_prealloc mm/memory.c:1063 [inline] copy_pte_range mm/memory.c:1214 [inline] copy_pmd_range mm/memory.c:1261 [inline] copy_pud_range mm/memory.c:1298 [inline] copy_p4d_range mm/memory.c:1322 [inline] copy_page_range+0x4336/0x5c80 mm/memory.c:1410 dup_mmap+0xe88/0x21d0 mm/mmap.c:1834 dup_mm kernel/fork.c:1485 [inline] copy_mm kernel/fork.c:1537 [inline] copy_process+0x4081/0x7690 kernel/fork.c:2175 kernel_clone+0xfc/0x930 kernel/fork.c:2605 __do_sys_clone+0xce/0x120 kernel/fork.c:2748 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0x4c0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f stack backtrace: CPU: 0 UID: 0 PID: 14866 Comm: syz.5.3634 Not tainted 6.17.0-rc1-syzkaller-00029-g91325f31afc1 #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:120 print_irq_inversion_bug.part.0+0x212/0x270 kernel/locking/lockdep.c:4125 print_irq_inversion_bug kernel/locking/lockdep.c:4076 [inline] check_usage_forwards kernel/locking/lockdep.c:4158 [inline] mark_lock_irq kernel/locking/lockdep.c:4294 [inline] mark_lock+0x2e5/0x610 kernel/locking/lockdep.c:4753 mark_usage kernel/locking/lockdep.c:4642 [inline] __lock_acquire+0x8b7/0x1ce0 kernel/locking/lockdep.c:5191 lock_acquire kernel/locking/lockdep.c:5868 [inline] lock_acquire+0x179/0x350 kernel/locking/lockdep.c:5825 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x3a/0x60 kernel/locking/spinlock.c:162 class_spinlock_irqsave_constructor include/linux/spinlock.h:585 [inline] input_event drivers/input/input.c:394 [inline] input_event+0x74/0xd0 drivers/input/input.c:390 input_report_abs include/linux/input.h:449 [inline] xpad360_process_packet.part.0+0xed/0xce0 drivers/input/joystick/xpad.c:908 xpad360_process_packet drivers/input/joystick/xpad.c:1035 [inline] xpad360w_process_packet drivers/input/joystick/xpad.c:1035 [inline] xpad_irq_in+0x1414/0x2ac0 drivers/input/joystick/xpad.c:1250 __usb_hcd_giveback_urb+0x38d/0x6e0 drivers/usb/core/hcd.c:1663 usb_hcd_giveback_urb+0x39b/0x450 drivers/usb/core/hcd.c:1747 dummy_timer+0x1814/0x3a30 drivers/usb/gadget/udc/dummy_hcd.c:1995 __run_hrtimer kernel/time/hrtimer.c:1761 [inline] __hrtimer_run_queues+0x202/0xad0 kernel/time/hrtimer.c:1825 hrtimer_run_softirq+0x17d/0x350 kernel/time/hrtimer.c:1842 handle_softirqs+0x216/0x8e0 kernel/softirq.c:579 __do_softirq kernel/softirq.c:613 [inline] invoke_softirq kernel/softirq.c:453 [inline] __irq_exit_rcu+0x109/0x170 kernel/softirq.c:680 irq_exit_rcu+0x9/0x30 kernel/softirq.c:696 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1050 [inline] sysvec_apic_timer_interrupt+0xa4/0xc0 arch/x86/kernel/apic/apic.c:1050 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 RIP: 0010:_static_cpu_has arch/x86/include/asm/cpufeature.h:101 [inline] RIP: 0010:__nr_to_section include/linux/mmzone.h:1937 [inline] RIP: 0010:__pfn_to_section include/linux/mmzone.h:2079 [inline] RIP: 0010:lookup_page_ext+0x46/0x1d0 mm/page_ext.c:251 Code: fc ff df 48 c1 e8 03 80 3c 10 00 0f 85 73 01 00 00 48 2b 1d 2c c4 c7 0b 48 c1 fb 06 49 89 dc 48 89 dd 49 c1 ec 0f 48 c1 ed 16 18 01 00 00 41 bd 00 00 04 00 e8 ba 02 8e ff 48 89 ee 4c 89 ef RSP: 0018:ffffc90003f5f028 EFLAGS: 00000246 RAX: 1ffffffff1beaa8e RBX: 0000000000082673 RCX: ffffc9001bb8d000 RDX: dffffc0000000000 RSI: ffffffff822d901e RDI: ffffea0002099cc0 RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000010 R13: dffffc0000000000 R14: 0000000000000000 R15: 0000000000000000 page_ext_iter_begin include/linux/page_ext.h:132 [inline] __update_page_owner_handle+0xd9/0x550 mm/page_owner.c:244 __set_page_owner+0x126/0x550 mm/page_owner.c:330 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1c0/0x230 mm/page_alloc.c:1851 prep_new_page mm/page_alloc.c:1859 [inline] get_page_from_freelist+0x132b/0x38e0 mm/page_alloc.c:3858 __alloc_frozen_pages_noprof+0x261/0x23f0 mm/page_alloc.c:5148 alloc_pages_mpol+0x1fb/0x550 mm/mempolicy.c:2416 folio_alloc_mpol_noprof+0x36/0x2f0 mm/mempolicy.c:2435 vma_alloc_folio_noprof+0xed/0x1e0 mm/mempolicy.c:2470 folio_prealloc mm/memory.c:1063 [inline] copy_pte_range mm/memory.c:1214 [inline] copy_pmd_range mm/memory.c:1261 [inline] copy_pud_range mm/memory.c:1298 [inline] copy_p4d_range mm/memory.c:1322 [inline] copy_page_range+0x4336/0x5c80 mm/memory.c:1410 dup_mmap+0xe88/0x21d0 mm/mmap.c:1834 dup_mm kernel/fork.c:1485 [inline] copy_mm kernel/fork.c:1537 [inline] copy_process+0x4081/0x7690 kernel/fork.c:2175 kernel_clone+0xfc/0x930 kernel/fork.c:2605 __do_sys_clone+0xce/0x120 kernel/fork.c:2748 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0x4c0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f5a11f8ebe9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f5a12e33fe8 EFLAGS: 00000206 ORIG_RAX: 0000000000000038 RAX: ffffffffffffffda RBX: 00007f5a121b5fa0 RCX: 00007f5a11f8ebe9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000080040000 RBP: 00007f5a12011e19 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000206 R12: 0000000000000000 R13: 00007f5a121b6038 R14: 00007f5a121b5fa0 R15: 00007ffd9b02c408 xpad 4-1:179.65: xpad_irq_out - usb_submit_urb failed with result -19 dummy_hcd dummy_hcd.3: timer fired with no URBs pending? ---------------- Code disassembly (best guess), 2 bytes skipped: 0: df 48 c1 fisttps -0x3f(%rax) 3: e8 03 80 3c 10 call 0x103c800b 8: 00 0f add %cl,(%rdi) a: 85 73 01 test %esi,0x1(%rbx) d: 00 00 add %al,(%rax) f: 48 2b 1d 2c c4 c7 0b sub 0xbc7c42c(%rip),%rbx # 0xbc7c442 16: 48 c1 fb 06 sar $0x6,%rbx 1a: 49 89 dc mov %rbx,%r12 1d: 48 89 dd mov %rbx,%rbp 20: 49 c1 ec 0f shr $0xf,%r12 24: 48 c1 ed 16 shr $0x16,%rbp * 28: e9 18 01 00 00 jmp 0x145 <-- trapping instruction 2d: 41 bd 00 00 04 00 mov $0x40000,%r13d 33: e8 ba 02 8e ff call 0xff8e02f2 38: 48 89 ee mov %rbp,%rsi 3b: 4c 89 ef mov %r13,%rdi