===================================================== WARNING: SOFTIRQ-safe -> SOFTIRQ-unsafe lock order detected syzkaller #0 Tainted: G L ----------------------------------------------------- syz.8.4279/20866 [HC0[0]:SC0[0]:HE0:SE1] is trying to acquire: ffff88807b241468 (&tty->flow.lock){....}-{3:3}, at: class_spinlock_irqsave_constructor include/linux/spinlock.h:617 [inline] ffff88807b241468 (&tty->flow.lock){....}-{3:3}, at: stop_tty+0x2f/0x150 drivers/tty/tty_io.c:765 and this task is already holding: ffffffff8eba3ab8 (kbd_event_lock){..-.}-{3:3}, at: spin_lock include/linux/spinlock.h:344 [inline] ffffffff8eba3ab8 (kbd_event_lock){..-.}-{3:3}, at: class_spinlock_constructor include/linux/spinlock.h:585 [inline] ffffffff8eba3ab8 (kbd_event_lock){..-.}-{3:3}, at: kbd_event+0xd2/0x3fa0 drivers/tty/vt/keyboard.c:1510 which would create a new lock dependency: (kbd_event_lock){..-.}-{3:3} -> (&tty->flow.lock){....}-{3:3} but this new dependency connects a SOFTIRQ-irq-safe lock: (kbd_event_lock){..-.}-{3:3} ... which became SOFTIRQ-irq-safe at: lock_acquire+0x107/0x340 kernel/locking/lockdep.c:5868 __raw_spin_lock include/linux/spinlock_api_smp.h:158 [inline] _raw_spin_lock+0x2e/0x40 kernel/locking/spinlock.c:154 spin_lock include/linux/spinlock.h:344 [inline] class_spinlock_constructor include/linux/spinlock.h:585 [inline] kbd_event+0xd2/0x3fa0 drivers/tty/vt/keyboard.c:1510 input_handle_events_default+0xd4/0x1a0 drivers/input/input.c:2541 input_pass_values+0x288/0x890 drivers/input/input.c:128 input_event_dispose+0x3e5/0x6b0 drivers/input/input.c:353 input_event+0x89/0xe0 drivers/input/input.c:396 hidinput_hid_event+0x145e/0x1e50 drivers/hid/hid-input.c:1747 hid_process_event+0x4be/0x620 drivers/hid/hid-core.c:1565 hid_process_report drivers/hid/hid-core.c:1713 [inline] hid_report_raw_event+0xe91/0x1720 drivers/hid/hid-core.c:2074 __hid_input_report drivers/hid/hid-core.c:2144 [inline] hid_input_report+0x44b/0x580 drivers/hid/hid-core.c:2166 hid_irq_in+0x47e/0x6d0 drivers/hid/usbhid/hid-core.c:286 __usb_hcd_giveback_urb+0x376/0x540 drivers/usb/core/hcd.c:1657 dummy_timer+0x85f/0x45b0 drivers/usb/gadget/udc/dummy_hcd.c:1995 __run_hrtimer kernel/time/hrtimer.c:1785 [inline] __hrtimer_run_queues+0x51c/0xc30 kernel/time/hrtimer.c:1849 hrtimer_run_softirq+0x187/0x2b0 kernel/time/hrtimer.c:1866 handle_softirqs+0x22b/0x7c0 kernel/softirq.c:626 __do_softirq kernel/softirq.c:660 [inline] invoke_softirq kernel/softirq.c:496 [inline] __irq_exit_rcu+0x60/0x150 kernel/softirq.c:727 irq_exit_rcu+0x9/0x30 kernel/softirq.c:743 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1056 [inline] sysvec_apic_timer_interrupt+0xa6/0xc0 arch/x86/kernel/apic/apic.c:1056 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:697 vfs_statx+0xca/0x550 fs/stat.c:-1 vfs_fstatat+0x11b/0x170 fs/stat.c:373 __do_sys_newfstatat fs/stat.c:538 [inline] __se_sys_newfstatat fs/stat.c:532 [inline] __x64_sys_newfstatat+0x116/0x190 fs/stat.c:532 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xec/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f to a SOFTIRQ-irq-unsafe lock: (tasklist_lock){.+.+}-{3:3} ... which became SOFTIRQ-irq-unsafe at: ... lock_acquire+0x107/0x340 kernel/locking/lockdep.c:5868 __raw_read_lock include/linux/rwlock_api_smp.h:161 [inline] _raw_read_lock+0x36/0x50 kernel/locking/spinlock.c:228 __do_wait+0xde/0x740 kernel/exit.c:1672 do_wait+0x1e8/0x4f0 kernel/exit.c:1716 kernel_wait+0xab/0x170 kernel/exit.c:1892 call_usermodehelper_exec_sync kernel/umh.c:136 [inline] call_usermodehelper_exec_work+0xbe/0x230 kernel/umh.c:163 process_one_work+0x93a/0x15a0 kernel/workqueue.c:3279 process_scheduled_works kernel/workqueue.c:3362 [inline] worker_thread+0x9b0/0xee0 kernel/workqueue.c:3443 kthread+0x389/0x480 kernel/kthread.c:467 ret_from_fork+0x510/0xa50 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 other info that might help us debug this: Chain exists of: kbd_event_lock --> &tty->flow.lock --> tasklist_lock Possible interrupt unsafe locking scenario: CPU0 CPU1 ---- ---- lock(tasklist_lock); local_irq_disable(); lock(kbd_event_lock); lock(&tty->flow.lock); lock(kbd_event_lock); *** DEADLOCK *** 5 locks held by syz.8.4279/20866: #0: ffff88802b80a118 (&evdev->mutex){+.+.}-{4:4}, at: evdev_write+0x1a1/0x480 drivers/input/evdev.c:511 #1: ffff88802b7ae230 (&dev->event_lock#2){..-.}-{3:3}, at: class_spinlock_irqsave_constructor include/linux/spinlock.h:617 [inline] #1: ffff88802b7ae230 (&dev->event_lock#2){..-.}-{3:3}, at: input_inject_event+0xa5/0x340 drivers/input/input.c:419 #2: ffffffff8e344c60 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:312 [inline] #2: ffffffff8e344c60 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:850 [inline] #2: ffffffff8e344c60 (rcu_read_lock){....}-{1:3}, at: class_rcu_constructor include/linux/rcupdate.h:1193 [inline] #2: ffffffff8e344c60 (rcu_read_lock){....}-{1:3}, at: input_inject_event+0xb6/0x340 drivers/input/input.c:420 #3: ffffffff8e344c60 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:312 [inline] #3: ffffffff8e344c60 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:850 [inline] #3: ffffffff8e344c60 (rcu_read_lock){....}-{1:3}, at: class_rcu_constructor include/linux/rcupdate.h:1193 [inline] #3: ffffffff8e344c60 (rcu_read_lock){....}-{1:3}, at: input_pass_values+0x8d/0x890 drivers/input/input.c:119 #4: ffffffff8eba3ab8 (kbd_event_lock){..-.}-{3:3}, at: spin_lock include/linux/spinlock.h:344 [inline] #4: ffffffff8eba3ab8 (kbd_event_lock){..-.}-{3:3}, at: class_spinlock_constructor include/linux/spinlock.h:585 [inline] #4: ffffffff8eba3ab8 (kbd_event_lock){..-.}-{3:3}, at: kbd_event+0xd2/0x3fa0 drivers/tty/vt/keyboard.c:1510 the dependencies between SOFTIRQ-irq-safe lock and the holding lock: -> (kbd_event_lock){..-.}-{3:3} { IN-SOFTIRQ-W at: lock_acquire+0x107/0x340 kernel/locking/lockdep.c:5868 __raw_spin_lock include/linux/spinlock_api_smp.h:158 [inline] _raw_spin_lock+0x2e/0x40 kernel/locking/spinlock.c:154 spin_lock include/linux/spinlock.h:344 [inline] class_spinlock_constructor include/linux/spinlock.h:585 [inline] kbd_event+0xd2/0x3fa0 drivers/tty/vt/keyboard.c:1510 input_handle_events_default+0xd4/0x1a0 drivers/input/input.c:2541 input_pass_values+0x288/0x890 drivers/input/input.c:128 input_event_dispose+0x3e5/0x6b0 drivers/input/input.c:353 input_event+0x89/0xe0 drivers/input/input.c:396 hidinput_hid_event+0x145e/0x1e50 drivers/hid/hid-input.c:1747 hid_process_event+0x4be/0x620 drivers/hid/hid-core.c:1565 hid_process_report drivers/hid/hid-core.c:1713 [inline] hid_report_raw_event+0xe91/0x1720 drivers/hid/hid-core.c:2074 __hid_input_report drivers/hid/hid-core.c:2144 [inline] hid_input_report+0x44b/0x580 drivers/hid/hid-core.c:2166 hid_irq_in+0x47e/0x6d0 drivers/hid/usbhid/hid-core.c:286 __usb_hcd_giveback_urb+0x376/0x540 drivers/usb/core/hcd.c:1657 dummy_timer+0x85f/0x45b0 drivers/usb/gadget/udc/dummy_hcd.c:1995 __run_hrtimer kernel/time/hrtimer.c:1785 [inline] __hrtimer_run_queues+0x51c/0xc30 kernel/time/hrtimer.c:1849 hrtimer_run_softirq+0x187/0x2b0 kernel/time/hrtimer.c:1866 handle_softirqs+0x22b/0x7c0 kernel/softirq.c:626 __do_softirq kernel/softirq.c:660 [inline] invoke_softirq kernel/softirq.c:496 [inline] __irq_exit_rcu+0x60/0x150 kernel/softirq.c:727 irq_exit_rcu+0x9/0x30 kernel/softirq.c:743 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1056 [inline] sysvec_apic_timer_interrupt+0xa6/0xc0 arch/x86/kernel/apic/apic.c:1056 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:697 vfs_statx+0xca/0x550 fs/stat.c:-1 vfs_fstatat+0x11b/0x170 fs/stat.c:373 __do_sys_newfstatat fs/stat.c:538 [inline] __se_sys_newfstatat fs/stat.c:532 [inline] __x64_sys_newfstatat+0x116/0x190 fs/stat.c:532 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xec/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f INITIAL USE at: lock_acquire+0x107/0x340 kernel/locking/lockdep.c:5868 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:132 [inline] _raw_spin_lock_irqsave+0x40/0x60 kernel/locking/spinlock.c:162 class_spinlock_irqsave_constructor include/linux/spinlock.h:617 [inline] vt_reset_unicode+0x2b/0x1a0 drivers/tty/vt/keyboard.c:2126 reset_vc+0x68/0x1b0 drivers/tty/vt/vt_ioctl.c:966 vc_init+0x70/0x4a0 drivers/tty/vt/vt.c:3722 con_init+0x385/0x9c0 drivers/tty/vt/vt.c:3787 console_init+0xfc/0x3f0 kernel/printk/printk.c:4371 start_kernel+0x22c/0x3d0 init/main.c:1147 x86_64_start_reservations+0x24/0x30 arch/x86/kernel/head64.c:310 x86_64_start_kernel+0x143/0x1c0 arch/x86/kernel/head64.c:291 common_startup_64+0x13e/0x147 } ... key at: [] kbd_event_lock+0x18/0xa0 keyboard.c:-1 the dependencies between the lock to be acquired and SOFTIRQ-irq-unsafe lock: -> (tasklist_lock){.+.+}-{3:3} { HARDIRQ-ON-R at: lock_acquire+0x107/0x340 kernel/locking/lockdep.c:5868 __raw_read_lock include/linux/rwlock_api_smp.h:161 [inline] _raw_read_lock+0x36/0x50 kernel/locking/spinlock.c:228 __do_wait+0xde/0x740 kernel/exit.c:1672 do_wait+0x1e8/0x4f0 kernel/exit.c:1716 kernel_wait+0xab/0x170 kernel/exit.c:1892 call_usermodehelper_exec_sync kernel/umh.c:136 [inline] call_usermodehelper_exec_work+0xbe/0x230 kernel/umh.c:163 process_one_work+0x93a/0x15a0 kernel/workqueue.c:3279 process_scheduled_works kernel/workqueue.c:3362 [inline] worker_thread+0x9b0/0xee0 kernel/workqueue.c:3443 kthread+0x389/0x480 kernel/kthread.c:467 ret_from_fork+0x510/0xa50 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 SOFTIRQ-ON-R at: lock_acquire+0x107/0x340 kernel/locking/lockdep.c:5868 __raw_read_lock include/linux/rwlock_api_smp.h:161 [inline] _raw_read_lock+0x36/0x50 kernel/locking/spinlock.c:228 __do_wait+0xde/0x740 kernel/exit.c:1672 do_wait+0x1e8/0x4f0 kernel/exit.c:1716 kernel_wait+0xab/0x170 kernel/exit.c:1892 call_usermodehelper_exec_sync kernel/umh.c:136 [inline] call_usermodehelper_exec_work+0xbe/0x230 kernel/umh.c:163 process_one_work+0x93a/0x15a0 kernel/workqueue.c:3279 process_scheduled_works kernel/workqueue.c:3362 [inline] worker_thread+0x9b0/0xee0 kernel/workqueue.c:3443 kthread+0x389/0x480 kernel/kthread.c:467 ret_from_fork+0x510/0xa50 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 INITIAL USE at: lock_acquire+0x107/0x340 kernel/locking/lockdep.c:5868 __raw_write_lock_irq include/linux/rwlock_api_smp.h:211 [inline] _raw_write_lock_irq+0x3d/0x50 kernel/locking/spinlock.c:326 copy_process+0x23cd/0x3ba0 kernel/fork.c:2364 kernel_clone+0x21e/0x820 kernel/fork.c:2648 user_mode_thread+0xdd/0x140 kernel/fork.c:2724 rest_init+0x23/0x300 init/main.c:725 start_kernel+0x386/0x3d0 init/main.c:1210 x86_64_start_reservations+0x24/0x30 arch/x86/kernel/head64.c:310 x86_64_start_kernel+0x143/0x1c0 arch/x86/kernel/head64.c:291 common_startup_64+0x13e/0x147 INITIAL READ USE at: lock_acquire+0x107/0x340 kernel/locking/lockdep.c:5868 __raw_read_lock include/linux/rwlock_api_smp.h:161 [inline] _raw_read_lock+0x36/0x50 kernel/locking/spinlock.c:228 __do_wait+0xde/0x740 kernel/exit.c:1672 do_wait+0x1e8/0x4f0 kernel/exit.c:1716 kernel_wait+0xab/0x170 kernel/exit.c:1892 call_usermodehelper_exec_sync kernel/umh.c:136 [inline] call_usermodehelper_exec_work+0xbe/0x230 kernel/umh.c:163 process_one_work+0x93a/0x15a0 kernel/workqueue.c:3279 process_scheduled_works kernel/workqueue.c:3362 [inline] worker_thread+0x9b0/0xee0 kernel/workqueue.c:3443 kthread+0x389/0x480 kernel/kthread.c:467 ret_from_fork+0x510/0xa50 arch/x86/kernel/process.c:158 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:161 [inline] _raw_read_lock+0x36/0x50 kernel/locking/spinlock.c:228 send_sigurg+0x12b/0x420 fs/fcntl.c:978 sk_send_sigurg+0x6c/0x2e0 net/core/sock.c:3669 queue_oob+0x420/0x4f0 net/unix/af_unix.c:2357 unix_stream_sendmsg+0xc32/0xde0 net/unix/af_unix.c:2491 sock_sendmsg_nosec+0x18f/0x1d0 net/socket.c:737 __sock_sendmsg net/socket.c:752 [inline] ____sys_sendmsg+0x577/0x880 net/socket.c:2610 ___sys_sendmsg+0x21f/0x2a0 net/socket.c:2664 __sys_sendmmsg+0x227/0x430 net/socket.c:2753 __do_sys_sendmmsg net/socket.c:2780 [inline] __se_sys_sendmmsg net/socket.c:2777 [inline] __x64_sys_sendmmsg+0xa0/0xc0 net/socket.c:2777 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xec/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f -> (&f_owner->lock){....}-{3:3} { INITIAL USE at: lock_acquire+0x107/0x340 kernel/locking/lockdep.c:5868 __raw_write_lock_irq include/linux/rwlock_api_smp.h:211 [inline] _raw_write_lock_irq+0x3d/0x50 kernel/locking/spinlock.c:326 __f_setown+0x67/0x370 fs/fcntl.c:136 generic_add_lease fs/locks.c:1908 [inline] generic_setlease+0xa9d/0xf60 fs/locks.c:1984 do_fcntl_add_lease+0x34d/0x460 fs/locks.c:2086 fcntl_setdeleg+0x14c/0x1e0 fs/locks.c:2132 do_fcntl+0xd9f/0x1a50 fs/fcntl.c:564 __do_sys_fcntl fs/fcntl.c:602 [inline] __se_sys_fcntl+0xc8/0x150 fs/fcntl.c:587 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xec/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f INITIAL READ USE at: lock_acquire+0x107/0x340 kernel/locking/lockdep.c:5868 __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:172 [inline] _raw_read_lock_irqsave+0x48/0x60 kernel/locking/spinlock.c:236 send_sigio+0x38/0x370 fs/fcntl.c:918 kill_fasync_rcu fs/fcntl.c:1144 [inline] kill_fasync+0x24d/0x4d0 fs/fcntl.c:1159 lease_break_callback+0x26/0x30 fs/locks.c:577 __break_lease+0x864/0x16f0 fs/locks.c:1657 break_deleg include/linux/filelock.h:504 [inline] try_break_deleg include/linux/filelock.h:523 [inline] __vfs_setxattr_locked+0x204/0x2c0 fs/xattr.c:291 vfs_setxattr+0x162/0x360 fs/xattr.c:321 do_setxattr fs/xattr.c:636 [inline] file_setxattr+0x1da/0x2b0 fs/xattr.c:646 path_setxattrat+0x327/0x3a0 fs/xattr.c:706 __do_sys_fsetxattr fs/xattr.c:756 [inline] __se_sys_fsetxattr fs/xattr.c:753 [inline] __x64_sys_fsetxattr+0xbc/0xe0 fs/xattr.c:753 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xec/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f } ... key at: [] file_f_owner_allocate.__key+0x0/0x20 ... acquired at: __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:172 [inline] _raw_read_lock_irqsave+0x48/0x60 kernel/locking/spinlock.c:236 send_sigio+0x38/0x370 fs/fcntl.c:918 kill_fasync_rcu fs/fcntl.c:1144 [inline] kill_fasync+0x24d/0x4d0 fs/fcntl.c:1159 lease_break_callback+0x26/0x30 fs/locks.c:577 __break_lease+0x864/0x16f0 fs/locks.c:1657 break_deleg include/linux/filelock.h:504 [inline] try_break_deleg include/linux/filelock.h:523 [inline] __vfs_setxattr_locked+0x204/0x2c0 fs/xattr.c:291 vfs_setxattr+0x162/0x360 fs/xattr.c:321 do_setxattr fs/xattr.c:636 [inline] file_setxattr+0x1da/0x2b0 fs/xattr.c:646 path_setxattrat+0x327/0x3a0 fs/xattr.c:706 __do_sys_fsetxattr fs/xattr.c:756 [inline] __se_sys_fsetxattr fs/xattr.c:753 [inline] __x64_sys_fsetxattr+0xbc/0xe0 fs/xattr.c:753 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xec/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f -> (&new->fa_lock){....}-{3:3} { INITIAL USE at: lock_acquire+0x107/0x340 kernel/locking/lockdep.c:5868 __raw_write_lock_irq include/linux/rwlock_api_smp.h:211 [inline] _raw_write_lock_irq+0x3d/0x50 kernel/locking/spinlock.c:326 fasync_remove_entry+0xf1/0x1c0 fs/fcntl.c:1012 lease_modify+0x1ca/0x3c0 fs/locks.c:1514 locks_remove_lease fs/locks.c:2757 [inline] locks_remove_file+0x556/0xf10 fs/locks.c:2782 __fput+0x3ab/0xa70 fs/file_table.c:460 task_work_run+0x1d4/0x260 kernel/task_work.c:233 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] __exit_to_user_mode_loop kernel/entry/common.c:44 [inline] exit_to_user_mode_loop+0xef/0x4e0 kernel/entry/common.c:75 __exit_to_user_mode_prepare include/linux/irq-entry-common.h:226 [inline] syscall_exit_to_user_mode_prepare include/linux/irq-entry-common.h:256 [inline] syscall_exit_to_user_mode_work include/linux/entry-common.h:159 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:194 [inline] do_syscall_64+0x2c1/0xf80 arch/x86/entry/syscall_64.c:100 entry_SYSCALL_64_after_hwframe+0x77/0x7f INITIAL READ USE at: lock_acquire+0x107/0x340 kernel/locking/lockdep.c:5868 __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:172 [inline] _raw_read_lock_irqsave+0x48/0x60 kernel/locking/spinlock.c:236 kill_fasync_rcu fs/fcntl.c:1135 [inline] kill_fasync+0x199/0x4d0 fs/fcntl.c:1159 lease_break_callback+0x26/0x30 fs/locks.c:577 __break_lease+0x864/0x16f0 fs/locks.c:1657 break_deleg include/linux/filelock.h:504 [inline] try_break_deleg include/linux/filelock.h:523 [inline] __vfs_setxattr_locked+0x204/0x2c0 fs/xattr.c:291 vfs_setxattr+0x162/0x360 fs/xattr.c:321 do_setxattr fs/xattr.c:636 [inline] file_setxattr+0x1da/0x2b0 fs/xattr.c:646 path_setxattrat+0x327/0x3a0 fs/xattr.c:706 __do_sys_fsetxattr fs/xattr.c:756 [inline] __se_sys_fsetxattr fs/xattr.c:753 [inline] __x64_sys_fsetxattr+0xbc/0xe0 fs/xattr.c:753 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xec/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f } ... key at: [] fasync_insert_entry.__key+0x0/0x20 ... acquired at: __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:172 [inline] _raw_read_lock_irqsave+0x48/0x60 kernel/locking/spinlock.c:236 kill_fasync_rcu fs/fcntl.c:1135 [inline] kill_fasync+0x199/0x4d0 fs/fcntl.c:1159 tty_wakeup drivers/tty/tty_io.c:515 [inline] __start_tty+0x18c/0x220 drivers/tty/tty_io.c:777 start_tty+0x2b/0x70 drivers/tty/tty_io.c:794 n_tty_set_termios+0xa7c/0x10c0 drivers/tty/n_tty.c:1848 tty_set_termios+0xda4/0x17e0 drivers/tty/tty_ioctl.c:348 set_termios+0x516/0x6c0 drivers/tty/tty_ioctl.c:516 tty_mode_ioctl+0x47e/0x740 drivers/tty/tty_ioctl.c:-1 tty_ioctl+0x9c6/0xde0 drivers/tty/tty_io.c:2801 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:597 [inline] __se_sys_ioctl+0xfc/0x170 fs/ioctl.c:583 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xec/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f -> (&tty->flow.lock){....}-{3:3} { INITIAL USE at: lock_acquire+0x107/0x340 kernel/locking/lockdep.c:5868 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:132 [inline] _raw_spin_lock_irqsave+0x40/0x60 kernel/locking/spinlock.c:162 class_spinlock_irqsave_constructor include/linux/spinlock.h:617 [inline] start_tty+0x20/0x70 drivers/tty/tty_io.c:793 n_tty_set_termios+0xa7c/0x10c0 drivers/tty/n_tty.c:1848 tty_set_termios+0xda4/0x17e0 drivers/tty/tty_ioctl.c:348 set_termios+0x516/0x6c0 drivers/tty/tty_ioctl.c:516 tty_mode_ioctl+0x47e/0x740 drivers/tty/tty_ioctl.c:-1 tty_ioctl+0x9c6/0xde0 drivers/tty/tty_io.c:2801 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:597 [inline] __se_sys_ioctl+0xfc/0x170 fs/ioctl.c:583 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xec/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f } ... key at: [] alloc_tty_struct.__key.35+0x0/0x20 ... acquired at: __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:132 [inline] _raw_spin_lock_irqsave+0x40/0x60 kernel/locking/spinlock.c:162 class_spinlock_irqsave_constructor include/linux/spinlock.h:617 [inline] stop_tty+0x2f/0x150 drivers/tty/tty_io.c:765 kbd_keycode drivers/tty/vt/keyboard.c:1497 [inline] kbd_event+0x2b9f/0x3fa0 drivers/tty/vt/keyboard.c:1515 input_handle_events_default+0xd4/0x1a0 drivers/input/input.c:2541 input_pass_values+0x288/0x890 drivers/input/input.c:128 input_event_dispose+0x330/0x6b0 drivers/input/input.c:342 input_inject_event+0x1dd/0x340 drivers/input/input.c:424 evdev_write+0x2fc/0x480 drivers/input/evdev.c:528 vfs_write+0x27e/0xb30 fs/read_write.c:686 ksys_write+0x145/0x250 fs/read_write.c:740 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xec/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f stack backtrace: CPU: 1 UID: 0 PID: 20866 Comm: syz.8.4279 Tainted: G L syzkaller #0 PREEMPT(full) Tainted: [L]=SOFTLOCKUP Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025 Call Trace: dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 print_bad_irq_dependency kernel/locking/lockdep.c:2616 [inline] check_irq_usage kernel/locking/lockdep.c:2857 [inline] check_prev_add kernel/locking/lockdep.c:3169 [inline] check_prevs_add kernel/locking/lockdep.c:3284 [inline] validate_chain kernel/locking/lockdep.c:3908 [inline] __lock_acquire+0x2a95/0x2cf0 kernel/locking/lockdep.c:5237 lock_acquire+0x107/0x340 kernel/locking/lockdep.c:5868 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:132 [inline] _raw_spin_lock_irqsave+0x40/0x60 kernel/locking/spinlock.c:162 class_spinlock_irqsave_constructor include/linux/spinlock.h:617 [inline] stop_tty+0x2f/0x150 drivers/tty/tty_io.c:765 kbd_keycode drivers/tty/vt/keyboard.c:1497 [inline] kbd_event+0x2b9f/0x3fa0 drivers/tty/vt/keyboard.c:1515 input_handle_events_default+0xd4/0x1a0 drivers/input/input.c:2541 input_pass_values+0x288/0x890 drivers/input/input.c:128 input_event_dispose+0x330/0x6b0 drivers/input/input.c:342 input_inject_event+0x1dd/0x340 drivers/input/input.c:424 evdev_write+0x2fc/0x480 drivers/input/evdev.c:528 vfs_write+0x27e/0xb30 fs/read_write.c:686 ksys_write+0x145/0x250 fs/read_write.c:740 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xec/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fe70e98f749 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:00007fe70f7ef038 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fe70ebe5fa0 RCX: 00007fe70e98f749 RDX: 0000000000002250 RSI: 0000200000000040 RDI: 0000000000000004 RBP: 00007fe70ea13f91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fe70ebe6038 R14: 00007fe70ebe5fa0 R15: 00007fffdf406058