===================================================== WARNING: HARDIRQ-safe -> HARDIRQ-unsafe lock order detected syzkaller #0 Not tainted ----------------------------------------------------- syz.6.1948/10594 [HC0[0]:SC0[0]:HE0:SE1] is trying to acquire: ffff888055f206a8 (&new->fa_lock){....}-{2:2}, at: kill_fasync_rcu fs/fcntl.c:988 [inline] ffff888055f206a8 (&new->fa_lock){....}-{2:2}, at: kill_fasync+0x18e/0x4b0 fs/fcntl.c:1009 and this task is already holding: ffff888029771230 (&dev->event_lock#2){-...}-{2:2}, at: input_inject_event+0xa7/0x310 drivers/input/input.c:456 which would create a new lock dependency: (&dev->event_lock#2){-...}-{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+0x1bb/0x4a0 kernel/locking/lockdep.c:5662 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0xb0/0x100 kernel/locking/spinlock.c:162 input_event+0x76/0xb0 drivers/input/input.c:430 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+0x4f/0x200 drivers/input/mouse/psmouse-base.c:139 psmouse_process_byte+0x42b/0x620 drivers/input/mouse/psmouse-base.c:230 psmouse_handle_byte+0x43/0x490 drivers/input/mouse/psmouse-base.c:272 psmouse_interrupt+0x699/0x1130 drivers/input/mouse/psmouse-base.c:424 serio_interrupt+0x87/0x130 drivers/input/serio/serio.c:998 i8042_interrupt+0x365/0x710 drivers/input/serio/i8042.c:610 __handle_irq_event_percpu+0x293/0xa50 kernel/irq/handle.c:158 handle_irq_event_percpu kernel/irq/handle.c:193 [inline] handle_irq_event+0x87/0x1e0 kernel/irq/handle.c:210 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:682 __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:152 [inline] _raw_spin_unlock_irqrestore+0xbc/0x120 kernel/locking/spinlock.c:194 spin_unlock_irqrestore include/linux/spinlock.h:406 [inline] i8042_command drivers/input/serio/i8042.c:360 [inline] i8042_aux_write+0x105/0x170 drivers/input/serio/i8042.c:395 serio_write include/linux/serio.h:125 [inline] ps2_do_sendbyte+0x1f9/0x6e0 drivers/input/serio/libps2.c:41 ps2_sendbyte+0x5b/0x110 drivers/input/serio/libps2.c:93 cypress_ps2_sendbyte drivers/input/mouse/cypress_ps2.c:42 [inline] cypress_ps2_read_cmd_status drivers/input/mouse/cypress_ps2.c:116 [inline] cypress_send_ext_cmd+0x240/0x930 drivers/input/mouse/cypress_ps2.c:189 cypress_detect+0x8f/0x1a0 drivers/input/mouse/cypress_ps2.c:205 psmouse_do_detect drivers/input/mouse/psmouse-base.c:1007 [inline] psmouse_try_protocol drivers/input/mouse/psmouse-base.c:1021 [inline] psmouse_extensions+0xcb2/0x1570 drivers/input/mouse/psmouse-base.c:1144 psmouse_switch_protocol+0x2fc/0x870 drivers/input/mouse/psmouse-base.c:1538 psmouse_connect+0x8f8/0x1500 drivers/input/mouse/psmouse-base.c:1628 serio_connect_driver drivers/input/serio/serio.c:44 [inline] serio_driver_probe+0x76/0x90 drivers/input/serio/serio.c:775 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x2aa/0xc70 drivers/base/dd.c:639 __driver_probe_device+0x18c/0x330 drivers/base/dd.c:785 driver_probe_device+0x4f/0x420 drivers/base/dd.c:815 __driver_attach+0x44a/0x6e0 drivers/base/dd.c:1201 bus_for_each_dev+0x182/0x1f0 drivers/base/bus.c:303 serio_attach_driver drivers/input/serio/serio.c:804 [inline] serio_handle_event+0x29c/0x840 drivers/input/serio/serio.c:224 process_one_work+0x8a2/0x1160 kernel/workqueue.c:2292 worker_thread+0xaa2/0x1270 kernel/workqueue.c:2439 kthread+0x29d/0x330 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 to a HARDIRQ-irq-unsafe lock: (tasklist_lock){.+.+}-{2:2} ... which became HARDIRQ-irq-unsafe at: ... lock_acquire+0x1bb/0x4a0 kernel/locking/lockdep.c:5662 __raw_read_lock include/linux/rwlock_api_smp.h:150 [inline] _raw_read_lock+0x32/0x40 kernel/locking/spinlock.c:228 do_wait+0x2b6/0xb60 kernel/exit.c:1605 kernel_wait+0xd3/0x1c0 kernel/exit.c:1795 call_usermodehelper_exec_sync kernel/umh.c:140 [inline] call_usermodehelper_exec_work+0xb5/0x220 kernel/umh.c:167 process_one_work+0x8a2/0x1160 kernel/workqueue.c:2292 worker_thread+0xaa2/0x1270 kernel/workqueue.c:2439 kthread+0x29d/0x330 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 other info that might help us debug this: Chain exists of: &dev->event_lock#2 --> &new->fa_lock --> tasklist_lock Possible interrupt unsafe locking scenario: CPU0 CPU1 ---- ---- lock(tasklist_lock); local_irq_disable(); lock(&dev->event_lock#2); lock(&new->fa_lock); lock(&dev->event_lock#2); *** DEADLOCK *** 6 locks held by syz.6.1948/10594: #0: ffff88802ae1a110 (&evdev->mutex){+.+.}-{3:3}, at: evdev_write+0x17c/0x490 drivers/input/evdev.c:513 #1: ffff888029771230 (&dev->event_lock#2){-...}-{2:2}, at: input_inject_event+0xa7/0x310 drivers/input/input.c:456 #2: ffffffff8cb2d620 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:350 [inline] #2: ffffffff8cb2d620 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:791 [inline] #2: ffffffff8cb2d620 (rcu_read_lock){....}-{1:2}, at: input_inject_event+0xb8/0x310 drivers/input/input.c:458 #3: ffffffff8cb2d620 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:350 [inline] #3: ffffffff8cb2d620 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:791 [inline] #3: ffffffff8cb2d620 (rcu_read_lock){....}-{1:2}, at: input_pass_values+0xa3/0x12f0 drivers/input/input.c:151 #4: ffffffff8cb2d620 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:350 [inline] #4: ffffffff8cb2d620 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:791 [inline] #4: ffffffff8cb2d620 (rcu_read_lock){....}-{1:2}, at: mousedev_notify_readers+0x2c/0xc00 drivers/input/mousedev.c:269 #5: ffffffff8cb2d620 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:350 [inline] #5: ffffffff8cb2d620 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:791 [inline] #5: ffffffff8cb2d620 (rcu_read_lock){....}-{1:2}, at: kill_fasync+0x4f/0x4b0 fs/fcntl.c:1008 the dependencies between HARDIRQ-irq-safe lock and the holding lock: -> (&dev->event_lock#2){-...}-{2:2} { IN-HARDIRQ-W at: lock_acquire+0x1bb/0x4a0 kernel/locking/lockdep.c:5662 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0xb0/0x100 kernel/locking/spinlock.c:162 input_event+0x76/0xb0 drivers/input/input.c:430 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+0x4f/0x200 drivers/input/mouse/psmouse-base.c:139 psmouse_process_byte+0x42b/0x620 drivers/input/mouse/psmouse-base.c:230 psmouse_handle_byte+0x43/0x490 drivers/input/mouse/psmouse-base.c:272 psmouse_interrupt+0x699/0x1130 drivers/input/mouse/psmouse-base.c:424 serio_interrupt+0x87/0x130 drivers/input/serio/serio.c:998 i8042_interrupt+0x365/0x710 drivers/input/serio/i8042.c:610 __handle_irq_event_percpu+0x293/0xa50 kernel/irq/handle.c:158 handle_irq_event_percpu kernel/irq/handle.c:193 [inline] handle_irq_event+0x87/0x1e0 kernel/irq/handle.c:210 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:682 __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:152 [inline] _raw_spin_unlock_irqrestore+0xbc/0x120 kernel/locking/spinlock.c:194 spin_unlock_irqrestore include/linux/spinlock.h:406 [inline] i8042_command drivers/input/serio/i8042.c:360 [inline] i8042_aux_write+0x105/0x170 drivers/input/serio/i8042.c:395 serio_write include/linux/serio.h:125 [inline] ps2_do_sendbyte+0x1f9/0x6e0 drivers/input/serio/libps2.c:41 ps2_sendbyte+0x5b/0x110 drivers/input/serio/libps2.c:93 cypress_ps2_sendbyte drivers/input/mouse/cypress_ps2.c:42 [inline] cypress_ps2_read_cmd_status drivers/input/mouse/cypress_ps2.c:116 [inline] cypress_send_ext_cmd+0x240/0x930 drivers/input/mouse/cypress_ps2.c:189 cypress_detect+0x8f/0x1a0 drivers/input/mouse/cypress_ps2.c:205 psmouse_do_detect drivers/input/mouse/psmouse-base.c:1007 [inline] psmouse_try_protocol drivers/input/mouse/psmouse-base.c:1021 [inline] psmouse_extensions+0xcb2/0x1570 drivers/input/mouse/psmouse-base.c:1144 psmouse_switch_protocol+0x2fc/0x870 drivers/input/mouse/psmouse-base.c:1538 psmouse_connect+0x8f8/0x1500 drivers/input/mouse/psmouse-base.c:1628 serio_connect_driver drivers/input/serio/serio.c:44 [inline] serio_driver_probe+0x76/0x90 drivers/input/serio/serio.c:775 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x2aa/0xc70 drivers/base/dd.c:639 __driver_probe_device+0x18c/0x330 drivers/base/dd.c:785 driver_probe_device+0x4f/0x420 drivers/base/dd.c:815 __driver_attach+0x44a/0x6e0 drivers/base/dd.c:1201 bus_for_each_dev+0x182/0x1f0 drivers/base/bus.c:303 serio_attach_driver drivers/input/serio/serio.c:804 [inline] serio_handle_event+0x29c/0x840 drivers/input/serio/serio.c:224 process_one_work+0x8a2/0x1160 kernel/workqueue.c:2292 worker_thread+0xaa2/0x1270 kernel/workqueue.c:2439 kthread+0x29d/0x330 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 INITIAL USE at: lock_acquire+0x1bb/0x4a0 kernel/locking/lockdep.c:5662 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0xb0/0x100 kernel/locking/spinlock.c:162 input_inject_event+0xa7/0x310 drivers/input/input.c:456 led_trigger_event+0x12f/0x210 drivers/leds/led-triggers.c:392 kbd_led_trigger_activate+0xb9/0x100 drivers/tty/vt/keyboard.c:1036 led_trigger_set+0x50c/0x910 drivers/leds/led-triggers.c:211 led_trigger_set_default+0x19c/0x1e0 drivers/leds/led-triggers.c:275 led_classdev_register_ext+0x625/0x860 drivers/leds/led-class.c:426 led_classdev_register include/linux/leds.h:196 [inline] input_leds_connect+0x4e7/0x6b0 drivers/input/input-leds.c:139 input_attach_handler drivers/input/input.c:1060 [inline] input_register_device+0xdfd/0x1310 drivers/input/input.c:2470 atkbd_connect+0x6f8/0x9a0 drivers/input/keyboard/atkbd.c:1322 serio_connect_driver drivers/input/serio/serio.c:44 [inline] serio_driver_probe+0x76/0x90 drivers/input/serio/serio.c:775 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x2aa/0xc70 drivers/base/dd.c:639 __driver_probe_device+0x18c/0x330 drivers/base/dd.c:785 driver_probe_device+0x4f/0x420 drivers/base/dd.c:815 __driver_attach+0x44a/0x6e0 drivers/base/dd.c:1201 bus_for_each_dev+0x182/0x1f0 drivers/base/bus.c:303 serio_attach_driver drivers/input/serio/serio.c:804 [inline] serio_handle_event+0x29c/0x840 drivers/input/serio/serio.c:224 process_one_work+0x8a2/0x1160 kernel/workqueue.c:2292 worker_thread+0xaa2/0x1270 kernel/workqueue.c:2439 kthread+0x29d/0x330 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 } ... key at: [] input_allocate_device.__key.5+0x0/0x20 the dependencies between the lock to be acquired and HARDIRQ-irq-unsafe lock: -> (tasklist_lock){.+.+}-{2:2} { HARDIRQ-ON-R at: lock_acquire+0x1bb/0x4a0 kernel/locking/lockdep.c:5662 __raw_read_lock include/linux/rwlock_api_smp.h:150 [inline] _raw_read_lock+0x32/0x40 kernel/locking/spinlock.c:228 do_wait+0x2b6/0xb60 kernel/exit.c:1605 kernel_wait+0xd3/0x1c0 kernel/exit.c:1795 call_usermodehelper_exec_sync kernel/umh.c:140 [inline] call_usermodehelper_exec_work+0xb5/0x220 kernel/umh.c:167 process_one_work+0x8a2/0x1160 kernel/workqueue.c:2292 worker_thread+0xaa2/0x1270 kernel/workqueue.c:2439 kthread+0x29d/0x330 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 SOFTIRQ-ON-R at: lock_acquire+0x1bb/0x4a0 kernel/locking/lockdep.c:5662 __raw_read_lock include/linux/rwlock_api_smp.h:150 [inline] _raw_read_lock+0x32/0x40 kernel/locking/spinlock.c:228 do_wait+0x2b6/0xb60 kernel/exit.c:1605 kernel_wait+0xd3/0x1c0 kernel/exit.c:1795 call_usermodehelper_exec_sync kernel/umh.c:140 [inline] call_usermodehelper_exec_work+0xb5/0x220 kernel/umh.c:167 process_one_work+0x8a2/0x1160 kernel/workqueue.c:2292 worker_thread+0xaa2/0x1270 kernel/workqueue.c:2439 kthread+0x29d/0x330 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 INITIAL USE at: lock_acquire+0x1bb/0x4a0 kernel/locking/lockdep.c:5662 __raw_write_lock_irq include/linux/rwlock_api_smp.h:195 [inline] _raw_write_lock_irq+0xab/0xf0 kernel/locking/spinlock.c:326 copy_process+0x2557/0x4030 kernel/fork.c:2481 kernel_clone+0x24b/0x900 kernel/fork.c:2762 user_mode_thread+0x10d/0x180 kernel/fork.c:2838 rest_init+0x23/0x300 init/main.c:710 start_kernel+0x0/0x53c init/main.c:905 start_kernel+0x493/0x53c init/main.c:1152 secondary_startup_64_no_verify+0xcf/0xdb INITIAL READ USE at: lock_acquire+0x1bb/0x4a0 kernel/locking/lockdep.c:5662 __raw_read_lock include/linux/rwlock_api_smp.h:150 [inline] _raw_read_lock+0x32/0x40 kernel/locking/spinlock.c:228 do_wait+0x2b6/0xb60 kernel/exit.c:1605 kernel_wait+0xd3/0x1c0 kernel/exit.c:1795 call_usermodehelper_exec_sync kernel/umh.c:140 [inline] call_usermodehelper_exec_work+0xb5/0x220 kernel/umh.c:167 process_one_work+0x8a2/0x1160 kernel/workqueue.c:2292 worker_thread+0xaa2/0x1270 kernel/workqueue.c:2439 kthread+0x29d/0x330 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 } ... key at: [] tasklist_lock+0x18/0x40 ... acquired at: __raw_read_lock include/linux/rwlock_api_smp.h:150 [inline] _raw_read_lock+0x32/0x40 kernel/locking/spinlock.c:228 send_sigurg+0xec/0x3c0 fs/fcntl.c:825 sk_send_sigurg+0x6b/0xc0 net/core/sock.c:3374 queue_oob+0x3ed/0x4f0 net/unix/af_unix.c:2151 unix_stream_sendmsg+0x8cf/0xa70 net/unix/af_unix.c:2252 sock_sendmsg_nosec net/socket.c:718 [inline] __sock_sendmsg net/socket.c:730 [inline] ____sys_sendmsg+0x5be/0x970 net/socket.c:2518 ___sys_sendmsg+0x2a2/0x360 net/socket.c:2572 __sys_sendmmsg+0x2c3/0x510 net/socket.c:2658 __do_sys_sendmmsg net/socket.c:2687 [inline] __se_sys_sendmmsg net/socket.c:2684 [inline] __x64_sys_sendmmsg+0x9c/0xb0 net/socket.c:2684 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 -> (&f->f_owner.lock){....}-{2:2} { INITIAL USE at: lock_acquire+0x1bb/0x4a0 kernel/locking/lockdep.c:5662 __raw_write_lock_irq include/linux/rwlock_api_smp.h:195 [inline] _raw_write_lock_irq+0xab/0xf0 kernel/locking/spinlock.c:326 __f_setown+0x37/0x330 fs/fcntl.c:91 fcntl_dirnotify+0x6de/0x8f0 fs/notify/dnotify/dnotify.c:369 do_fcntl+0x5ed/0x1270 fs/fcntl.c:398 __do_sys_fcntl fs/fcntl.c:446 [inline] __se_sys_fcntl+0xc9/0x190 fs/fcntl.c:431 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 INITIAL READ USE at: lock_acquire+0x1bb/0x4a0 kernel/locking/lockdep.c:5662 __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:160 [inline] _raw_read_lock_irqsave+0xb8/0x100 kernel/locking/spinlock.c:236 send_sigio+0x2f/0x360 fs/fcntl.c:770 kill_fasync_rcu fs/fcntl.c:995 [inline] kill_fasync+0x224/0x4b0 fs/fcntl.c:1009 vcs_notifier+0x147/0x1e0 drivers/tty/vt/vc_screen.c:114 notifier_call_chain kernel/notifier.c:87 [inline] atomic_notifier_call_chain+0x17a/0x2b0 kernel/notifier.c:225 notify_update drivers/tty/vt/vt.c:270 [inline] vcs_scr_updated+0x91/0xd0 drivers/tty/vt/vt.c:4801 vcs_write+0xfae/0x11a0 drivers/tty/vt/vc_screen.c:703 vfs_write+0x2e6/0xa30 fs/read_write.c:582 ksys_write+0x14c/0x250 fs/read_write.c:637 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 } ... key at: [] __alloc_file.__key+0x0/0x10 ... acquired at: __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:160 [inline] _raw_read_lock_irqsave+0xb8/0x100 kernel/locking/spinlock.c:236 send_sigio+0x2f/0x360 fs/fcntl.c:770 kill_fasync_rcu fs/fcntl.c:995 [inline] kill_fasync+0x224/0x4b0 fs/fcntl.c:1009 vcs_notifier+0x147/0x1e0 drivers/tty/vt/vc_screen.c:114 notifier_call_chain kernel/notifier.c:87 [inline] atomic_notifier_call_chain+0x17a/0x2b0 kernel/notifier.c:225 notify_update drivers/tty/vt/vt.c:270 [inline] vcs_scr_updated+0x91/0xd0 drivers/tty/vt/vt.c:4801 vcs_write+0xfae/0x11a0 drivers/tty/vt/vc_screen.c:703 vfs_write+0x2e6/0xa30 fs/read_write.c:582 ksys_write+0x14c/0x250 fs/read_write.c:637 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 -> (&new->fa_lock){....}-{2:2} { INITIAL USE at: lock_acquire+0x1bb/0x4a0 kernel/locking/lockdep.c:5662 __raw_write_lock_irq include/linux/rwlock_api_smp.h:195 [inline] _raw_write_lock_irq+0xab/0xf0 kernel/locking/spinlock.c:326 fasync_remove_entry+0xf0/0x1c0 fs/fcntl.c:865 __fput+0x7a7/0x920 fs/file_table.c:317 task_work_run+0x1d0/0x260 kernel/task_work.c:203 get_signal+0x11a6/0x1350 kernel/signal.c:2648 arch_do_signal_or_restart+0xc4/0x1350 arch/x86/kernel/signal.c:871 exit_to_user_mode_loop+0x70/0x110 kernel/entry/common.c:174 exit_to_user_mode_prepare+0xee/0x180 kernel/entry/common.c:210 __syscall_exit_to_user_mode_work kernel/entry/common.c:292 [inline] syscall_exit_to_user_mode+0x16/0x40 kernel/entry/common.c:303 do_syscall_64+0x58/0xa0 arch/x86/entry/common.c:82 entry_SYSCALL_64_after_hwframe+0x68/0xd2 INITIAL READ USE at: lock_acquire+0x1bb/0x4a0 kernel/locking/lockdep.c:5662 __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:160 [inline] _raw_read_lock_irqsave+0xb8/0x100 kernel/locking/spinlock.c:236 kill_fasync_rcu fs/fcntl.c:988 [inline] kill_fasync+0x18e/0x4b0 fs/fcntl.c:1009 vcs_notifier+0x147/0x1e0 drivers/tty/vt/vc_screen.c:114 notifier_call_chain kernel/notifier.c:87 [inline] atomic_notifier_call_chain+0x17a/0x2b0 kernel/notifier.c:225 notify_update drivers/tty/vt/vt.c:270 [inline] vcs_scr_updated+0x91/0xd0 drivers/tty/vt/vt.c:4801 vcs_write+0xfae/0x11a0 drivers/tty/vt/vc_screen.c:703 vfs_write+0x2e6/0xa30 fs/read_write.c:582 ksys_write+0x14c/0x250 fs/read_write.c:637 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 } ... key at: [] fasync_insert_entry.__key+0x0/0x20 ... acquired at: __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:160 [inline] _raw_read_lock_irqsave+0xb8/0x100 kernel/locking/spinlock.c:236 kill_fasync_rcu fs/fcntl.c:988 [inline] kill_fasync+0x18e/0x4b0 fs/fcntl.c:1009 mousedev_notify_readers+0x6eb/0xc00 drivers/input/mousedev.c:309 mousedev_event+0x568/0x11f0 drivers/input/mousedev.c:394 input_to_handler drivers/input/input.c:130 [inline] input_pass_values+0x9c7/0x12f0 drivers/input/input.c:159 input_event_dispose+0x346/0x6c0 drivers/input/input.c:374 input_inject_event+0x1f5/0x310 drivers/input/input.c:461 evdev_write+0x35b/0x490 drivers/input/evdev.c:530 vfs_write+0x2e6/0xa30 fs/read_write.c:582 ksys_write+0x14c/0x250 fs/read_write.c:637 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 stack backtrace: CPU: 1 PID: 10594 Comm: syz.6.1948 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025 Call Trace: dump_stack_lvl+0x188/0x24e lib/dump_stack.c:106 print_bad_irq_dependency kernel/locking/lockdep.c:2604 [inline] check_irq_usage kernel/locking/lockdep.c:2843 [inline] check_prev_add kernel/locking/lockdep.c:3094 [inline] check_prevs_add kernel/locking/lockdep.c:3209 [inline] validate_chain kernel/locking/lockdep.c:3825 [inline] __lock_acquire+0x66c8/0x7d10 kernel/locking/lockdep.c:5049 lock_acquire+0x1bb/0x4a0 kernel/locking/lockdep.c:5662 __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:160 [inline] _raw_read_lock_irqsave+0xb8/0x100 kernel/locking/spinlock.c:236 kill_fasync_rcu fs/fcntl.c:988 [inline] kill_fasync+0x18e/0x4b0 fs/fcntl.c:1009 mousedev_notify_readers+0x6eb/0xc00 drivers/input/mousedev.c:309 mousedev_event+0x568/0x11f0 drivers/input/mousedev.c:394 input_to_handler drivers/input/input.c:130 [inline] input_pass_values+0x9c7/0x12f0 drivers/input/input.c:159 input_event_dispose+0x346/0x6c0 drivers/input/input.c:374 input_inject_event+0x1f5/0x310 drivers/input/input.c:461 evdev_write+0x35b/0x490 drivers/input/evdev.c:530 vfs_write+0x2e6/0xa30 fs/read_write.c:582 ksys_write+0x14c/0x250 fs/read_write.c:637 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7fa10f39acb9 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 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 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fa1101a2028 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fa10f615fa0 RCX: 00007fa10f39acb9 RDX: 0000000000000918 RSI: 0000200000000040 RDI: 0000000000000004 RBP: 00007fa10f408bf7 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fa10f616038 R14: 00007fa10f615fa0 R15: 00007ffdb9462618