m920x_read = error: -19 dvb-usb: error while querying for an remote control event. ====================================================== WARNING: possible circular locking dependency detected syzkaller #0 Tainted: G L ------------------------------------------------------ kworker/1:2/5117 is trying to acquire lock: ffff88813ff680b0 (&buf->lock){+.+.}-{4:4}, at: tty_buffer_flush+0x74/0x2b0 drivers/tty/tty_buffer.c:236 but task is already holding lock: ffffffff8e1b59c0 (console_lock){+.+.}-{0:0}, at: class_console_lock_constructor include/linux/console.h:734 [inline] ffffffff8e1b59c0 (console_lock){+.+.}-{0:0}, at: vc_SAK+0x28/0x220 drivers/tty/vt/vt_ioctl.c:987 which lock already depends on the new lock. the existing dependency chain (in reverse order) is: -> #2 (console_lock){+.+.}-{0:0}: console_lock+0x76/0x90 kernel/printk/printk.c:2896 class_console_lock_constructor include/linux/console.h:734 [inline] con_flush_chars+0xa2/0xe0 drivers/tty/vt/vt.c:3730 n_tty_write+0xef6/0x11e0 drivers/tty/n_tty.c:2382 iterate_tty_write drivers/tty/tty_io.c:1006 [inline] file_tty_write+0x516/0x9f0 drivers/tty/tty_io.c:1054 do_iter_readv_writev+0x624/0x8d0 fs/read_write.c:-1 vfs_writev+0x34c/0x990 fs/read_write.c:1058 do_writev+0x15a/0x2e0 fs/read_write.c:1104 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f -> #1 (&tty->termios_rwsem){++++}-{4:4}: down_write+0x3a/0x50 kernel/locking/rwsem.c:1631 class_rwsem_write_constructor include/linux/rwsem.h:270 [inline] n_tty_flush_buffer+0x2f/0x220 drivers/tty/n_tty.c:349 tty_buffer_flush+0x1ec/0x2b0 drivers/tty/tty_buffer.c:248 tty_ldisc_flush+0x6b/0xc0 drivers/tty/tty_ldisc.c:388 tty_port_close_start+0x2c0/0x540 drivers/tty/tty_port.c:648 tty_port_close+0x28/0x140 drivers/tty/tty_port.c:703 tty_release+0x35f/0x1680 drivers/tty/tty_io.c:1718 __fput+0x42a/0xa80 fs/file_table.c:512 task_work_run+0x1d9/0x270 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:70 [inline] exit_to_user_mode_loop+0x204/0x770 kernel/entry/common.c:101 __exit_to_user_mode_prepare include/linux/irq-entry-common.h:207 [inline] syscall_exit_to_user_mode_prepare include/linux/irq-entry-common.h:230 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:336 [inline] do_syscall_64+0x328/0x520 arch/x86/entry/syscall_64.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f -> #0 (&buf->lock){+.+.}-{4:4}: check_prev_add kernel/locking/lockdep.c:3181 [inline] check_prevs_add kernel/locking/lockdep.c:3300 [inline] validate_chain kernel/locking/lockdep.c:3924 [inline] __lock_acquire+0x1520/0x2ce0 kernel/locking/lockdep.c:5253 lock_acquire+0x106/0x350 kernel/locking/lockdep.c:5886 __mutex_lock_common kernel/locking/rtmutex_api.c:559 [inline] mutex_lock_nested+0x5a/0x1d0 kernel/locking/rtmutex_api.c:578 tty_buffer_flush+0x74/0x2b0 drivers/tty/tty_buffer.c:236 tty_ldisc_flush+0x6b/0xc0 drivers/tty/tty_ldisc.c:388 __do_SAK+0x254/0x680 drivers/tty/tty_io.c:2998 vc_SAK+0x78/0x220 drivers/tty/vt/vt_ioctl.c:996 process_one_work kernel/workqueue.c:3387 [inline] process_scheduled_works+0xc3d/0x1630 kernel/workqueue.c:3470 worker_thread+0xa47/0xfb0 kernel/workqueue.c:3551 kthread+0x38b/0x470 kernel/kthread.c:436 ret_from_fork+0x514/0xb70 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: &buf->lock --> &tty->termios_rwsem --> console_lock Possible unsafe locking scenario: CPU0 CPU1 ---- ---- lock(console_lock); lock(&tty->termios_rwsem); lock(console_lock); lock(&buf->lock); *** DEADLOCK *** locks held by kworker/1:2/5117: 4, last CPU#1: #0: ffff88813ff23938 ((wq_completion)events){+.+.}-{0:0}, at: rcu_lock_acquire include/linux/rcupdate.h:309 [inline] #0: ffff88813ff23938 ((wq_completion)events){+.+.}-{0:0}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline] #0: ffff88813ff23938 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3352 [inline] #0: ffff88813ff23938 ((wq_completion)events){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630 kernel/workqueue.c:3470 #1: ffffc90004257c40 ((work_completion)(&vc_cons[currcons].SAK_work)){+.+.}-{0:0}, at: rcu_lock_acquire include/linux/rcupdate.h:309 [inline] #1: ffffc90004257c40 ((work_completion)(&vc_cons[currcons].SAK_work)){+.+.}-{0:0}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline] #1: ffffc90004257c40 ((work_completion)(&vc_cons[currcons].SAK_work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3352 [inline] #1: ffffc90004257c40 ((work_completion)(&vc_cons[currcons].SAK_work)){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630 kernel/workqueue.c:3470 #2: ffffffff8e1b59c0 (console_lock){+.+.}-{0:0}, at: class_console_lock_constructor include/linux/console.h:734 [inline] #2: ffffffff8e1b59c0 (console_lock){+.+.}-{0:0}, at: vc_SAK+0x28/0x220 drivers/tty/vt/vt_ioctl.c:987 #3: ffff888063d500a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref drivers/tty/tty_ldisc.c:263 [inline] #3: ffff888063d500a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_flush+0x20/0xc0 drivers/tty/tty_ldisc.c:386 stack backtrace: CPU: 1 UID: 0 PID: 5117 Comm: kworker/1:2 Tainted: G L syzkaller #0 PREEMPT_{RT,(full)} Tainted: [L]=SOFTLOCKUP Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026 Workqueue: events vc_SAK Call Trace: dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 print_circular_bug+0x2e1/0x300 kernel/locking/lockdep.c:2059 check_noncircular+0x12e/0x150 kernel/locking/lockdep.c:2191 check_prev_add kernel/locking/lockdep.c:3181 [inline] check_prevs_add kernel/locking/lockdep.c:3300 [inline] validate_chain kernel/locking/lockdep.c:3924 [inline] __lock_acquire+0x1520/0x2ce0 kernel/locking/lockdep.c:5253 lock_acquire+0x106/0x350 kernel/locking/lockdep.c:5886 __mutex_lock_common kernel/locking/rtmutex_api.c:559 [inline] mutex_lock_nested+0x5a/0x1d0 kernel/locking/rtmutex_api.c:578 tty_buffer_flush+0x74/0x2b0 drivers/tty/tty_buffer.c:236 tty_ldisc_flush+0x6b/0xc0 drivers/tty/tty_ldisc.c:388 __do_SAK+0x254/0x680 drivers/tty/tty_io.c:2998 vc_SAK+0x78/0x220 drivers/tty/vt/vt_ioctl.c:996 process_one_work kernel/workqueue.c:3387 [inline] process_scheduled_works+0xc3d/0x1630 kernel/workqueue.c:3470 worker_thread+0xa47/0xfb0 kernel/workqueue.c:3551 kthread+0x38b/0x470 kernel/kthread.c:436 ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 m920x_read = error: -19 dvb-usb: error while querying for an remote control event. m920x_read = error: -19 dvb-usb: error while querying for an remote control event. m920x_read = error: -19 dvb-usb: error while querying for an remote control event. m920x_read = error: -19 dvb-usb: error while querying for an remote control event. m920x_read = error: -19 dvb-usb: error while querying for an remote control event. m920x_read = error: -19 dvb-usb: error while querying for an remote control event. m920x_read = error: -19 dvb-usb: error while querying for an remote control event. m920x_read = error: -19 dvb-usb: error while querying for an remote control event. m920x_read = error: -19 dvb-usb: error while querying for an remote control event. m920x_read = error: -19 dvb-usb: error while querying for an remote control event. m920x_read = error: -19 dvb-usb: error while querying for an remote control event. m920x_read = error: -19 dvb-usb: error while querying for an remote control event. m920x_read = error: -19 dvb-usb: error while querying for an remote control event. m920x_read = error: -19 dvb-usb: error while querying for an remote control event. m920x_read = error: -19 dvb-usb: error while querying for an remote control event. m920x_read = error: -19 dvb-usb: error while querying for an remote control event. m920x_read = error: -19 dvb-usb: error while querying for an remote control event. m920x_read = error: -19 dvb-usb: error while querying for an remote control event. m920x_read = error: -19 dvb-usb: error while querying for an remote control event. m920x_read = error: -19 dvb-usb: error while querying for an remote control event. m920x_read = error: -19 dvb-usb: error while querying for an remote control event. m920x_read = error: -19 dvb-usb: error while querying for an remote control event. m920x_read = error: -19 dvb-usb: error while querying for an remote control event. m920x_read = error: -19 dvb-usb: error while querying for an remote control event. m920x_read = error: -19 dvb-usb: error while querying for an remote control event. m920x_read = error: -19 dvb-usb: error while querying for an remote control event. m920x_read = error: -19 dvb-usb: error while querying for an remote control event. m920x_read = error: -19 dvb-usb: error while querying for an remote control event. m920x_read = error: -19 dvb-usb: error while querying for an remote control event. m920x_read = error: -19 dvb-usb: error while querying for an remote control event. m920x_read = error: -19 dvb-usb: error while querying for an remote control event. m920x_read = error: -19 dvb-usb: error while querying for an remote control event. m920x_read = error: -19 dvb-usb: error while querying for an remote control event. m920x_read = error: -19 dvb-usb: error while querying for an remote control event. m920x_read = error: -19 dvb-usb: error while querying for an remote control event.