===================================================== WARNING: HARDIRQ-safe -> HARDIRQ-unsafe lock order detected 6.4.0-rc6-syzkaller-00037-gb6dad5178cea #0 Not tainted ----------------------------------------------------- syz-executor280/4991 [HC0[0]:SC0[0]:HE0:SE1] is trying to acquire: ffff88807bf9d0c0 (&new->fa_lock){....}-{2:2}, at: kill_fasync_rcu fs/fcntl.c:997 [inline] ffff88807bf9d0c0 (&new->fa_lock){....}-{2:2}, at: kill_fasync+0x16e/0x490 fs/fcntl.c:1018 and this task is already holding: ffff8880152f2028 (&client->buffer_lock){....}-{2:2}, at: spin_lock include/linux/spinlock.h:350 [inline] ffff8880152f2028 (&client->buffer_lock){....}-{2:2}, at: evdev_pass_values+0xee/0xad0 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+0x1e3/0x520 kernel/locking/lockdep.c:5705 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0xd5/0x120 kernel/locking/spinlock.c:162 input_event+0x91/0xd0 drivers/input/input.c:432 input_report_key include/linux/input.h:425 [inline] psmouse_report_standard_buttons drivers/input/mouse/psmouse-base.c:121 [inline] psmouse_report_standard_packet+0x54/0x200 drivers/input/mouse/psmouse-base.c:139 psmouse_process_byte+0x48c/0x670 drivers/input/mouse/psmouse-base.c:230 psmouse_handle_byte+0x46/0x4b0 drivers/input/mouse/psmouse-base.c:272 psmouse_interrupt+0x69b/0x10b0 drivers/input/mouse/psmouse-base.c:424 serio_interrupt+0x8c/0x130 drivers/input/serio/serio.c:998 i8042_interrupt+0x372/0x770 drivers/input/serio/i8042.c:606 __handle_irq_event_percpu+0x286/0xa20 kernel/irq/handle.c:158 handle_irq_event_percpu kernel/irq/handle.c:193 [inline] handle_irq_event+0x89/0x1f0 kernel/irq/handle.c:210 handle_edge_irq+0x249/0xbf0 kernel/irq/chip.c:819 generic_handle_irq_desc include/linux/irqdesc.h:158 [inline] handle_irq arch/x86/kernel/irq.c:231 [inline] __common_interrupt+0xdb/0x1f0 arch/x86/kernel/irq.c:250 common_interrupt+0xa3/0xc0 arch/x86/kernel/irq.c:240 asm_common_interrupt+0x26/0x40 arch/x86/include/asm/idtentry.h:636 finish_lock_switch+0x95/0x110 kernel/sched/core.c:5096 finish_task_switch+0x134/0x650 kernel/sched/core.c:5213 schedule_tail+0xf/0xb0 kernel/sched/core.c:5272 ret_from_fork+0x8/0x30 arch/x86/entry/entry_64.S:293 to a HARDIRQ-irq-unsafe lock: (tasklist_lock){.+.+}-{2:2} ... which became HARDIRQ-irq-unsafe at: ... lock_acquire+0x1e3/0x520 kernel/locking/lockdep.c:5705 __raw_read_lock include/linux/rwlock_api_smp.h:150 [inline] _raw_read_lock+0x36/0x50 kernel/locking/spinlock.c:228 do_wait+0x2ad/0xb00 kernel/exit.c:1607 kernel_wait+0xe9/0x240 kernel/exit.c:1797 call_usermodehelper_exec_sync kernel/umh.c:137 [inline] call_usermodehelper_exec_work+0xb9/0x220 kernel/umh.c:164 process_one_work+0x8a0/0x10e0 kernel/workqueue.c:2405 worker_thread+0xa63/0x1210 kernel/workqueue.c:2552 kthread+0x2b8/0x350 kernel/kthread.c:379 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 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-executor280/4991: #0: ffff888023478110 (&evdev->mutex){+.+.}-{3:3}, at: evdev_write+0x271/0x7c0 drivers/input/evdev.c:513 #1: ffff888013bdf230 (&dev->event_lock#2){-...}-{2:2}, at: input_inject_event+0xc5/0x300 drivers/input/input.c:458 #2: ffffffff8cf27520 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x5/0x40 include/linux/rcupdate.h:326 #3: ffffffff8cf27520 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x5/0x40 include/linux/rcupdate.h:326 #4: ffffffff8cf27520 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x5/0x40 include/linux/rcupdate.h:326 #5: ffff8880152f2028 (&client->buffer_lock){....}-{2:2}, at: spin_lock include/linux/spinlock.h:350 [inline] #5: ffff8880152f2028 (&client->buffer_lock){....}-{2:2}, at: evdev_pass_values+0xee/0xad0 drivers/input/evdev.c:261 #6: ffffffff8cf27520 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x5/0x40 include/linux/rcupdate.h:326 the dependencies between HARDIRQ-irq-safe lock and the holding lock: -> (&dev->event_lock#2){-...}-{2:2} { IN-HARDIRQ-W at: lock_acquire+0x1e3/0x520 kernel/locking/lockdep.c:5705 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0xd5/0x120 kernel/locking/spinlock.c:162 input_event+0x91/0xd0 drivers/input/input.c:432 input_report_key include/linux/input.h:425 [inline] psmouse_report_standard_buttons drivers/input/mouse/psmouse-base.c:121 [inline] psmouse_report_standard_packet+0x54/0x200 drivers/input/mouse/psmouse-base.c:139 psmouse_process_byte+0x48c/0x670 drivers/input/mouse/psmouse-base.c:230 psmouse_handle_byte+0x46/0x4b0 drivers/input/mouse/psmouse-base.c:272 psmouse_interrupt+0x69b/0x10b0 drivers/input/mouse/psmouse-base.c:424 serio_interrupt+0x8c/0x130 drivers/input/serio/serio.c:998 i8042_interrupt+0x372/0x770 drivers/input/serio/i8042.c:606 __handle_irq_event_percpu+0x286/0xa20 kernel/irq/handle.c:158 handle_irq_event_percpu kernel/irq/handle.c:193 [inline] handle_irq_event+0x89/0x1f0 kernel/irq/handle.c:210 handle_edge_irq+0x249/0xbf0 kernel/irq/chip.c:819 generic_handle_irq_desc include/linux/irqdesc.h:158 [inline] handle_irq arch/x86/kernel/irq.c:231 [inline] __common_interrupt+0xdb/0x1f0 arch/x86/kernel/irq.c:250 common_interrupt+0xa3/0xc0 arch/x86/kernel/irq.c:240 asm_common_interrupt+0x26/0x40 arch/x86/include/asm/idtentry.h:636 finish_lock_switch+0x95/0x110 kernel/sched/core.c:5096 finish_task_switch+0x134/0x650 kernel/sched/core.c:5213 schedule_tail+0xf/0xb0 kernel/sched/core.c:5272 ret_from_fork+0x8/0x30 arch/x86/entry/entry_64.S:293 INITIAL USE at: lock_acquire+0x1e3/0x520 kernel/locking/lockdep.c:5705 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0xd5/0x120 kernel/locking/spinlock.c:162 input_inject_event+0xc5/0x300 drivers/input/input.c:458 led_trigger_event+0xf1/0x1a0 drivers/leds/led-triggers.c:390 kbd_led_trigger_activate+0xbd/0x100 drivers/tty/vt/keyboard.c:1036 led_trigger_set+0x53e/0x910 drivers/leds/led-triggers.c:197 led_trigger_set_default+0x1c6/0x200 drivers/leds/led-triggers.c:262 led_classdev_register_ext+0x604/0x7f0 drivers/leds/led-class.c:514 led_classdev_register include/linux/leds.h:225 [inline] input_leds_connect+0x493/0x640 drivers/input/input-leds.c:139 input_attach_handler drivers/input/input.c:1062 [inline] input_register_device+0xcf0/0x1090 drivers/input/input.c:2394 atkbd_connect+0x7a1/0x9f0 drivers/input/keyboard/atkbd.c:1278 serio_connect_driver drivers/input/serio/serio.c:44 [inline] serio_driver_probe+0x78/0x90 drivers/input/serio/serio.c:775 really_probe+0x294/0xc30 drivers/base/dd.c:658 __driver_probe_device+0x1a2/0x3d0 drivers/base/dd.c:800 driver_probe_device+0x50/0x420 drivers/base/dd.c:830 __driver_attach+0x45c/0x710 drivers/base/dd.c:1216 bus_for_each_dev+0x236/0x2b0 drivers/base/bus.c:368 serio_attach_driver drivers/input/serio/serio.c:804 [inline] serio_handle_event+0x1c7/0x910 drivers/input/serio/serio.c:224 process_one_work+0x8a0/0x10e0 kernel/workqueue.c:2405 worker_thread+0xa63/0x1210 kernel/workqueue.c:2552 kthread+0x2b8/0x350 kernel/kthread.c:379 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 } ... key at: [] input_allocate_device.__key.5+0x0/0x20 -> (&client->buffer_lock){....}-{2:2} { INITIAL USE at: lock_acquire+0x1e3/0x520 kernel/locking/lockdep.c:5705 __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:350 [inline] evdev_pass_values+0xee/0xad0 drivers/input/evdev.c:261 evdev_events+0x19c/0x2c0 drivers/input/evdev.c:306 input_to_handler drivers/input/input.c:129 [inline] input_pass_values+0x8dc/0x1290 drivers/input/input.c:161 input_event_dispose+0x366/0x650 drivers/input/input.c:376 input_handle_event+0xa6d/0xbe0 drivers/input/input.c:404 input_inject_event+0x201/0x300 drivers/input/input.c:463 evdev_write+0x66c/0x7c0 drivers/input/evdev.c:530 vfs_write+0x28d/0xb20 fs/read_write.c:582 ksys_write+0x1a0/0x2c0 fs/read_write.c:637 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd } ... key at: [] evdev_open.__key.24+0x0/0x20 ... acquired at: lock_acquire+0x1e3/0x520 kernel/locking/lockdep.c:5705 __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:350 [inline] evdev_pass_values+0xee/0xad0 drivers/input/evdev.c:261 evdev_events+0x19c/0x2c0 drivers/input/evdev.c:306 input_to_handler drivers/input/input.c:129 [inline] input_pass_values+0x8dc/0x1290 drivers/input/input.c:161 input_event_dispose+0x366/0x650 drivers/input/input.c:376 input_handle_event+0xa6d/0xbe0 drivers/input/input.c:404 input_inject_event+0x201/0x300 drivers/input/input.c:463 evdev_write+0x66c/0x7c0 drivers/input/evdev.c:530 vfs_write+0x28d/0xb20 fs/read_write.c:582 ksys_write+0x1a0/0x2c0 fs/read_write.c:637 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd the dependencies between the lock to be acquired and HARDIRQ-irq-unsafe lock: -> (tasklist_lock){.+.+}-{2:2} { HARDIRQ-ON-R at: lock_acquire+0x1e3/0x520 kernel/locking/lockdep.c:5705 __raw_read_lock include/linux/rwlock_api_smp.h:150 [inline] _raw_read_lock+0x36/0x50 kernel/locking/spinlock.c:228 do_wait+0x2ad/0xb00 kernel/exit.c:1607 kernel_wait+0xe9/0x240 kernel/exit.c:1797 call_usermodehelper_exec_sync kernel/umh.c:137 [inline] call_usermodehelper_exec_work+0xb9/0x220 kernel/umh.c:164 process_one_work+0x8a0/0x10e0 kernel/workqueue.c:2405 worker_thread+0xa63/0x1210 kernel/workqueue.c:2552 kthread+0x2b8/0x350 kernel/kthread.c:379 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 SOFTIRQ-ON-R at: lock_acquire+0x1e3/0x520 kernel/locking/lockdep.c:5705 __raw_read_lock include/linux/rwlock_api_smp.h:150 [inline] _raw_read_lock+0x36/0x50 kernel/locking/spinlock.c:228 do_wait+0x2ad/0xb00 kernel/exit.c:1607 kernel_wait+0xe9/0x240 kernel/exit.c:1797 call_usermodehelper_exec_sync kernel/umh.c:137 [inline] call_usermodehelper_exec_work+0xb9/0x220 kernel/umh.c:164 process_one_work+0x8a0/0x10e0 kernel/workqueue.c:2405 worker_thread+0xa63/0x1210 kernel/workqueue.c:2552 kthread+0x2b8/0x350 kernel/kthread.c:379 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 INITIAL USE at: lock_acquire+0x1e3/0x520 kernel/locking/lockdep.c:5705 __raw_write_lock_irq include/linux/rwlock_api_smp.h:195 [inline] _raw_write_lock_irq+0xd3/0x120 kernel/locking/spinlock.c:326 copy_process+0x25a8/0x4290 kernel/fork.c:2632 kernel_clone+0x222/0x800 kernel/fork.c:2915 user_mode_thread+0x132/0x190 kernel/fork.c:2993 rest_init+0x25/0x2b0 init/main.c:700 arch_call_rest_init+0xe/0x10 init/main.c:834 start_kernel+0x473/0x4f0 init/main.c:1088 x86_64_start_reservations+0x2a/0x30 arch/x86/kernel/head64.c:556 x86_64_start_kernel+0x99/0xa0 arch/x86/kernel/head64.c:537 secondary_startup_64_no_verify+0xf5/0xfb INITIAL READ USE at: lock_acquire+0x1e3/0x520 kernel/locking/lockdep.c:5705 __raw_read_lock include/linux/rwlock_api_smp.h:150 [inline] _raw_read_lock+0x36/0x50 kernel/locking/spinlock.c:228 do_wait+0x2ad/0xb00 kernel/exit.c:1607 kernel_wait+0xe9/0x240 kernel/exit.c:1797 call_usermodehelper_exec_sync kernel/umh.c:137 [inline] call_usermodehelper_exec_work+0xb9/0x220 kernel/umh.c:164 process_one_work+0x8a0/0x10e0 kernel/workqueue.c:2405 worker_thread+0xa63/0x1210 kernel/workqueue.c:2552 kthread+0x2b8/0x350 kernel/kthread.c:379 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 } ... key at: [] tasklist_lock+0x18/0x40 ... acquired at: lock_acquire+0x1e3/0x520 kernel/locking/lockdep.c:5705 __raw_read_lock include/linux/rwlock_api_smp.h:150 [inline] _raw_read_lock+0x36/0x50 kernel/locking/spinlock.c:228 send_sigio+0xd6/0x330 fs/fcntl.c:793 kill_fasync_rcu fs/fcntl.c:1004 [inline] kill_fasync+0x210/0x490 fs/fcntl.c:1018 fsnotify_insert_event+0x362/0x410 fs/notify/notification.c:128 fsnotify_add_event include/linux/fsnotify_backend.h:627 [inline] inotify_handle_inode_event+0x3b6/0x530 fs/notify/inotify/inotify_fsnotify.c:126 fsnotify_handle_event fs/notify/fsnotify.c:316 [inline] send_to_group fs/notify/fsnotify.c:364 [inline] fsnotify+0x1947/0x1ec0 fs/notify/fsnotify.c:570 fsnotify_name include/linux/fsnotify.h:36 [inline] fsnotify_dirent include/linux/fsnotify.h:42 [inline] fsnotify_create include/linux/fsnotify.h:207 [inline] open_last_lookups fs/namei.c:3562 [inline] path_openat+0x15d2/0x3170 fs/namei.c:3788 do_filp_open+0x234/0x490 fs/namei.c:3818 do_sys_openat2+0x13f/0x500 fs/open.c:1356 do_sys_open fs/open.c:1372 [inline] __do_sys_openat fs/open.c:1388 [inline] __se_sys_openat fs/open.c:1383 [inline] __x64_sys_openat+0x247/0x290 fs/open.c:1383 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd -> (&f->f_owner.lock){....}-{2:2} { INITIAL USE at: lock_acquire+0x1e3/0x520 kernel/locking/lockdep.c:5705 __raw_write_lock_irq include/linux/rwlock_api_smp.h:195 [inline] _raw_write_lock_irq+0xd3/0x120 kernel/locking/spinlock.c:326 f_modown+0x38/0x340 fs/fcntl.c:92 __f_setown fs/fcntl.c:111 [inline] f_setown+0x12b/0x1d0 fs/fcntl.c:139 do_fcntl+0x810/0x15f0 fs/fcntl.c:378 __do_sys_fcntl fs/fcntl.c:455 [inline] __se_sys_fcntl+0xd2/0x1b0 fs/fcntl.c:440 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd INITIAL READ USE at: lock_acquire+0x1e3/0x520 kernel/locking/lockdep.c:5705 __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:160 [inline] _raw_read_lock_irqsave+0xdd/0x120 kernel/locking/spinlock.c:236 send_sigio+0x33/0x330 fs/fcntl.c:779 kill_fasync_rcu fs/fcntl.c:1004 [inline] kill_fasync+0x210/0x490 fs/fcntl.c:1018 fsnotify_insert_event+0x362/0x410 fs/notify/notification.c:128 fsnotify_add_event include/linux/fsnotify_backend.h:627 [inline] inotify_handle_inode_event+0x3b6/0x530 fs/notify/inotify/inotify_fsnotify.c:126 fsnotify_handle_event fs/notify/fsnotify.c:316 [inline] send_to_group fs/notify/fsnotify.c:364 [inline] fsnotify+0x1947/0x1ec0 fs/notify/fsnotify.c:570 fsnotify_name include/linux/fsnotify.h:36 [inline] fsnotify_dirent include/linux/fsnotify.h:42 [inline] fsnotify_create include/linux/fsnotify.h:207 [inline] open_last_lookups fs/namei.c:3562 [inline] path_openat+0x15d2/0x3170 fs/namei.c:3788 do_filp_open+0x234/0x490 fs/namei.c:3818 do_sys_openat2+0x13f/0x500 fs/open.c:1356 do_sys_open fs/open.c:1372 [inline] __do_sys_openat fs/open.c:1388 [inline] __se_sys_openat fs/open.c:1383 [inline] __x64_sys_openat+0x247/0x290 fs/open.c:1383 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd } ... key at: [] __alloc_file.__key+0x0/0x10 ... acquired at: lock_acquire+0x1e3/0x520 kernel/locking/lockdep.c:5705 __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:160 [inline] _raw_read_lock_irqsave+0xdd/0x120 kernel/locking/spinlock.c:236 send_sigio+0x33/0x330 fs/fcntl.c:779 kill_fasync_rcu fs/fcntl.c:1004 [inline] kill_fasync+0x210/0x490 fs/fcntl.c:1018 fsnotify_insert_event+0x362/0x410 fs/notify/notification.c:128 fsnotify_add_event include/linux/fsnotify_backend.h:627 [inline] inotify_handle_inode_event+0x3b6/0x530 fs/notify/inotify/inotify_fsnotify.c:126 fsnotify_handle_event fs/notify/fsnotify.c:316 [inline] send_to_group fs/notify/fsnotify.c:364 [inline] fsnotify+0x1947/0x1ec0 fs/notify/fsnotify.c:570 fsnotify_name include/linux/fsnotify.h:36 [inline] fsnotify_dirent include/linux/fsnotify.h:42 [inline] fsnotify_create include/linux/fsnotify.h:207 [inline] open_last_lookups fs/namei.c:3562 [inline] path_openat+0x15d2/0x3170 fs/namei.c:3788 do_filp_open+0x234/0x490 fs/namei.c:3818 do_sys_openat2+0x13f/0x500 fs/open.c:1356 do_sys_open fs/open.c:1372 [inline] __do_sys_openat fs/open.c:1388 [inline] __se_sys_openat fs/open.c:1383 [inline] __x64_sys_openat+0x247/0x290 fs/open.c:1383 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd -> (&new->fa_lock){....}-{2:2} { INITIAL READ USE at: lock_acquire+0x1e3/0x520 kernel/locking/lockdep.c:5705 __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:160 [inline] _raw_read_lock_irqsave+0xdd/0x120 kernel/locking/spinlock.c:236 kill_fasync_rcu fs/fcntl.c:997 [inline] kill_fasync+0x16e/0x490 fs/fcntl.c:1018 fsnotify_insert_event+0x362/0x410 fs/notify/notification.c:128 fsnotify_add_event include/linux/fsnotify_backend.h:627 [inline] inotify_handle_inode_event+0x3b6/0x530 fs/notify/inotify/inotify_fsnotify.c:126 fsnotify_handle_event fs/notify/fsnotify.c:316 [inline] send_to_group fs/notify/fsnotify.c:364 [inline] fsnotify+0x1947/0x1ec0 fs/notify/fsnotify.c:570 fsnotify_name include/linux/fsnotify.h:36 [inline] fsnotify_dirent include/linux/fsnotify.h:42 [inline] fsnotify_create include/linux/fsnotify.h:207 [inline] open_last_lookups fs/namei.c:3562 [inline] path_openat+0x15d2/0x3170 fs/namei.c:3788 do_filp_open+0x234/0x490 fs/namei.c:3818 do_sys_openat2+0x13f/0x500 fs/open.c:1356 do_sys_open fs/open.c:1372 [inline] __do_sys_openat fs/open.c:1388 [inline] __se_sys_openat fs/open.c:1383 [inline] __x64_sys_openat+0x247/0x290 fs/open.c:1383 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd } ... key at: [] fasync_insert_entry.__key+0x0/0x20 ... acquired at: lock_acquire+0x1e3/0x520 kernel/locking/lockdep.c:5705 __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:160 [inline] _raw_read_lock_irqsave+0xdd/0x120 kernel/locking/spinlock.c:236 kill_fasync_rcu fs/fcntl.c:997 [inline] kill_fasync+0x16e/0x490 fs/fcntl.c:1018 __pass_event drivers/input/evdev.c:240 [inline] evdev_pass_values+0x586/0xad0 drivers/input/evdev.c:278 evdev_events+0x19c/0x2c0 drivers/input/evdev.c:306 input_to_handler drivers/input/input.c:129 [inline] input_pass_values+0x8dc/0x1290 drivers/input/input.c:161 input_event_dispose+0x366/0x650 drivers/input/input.c:376 input_handle_event+0xa6d/0xbe0 drivers/input/input.c:404 input_inject_event+0x201/0x300 drivers/input/input.c:463 evdev_write+0x66c/0x7c0 drivers/input/evdev.c:530 vfs_write+0x28d/0xb20 fs/read_write.c:582 ksys_write+0x1a0/0x2c0 fs/read_write.c:637 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd stack backtrace: CPU: 1 PID: 4991 Comm: syz-executor280 Not tainted 6.4.0-rc6-syzkaller-00037-gb6dad5178cea #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e7/0x2d0 lib/dump_stack.c:106 print_bad_irq_dependency kernel/locking/lockdep.c:2627 [inline] check_irq_usage kernel/locking/lockdep.c:2866 [inline] check_prev_add kernel/locking/lockdep.c:3117 [inline] check_prevs_add kernel/locking/lockdep.c:3232 [inline] validate_chain+0x4d1c/0x58f0 kernel/locking/lockdep.c:3847 __lock_acquire+0x1316/0x2070 kernel/locking/lockdep.c:5088 lock_acquire+0x1e3/0x520 kernel/locking/lockdep.c:5705 __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:160 [inline] _raw_read_lock_irqsave+0xdd/0x120 kernel/locking/spinlock.c:236 kill_fasync_rcu fs/fcntl.c:997 [inline] kill_fasync+0x16e/0x490 fs/fcntl.c:1018 __pass_event drivers/input/evdev.c:240 [inline] evdev_pass_values+0x586/0xad0 drivers/input/evdev.c:278 evdev_events+0x19c/0x2c0 drivers/input/evdev.c:306 input_to_handler drivers/input/input.c:129 [inline] input_pass_values+0x8dc/0x1290 drivers/input/input.c:161 input_event_dispose+0x366/0x650 drivers/input/input.c:376 input_handle_event+0xa6d/0xbe0 drivers/input/input.c:404 input_inject_event+0x201/0x300 drivers/input/input.c:463 evdev_write+0x66c/0x7c0 drivers/input/evdev.c:530 vfs_write+0x28d/0xb20 fs/read_write.c:582 ksys_write+0x1a0/0x2c0 fs/read_write.c:637 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fc6d7f11679 Code: 28 c3 e8 2a 14 00 00 66 2e 0f 1f 84 00 00 00 00 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 c0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffe558ea628 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fc6d7f11679 RDX: 0000000000002ad8 RSI: 000000002000004