===================================================== WARNING: HARDIRQ-safe -> HARDIRQ-unsafe lock order detected 5.15.185-syzkaller #0 Not tainted ----------------------------------------------------- syz-executor.0/4561 [HC0[0]:SC0[0]:HE0:SE1] is trying to acquire: ffff88801e9a00c0 (&new->fa_lock){....}-{2:2}, at: kill_fasync_rcu fs/fcntl.c:1008 [inline] ffff88801e9a00c0 (&new->fa_lock){....}-{2:2}, at: kill_fasync+0x16d/0x490 fs/fcntl.c:1029 and this task is already holding: ffff8880676dd028 (&client->buffer_lock){....}-{2:2}, at: spin_lock include/linux/spinlock.h:363 [inline] ffff8880676dd028 (&client->buffer_lock){....}-{2:2}, at: evdev_pass_values+0xcb/0xab0 drivers/input/evdev.c:261 which would create a new lock dependency: (&client->buffer_lock){....}-{2:2} -> (&new->fa_lock){....}-{2:2} but this new dependency connects a HARDIRQ-irq-safe lock: (&dev->event_lock#2){-...}-{2:2} ... which became HARDIRQ-irq-safe at: lock_acquire+0x197/0x3f0 kernel/locking/lockdep.c:5623 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0xa4/0xf0 kernel/locking/spinlock.c:162 input_event+0x76/0xb0 drivers/input/input.c:456 input_report_key include/linux/input.h:425 [inline] psmouse_report_standard_buttons drivers/input/mouse/psmouse-base.c:123 [inline] psmouse_report_standard_packet+0x4f/0x200 drivers/input/mouse/psmouse-base.c:141 psmouse_process_byte+0x42b/0x620 drivers/input/mouse/psmouse-base.c:232 psmouse_handle_byte+0x43/0x490 drivers/input/mouse/psmouse-base.c:274 psmouse_interrupt+0x699/0x1130 drivers/input/mouse/psmouse-base.c:426 serio_interrupt+0x87/0x130 drivers/input/serio/serio.c:1001 i8042_interrupt+0x369/0x710 drivers/input/serio/i8042.c:606 __handle_irq_event_percpu+0x291/0x9b0 kernel/irq/handle.c:156 handle_irq_event_percpu kernel/irq/handle.c:196 [inline] handle_irq_event+0xa5/0x220 kernel/irq/handle.c:213 handle_edge_irq+0x243/0xb20 kernel/irq/chip.c:819 generic_handle_irq_desc include/linux/irqdesc.h:158 [inline] handle_irq arch/x86/kernel/irq.c:233 [inline] __common_interrupt+0xd7/0x1e0 arch/x86/kernel/irq.c:252 common_interrupt+0xb0/0xd0 arch/x86/kernel/irq.c:242 asm_common_interrupt+0x22/0x40 arch/x86/include/asm/idtentry.h:667 __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:161 [inline] _raw_spin_unlock_irqrestore+0xa5/0x100 kernel/locking/spinlock.c:194 spin_unlock_irqrestore include/linux/spinlock.h:418 [inline] klist_next+0x272/0x2f0 lib/klist.c:401 next_device drivers/base/bus.c:260 [inline] bus_for_each_dev+0x146/0x1e0 drivers/base/bus.c:302 bus_add_driver+0x30a/0x5a0 drivers/base/bus.c:620 driver_register+0x32d/0x430 drivers/base/driver.c:240 usb_register_driver+0x202/0x3d0 drivers/usb/core/driver.c:1061 do_one_initcall+0x1ee/0x680 init/main.c:1302 do_initcall_level+0x137/0x1f0 init/main.c:1375 do_initcalls+0x4b/0x90 init/main.c:1391 kernel_init_freeable+0x3ce/0x560 init/main.c:1615 kernel_init+0x19/0x1b0 init/main.c:1506 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 to a HARDIRQ-irq-unsafe lock: (tasklist_lock){.+.+}-{2:2} ... which became HARDIRQ-irq-unsafe at: ... lock_acquire+0x197/0x3f0 kernel/locking/lockdep.c:5623 __raw_read_lock include/linux/rwlock_api_smp.h:149 [inline] _raw_read_lock+0x32/0x40 kernel/locking/spinlock.c:228 do_wait+0x293/0xac0 kernel/exit.c:1578 kernel_wait+0xa8/0x160 kernel/exit.c:1768 call_usermodehelper_exec_sync kernel/umh.c:139 [inline] call_usermodehelper_exec_work+0xb5/0x220 kernel/umh.c:166 process_one_work+0x863/0x1000 kernel/workqueue.c:2310 worker_thread+0xaa8/0x12a0 kernel/workqueue.c:2457 kthread+0x436/0x520 kernel/kthread.c:334 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 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 *** 7 locks held by syz-executor.0/4561: #0: ffff8881487cb110 (&evdev->mutex){+.+.}-{3:3}, at: evdev_write+0x177/0x470 drivers/input/evdev.c:513 #1: ffff888146758230 (&dev->event_lock#2){-...}-{2:2}, at: input_inject_event+0x9e/0x2c0 drivers/input/input.c:482 #2: ffffffff8c11bfa0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x5/0x30 include/linux/rcupdate.h:311 #3: ffffffff8c11bfa0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x5/0x30 include/linux/rcupdate.h:311 #4: ffffffff8c11bfa0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x5/0x30 include/linux/rcupdate.h:311 #5: ffff8880676dd028 (&client->buffer_lock){....}-{2:2}, at: spin_lock include/linux/spinlock.h:363 [inline] #5: ffff8880676dd028 (&client->buffer_lock){....}-{2:2}, at: evdev_pass_values+0xcb/0xab0 drivers/input/evdev.c:261 #6: ffffffff8c11bfa0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x5/0x30 include/linux/rcupdate.h:311 the dependencies between HARDIRQ-irq-safe lock and the holding lock: -> (&dev->event_lock#2){-...}-{2:2} { IN-HARDIRQ-W at: lock_acquire+0x197/0x3f0 kernel/locking/lockdep.c:5623 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0xa4/0xf0 kernel/locking/spinlock.c:162 input_event+0x76/0xb0 drivers/input/input.c:456 input_report_key include/linux/input.h:425 [inline] psmouse_report_standard_buttons drivers/input/mouse/psmouse-base.c:123 [inline] psmouse_report_standard_packet+0x4f/0x200 drivers/input/mouse/psmouse-base.c:141 psmouse_process_byte+0x42b/0x620 drivers/input/mouse/psmouse-base.c:232 psmouse_handle_byte+0x43/0x490 drivers/input/mouse/psmouse-base.c:274 psmouse_interrupt+0x699/0x1130 drivers/input/mouse/psmouse-base.c:426 serio_interrupt+0x87/0x130 drivers/input/serio/serio.c:1001 i8042_interrupt+0x369/0x710 drivers/input/serio/i8042.c:606 __handle_irq_event_percpu+0x291/0x9b0 kernel/irq/handle.c:156 handle_irq_event_percpu kernel/irq/handle.c:196 [inline] handle_irq_event+0xa5/0x220 kernel/irq/handle.c:213 handle_edge_irq+0x243/0xb20 kernel/irq/chip.c:819 generic_handle_irq_desc include/linux/irqdesc.h:158 [inline] handle_irq arch/x86/kernel/irq.c:233 [inline] __common_interrupt+0xd7/0x1e0 arch/x86/kernel/irq.c:252 common_interrupt+0xb0/0xd0 arch/x86/kernel/irq.c:242 asm_common_interrupt+0x22/0x40 arch/x86/include/asm/idtentry.h:667 __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:161 [inline] _raw_spin_unlock_irqrestore+0xa5/0x100 kernel/locking/spinlock.c:194 spin_unlock_irqrestore include/linux/spinlock.h:418 [inline] klist_next+0x272/0x2f0 lib/klist.c:401 next_device drivers/base/bus.c:260 [inline] bus_for_each_dev+0x146/0x1e0 drivers/base/bus.c:302 bus_add_driver+0x30a/0x5a0 drivers/base/bus.c:620 driver_register+0x32d/0x430 drivers/base/driver.c:240 usb_register_driver+0x202/0x3d0 drivers/usb/core/driver.c:1061 do_one_initcall+0x1ee/0x680 init/main.c:1302 do_initcall_level+0x137/0x1f0 init/main.c:1375 do_initcalls+0x4b/0x90 init/main.c:1391 kernel_init_freeable+0x3ce/0x560 init/main.c:1615 kernel_init+0x19/0x1b0 init/main.c:1506 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 INITIAL USE at: lock_acquire+0x197/0x3f0 kernel/locking/lockdep.c:5623 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0xa4/0xf0 kernel/locking/spinlock.c:162 input_inject_event+0x9e/0x2c0 drivers/input/input.c:482 led_trigger_event+0x10a/0x1e0 drivers/leds/led-triggers.c:392 kbd_led_trigger_activate+0xb9/0x100 drivers/tty/vt/keyboard.c:1029 led_trigger_set+0x504/0x900 drivers/leds/led-triggers.c:211 led_trigger_set_default+0x19c/0x1e0 drivers/leds/led-triggers.c:275 led_classdev_register_ext+0x68f/0x870 drivers/leds/led-class.c:428 led_classdev_register include/linux/leds.h:196 [inline] input_leds_connect+0x51d/0x750 drivers/input/input-leds.c:139 input_attach_handler drivers/input/input.c:1046 [inline] input_register_device+0xda7/0x1140 drivers/input/input.c:2429 atkbd_connect+0x759/0xa10 drivers/input/keyboard/atkbd.c:1336 serio_connect_driver drivers/input/serio/serio.c:47 [inline] serio_driver_probe+0x76/0x90 drivers/input/serio/serio.c:778 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x284/0xc80 drivers/base/dd.c:595 __driver_probe_device+0x18c/0x330 drivers/base/dd.c:755 driver_probe_device+0x4f/0x420 drivers/base/dd.c:785 __driver_attach+0x46b/0x670 drivers/base/dd.c:1164 bus_for_each_dev+0x175/0x1e0 drivers/base/bus.c:303 serio_attach_driver drivers/input/serio/serio.c:807 [inline] serio_handle_event+0x29c/0x840 drivers/input/serio/serio.c:227 process_one_work+0x863/0x1000 kernel/workqueue.c:2310 worker_thread+0xaa8/0x12a0 kernel/workqueue.c:2457 kthread+0x436/0x520 kernel/kthread.c:334 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 } ... key at: [] input_allocate_device.__key.6+0x0/0x20 -> (&client->buffer_lock){....}-{2:2} { INITIAL USE at: lock_acquire+0x197/0x3f0 kernel/locking/lockdep.c:5623 __raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline] _raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:154 spin_lock include/linux/spinlock.h:363 [inline] evdev_pass_values+0xcb/0xab0 drivers/input/evdev.c:261 evdev_events+0x1c0/0x2f0 drivers/input/evdev.c:306 input_to_handler drivers/input/input.c:126 [inline] input_pass_values+0x880/0x1220 drivers/input/input.c:156 input_handle_event+0xb3f/0x1490 drivers/input/input.c:415 input_inject_event+0x1b9/0x2c0 drivers/input/input.c:487 evdev_write+0x326/0x470 drivers/input/evdev.c:530 vfs_write+0x300/0xd00 fs/read_write.c:592 ksys_write+0x14d/0x250 fs/read_write.c:647 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 } ... key at: [] evdev_open.__key.22+0x0/0x20 ... acquired at: __raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline] _raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:154 spin_lock include/linux/spinlock.h:363 [inline] evdev_pass_values+0xcb/0xab0 drivers/input/evdev.c:261 evdev_events+0x1c0/0x2f0 drivers/input/evdev.c:306 input_to_handler drivers/input/input.c:126 [inline] input_pass_values+0x880/0x1220 drivers/input/input.c:156 input_handle_event+0xb3f/0x1490 drivers/input/input.c:415 input_inject_event+0x1b9/0x2c0 drivers/input/input.c:487 evdev_write+0x326/0x470 drivers/input/evdev.c:530 vfs_write+0x300/0xd00 fs/read_write.c:592 ksys_write+0x14d/0x250 fs/read_write.c:647 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 the dependencies between the lock to be acquired and HARDIRQ-irq-unsafe lock: -> (tasklist_lock){.+.+}-{2:2} { HARDIRQ-ON-R at: lock_acquire+0x197/0x3f0 kernel/locking/lockdep.c:5623 __raw_read_lock include/linux/rwlock_api_smp.h:149 [inline] _raw_read_lock+0x32/0x40 kernel/locking/spinlock.c:228 do_wait+0x293/0xac0 kernel/exit.c:1578 kernel_wait+0xa8/0x160 kernel/exit.c:1768 call_usermodehelper_exec_sync kernel/umh.c:139 [inline] call_usermodehelper_exec_work+0xb5/0x220 kernel/umh.c:166 process_one_work+0x863/0x1000 kernel/workqueue.c:2310 worker_thread+0xaa8/0x12a0 kernel/workqueue.c:2457 kthread+0x436/0x520 kernel/kthread.c:334 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 SOFTIRQ-ON-R at: lock_acquire+0x197/0x3f0 kernel/locking/lockdep.c:5623 __raw_read_lock include/linux/rwlock_api_smp.h:149 [inline] _raw_read_lock+0x32/0x40 kernel/locking/spinlock.c:228 do_wait+0x293/0xac0 kernel/exit.c:1578 kernel_wait+0xa8/0x160 kernel/exit.c:1768 call_usermodehelper_exec_sync kernel/umh.c:139 [inline] call_usermodehelper_exec_work+0xb5/0x220 kernel/umh.c:166 process_one_work+0x863/0x1000 kernel/workqueue.c:2310 worker_thread+0xaa8/0x12a0 kernel/workqueue.c:2457 kthread+0x436/0x520 kernel/kthread.c:334 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 INITIAL USE at: lock_acquire+0x197/0x3f0 kernel/locking/lockdep.c:5623 __raw_write_lock_irq include/linux/rwlock_api_smp.h:196 [inline] _raw_write_lock_irq+0x9f/0xe0 kernel/locking/spinlock.c:316 copy_process+0x234a/0x3e00 kernel/fork.c:2412 kernel_clone+0x219/0x930 kernel/fork.c:2679 kernel_thread+0xc8/0x120 kernel/fork.c:2731 rest_init+0x21/0x330 init/main.c:706 start_kernel+0x486/0x530 init/main.c:1140 secondary_startup_64_no_verify+0xb1/0xbb INITIAL READ USE at: lock_acquire+0x197/0x3f0 kernel/locking/lockdep.c:5623 __raw_read_lock include/linux/rwlock_api_smp.h:149 [inline] _raw_read_lock+0x32/0x40 kernel/locking/spinlock.c:228 do_wait+0x293/0xac0 kernel/exit.c:1578 kernel_wait+0xa8/0x160 kernel/exit.c:1768 call_usermodehelper_exec_sync kernel/umh.c:139 [inline] call_usermodehelper_exec_work+0xb5/0x220 kernel/umh.c:166 process_one_work+0x863/0x1000 kernel/workqueue.c:2310 worker_thread+0xaa8/0x12a0 kernel/workqueue.c:2457 kthread+0x436/0x520 kernel/kthread.c:334 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 } ... key at: [] tasklist_lock+0x18/0x40 ... acquired at: __raw_read_lock include/linux/rwlock_api_smp.h:149 [inline] _raw_read_lock+0x32/0x40 kernel/locking/spinlock.c:228 send_sigio+0xd2/0x330 fs/fcntl.c:804 kill_fasync_rcu fs/fcntl.c:1015 [inline] kill_fasync+0x20a/0x490 fs/fcntl.c:1029 lease_break_callback+0x22/0x30 fs/locks.c:613 __break_lease+0x4a3/0x12b0 fs/locks.c:1615 break_lease include/linux/fs.h:2650 [inline] do_dentry_open+0x771/0xf80 fs/open.c:817 do_open fs/namei.c:3608 [inline] path_openat+0x2682/0x2f30 fs/namei.c:3742 do_filp_open+0x1b3/0x3e0 fs/namei.c:3769 do_sys_openat2+0x142/0x4a0 fs/open.c:1253 do_sys_open fs/open.c:1269 [inline] __do_sys_open fs/open.c:1277 [inline] __se_sys_open fs/open.c:1273 [inline] __x64_sys_open+0x11b/0x140 fs/open.c:1273 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 -> (&f->f_owner.lock){....}-{2:2} { INITIAL USE at: lock_acquire+0x197/0x3f0 kernel/locking/lockdep.c:5623 __raw_write_lock_irq include/linux/rwlock_api_smp.h:196 [inline] _raw_write_lock_irq+0x9f/0xe0 kernel/locking/spinlock.c:316 __f_setown+0x37/0x330 fs/fcntl.c:91 f_setown_ex fs/fcntl.c:194 [inline] do_fcntl+0x103c/0x12d0 fs/fcntl.c:393 __do_sys_fcntl fs/fcntl.c:466 [inline] __se_sys_fcntl+0xcc/0x190 fs/fcntl.c:451 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 INITIAL READ USE at: lock_acquire+0x197/0x3f0 kernel/locking/lockdep.c:5623 __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:159 [inline] _raw_read_lock_irqsave+0xac/0xf0 kernel/locking/spinlock.c:236 send_sigio+0x2f/0x330 fs/fcntl.c:790 kill_fasync_rcu fs/fcntl.c:1015 [inline] kill_fasync+0x20a/0x490 fs/fcntl.c:1029 lease_break_callback+0x22/0x30 fs/locks.c:613 __break_lease+0x4a3/0x12b0 fs/locks.c:1615 break_lease include/linux/fs.h:2650 [inline] do_dentry_open+0x771/0xf80 fs/open.c:817 do_open fs/namei.c:3608 [inline] path_openat+0x2682/0x2f30 fs/namei.c:3742 do_filp_open+0x1b3/0x3e0 fs/namei.c:3769 do_sys_openat2+0x142/0x4a0 fs/open.c:1253 do_sys_open fs/open.c:1269 [inline] __do_sys_open fs/open.c:1277 [inline] __se_sys_open fs/open.c:1273 [inline] __x64_sys_open+0x11b/0x140 fs/open.c:1273 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 } ... key at: [] __alloc_file.__key+0x0/0x10 ... acquired at: __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:159 [inline] _raw_read_lock_irqsave+0xac/0xf0 kernel/locking/spinlock.c:236 send_sigio+0x2f/0x330 fs/fcntl.c:790 kill_fasync_rcu fs/fcntl.c:1015 [inline] kill_fasync+0x20a/0x490 fs/fcntl.c:1029 lease_break_callback+0x22/0x30 fs/locks.c:613 __break_lease+0x4a3/0x12b0 fs/locks.c:1615 break_lease include/linux/fs.h:2650 [inline] do_dentry_open+0x771/0xf80 fs/open.c:817 do_open fs/namei.c:3608 [inline] path_openat+0x2682/0x2f30 fs/namei.c:3742 do_filp_open+0x1b3/0x3e0 fs/namei.c:3769 do_sys_openat2+0x142/0x4a0 fs/open.c:1253 do_sys_open fs/open.c:1269 [inline] __do_sys_open fs/open.c:1277 [inline] __se_sys_open fs/open.c:1273 [inline] __x64_sys_open+0x11b/0x140 fs/open.c:1273 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 -> (&new->fa_lock){....}-{2:2} { INITIAL READ USE at: lock_acquire+0x197/0x3f0 kernel/locking/lockdep.c:5623 __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:159 [inline] _raw_read_lock_irqsave+0xac/0xf0 kernel/locking/spinlock.c:236 kill_fasync_rcu fs/fcntl.c:1008 [inline] kill_fasync+0x16d/0x490 fs/fcntl.c:1029 lease_break_callback+0x22/0x30 fs/locks.c:613 __break_lease+0x4a3/0x12b0 fs/locks.c:1615 break_lease include/linux/fs.h:2650 [inline] do_dentry_open+0x771/0xf80 fs/open.c:817 do_open fs/namei.c:3608 [inline] path_openat+0x2682/0x2f30 fs/namei.c:3742 do_filp_open+0x1b3/0x3e0 fs/namei.c:3769 do_sys_openat2+0x142/0x4a0 fs/open.c:1253 do_sys_open fs/open.c:1269 [inline] __do_sys_open fs/open.c:1277 [inline] __se_sys_open fs/open.c:1273 [inline] __x64_sys_open+0x11b/0x140 fs/open.c:1273 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 } ... key at: [] fasync_insert_entry.__key+0x0/0x20 ... acquired at: __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:159 [inline] _raw_read_lock_irqsave+0xac/0xf0 kernel/locking/spinlock.c:236 kill_fasync_rcu fs/fcntl.c:1008 [inline] kill_fasync+0x16d/0x490 fs/fcntl.c:1029 __pass_event drivers/input/evdev.c:240 [inline] evdev_pass_values+0x54b/0xab0 drivers/input/evdev.c:278 evdev_events+0x1c0/0x2f0 drivers/input/evdev.c:306 input_to_handler drivers/input/input.c:126 [inline] input_pass_values+0x880/0x1220 drivers/input/input.c:156 input_handle_event+0xb3f/0x1490 drivers/input/input.c:415 input_inject_event+0x1b9/0x2c0 drivers/input/input.c:487 evdev_write+0x326/0x470 drivers/input/evdev.c:530 vfs_write+0x300/0xd00 fs/read_write.c:592 ksys_write+0x14d/0x250 fs/read_write.c:647 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 stack backtrace: CPU: 1 PID: 4561 Comm: syz-executor.0 Not tainted 5.15.185-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 Call Trace: dump_stack_lvl+0x168/0x230 lib/dump_stack.c:106 print_bad_irq_dependency kernel/locking/lockdep.c:2567 [inline] check_irq_usage kernel/locking/lockdep.c:2806 [inline] check_prev_add kernel/locking/lockdep.c:3057 [inline] check_prevs_add kernel/locking/lockdep.c:3172 [inline] validate_chain kernel/locking/lockdep.c:3788 [inline] __lock_acquire+0x65dd/0x7c60 kernel/locking/lockdep.c:5012 lock_acquire+0x197/0x3f0 kernel/locking/lockdep.c:5623 __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:159 [inline] _raw_read_lock_irqsave+0xac/0xf0 kernel/locking/spinlock.c:236 kill_fasync_rcu fs/fcntl.c:1008 [inline] kill_fasync+0x16d/0x490 fs/fcntl.c:1029 __pass_event drivers/input/evdev.c:240 [inline] evdev_pass_values+0x54b/0xab0 drivers/input/evdev.c:278 evdev_events+0x1c0/0x2f0 drivers/input/evdev.c:306 input_to_handler drivers/input/input.c:126 [inline] input_pass_values+0x880/0x1220 drivers/input/input.c:156 input_handle_event+0xb3f/0x1490 drivers/input/input.c:415 input_inject_event+0x1b9/0x2c0 drivers/input/input.c:487 evdev_write+0x326/0x470 drivers/input/evdev.c:530 vfs_write+0x300/0xd00 fs/read_write.c:592 ksys_write+0x14d/0x250 fs/read_write.c:647 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7f0574613b29 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f05739950c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f0574732f80 RCX: 00007f0574613b29 RDX: 0000000000000079 RSI: 000000002004d000 RDI: 0000000000000005 RBP: 00007f057465f47a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f0574732f80 R15: 00007ffd04077d28