INFO: task hung in n_tty_receive_char

Status: upstream: reported on 2026/08/26 11:37
Reported-by: syzbot+6dc430817392efb632c2@syzkaller.appspotmail.com
First crash: 90d, last: 4d08h
▶ ▼ Similar bugs (5)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: task hung in n_tty_receive_char (3) serial 1 7 482d 610d 0/29 auto-obsoleted due to no activity on 2025/10/28 08:26
upstream INFO: task hung in n_tty_receive_char (4) prio:high serial 1 13 93d 343d 0/29 auto-obsoleted due to no activity on 2026/11/21 18:18
upstream INFO: task hung in n_tty_receive_char (2) serial 1 1 710d 710d 0/29 auto-obsoleted due to no activity on 2025/03/15 02:18
upstream INFO: task hung in n_tty_receive_char serial 1 5 828d 895d 0/29 auto-obsoleted due to no activity on 2024/11/16 15:14
linux-5.15 INFO: task hung in n_tty_receive_char 1 2 83d 114d 0/3 upstream: reported on 2026/08/02 14:26

Sample crash report:
INFO: task kworker/u4:7:5579 blocked for more than 143 seconds.
      Not tainted syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:kworker/u4:7    state:D stack:22240 pid:5579  ppid:2      flags:0x00004000
Workqueue: events_unbound flush_to_ldisc
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5257 [inline]
 __schedule+0x1089/0x4140 kernel/sched/core.c:6584
 schedule+0xb9/0x180 kernel/sched/core.c:6660
 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:6719
 __mutex_lock_common kernel/locking/mutex.c:679 [inline]
 __mutex_lock+0x562/0xb40 kernel/locking/mutex.c:747
 commit_echoes drivers/tty/n_tty.c:766 [inline]
 n_tty_receive_char+0x5ed/0xbb0 drivers/tty/n_tty.c:1420
 n_tty_receive_buf_standard+0x5fb/0x4d90 drivers/tty/n_tty.c:1589
 __receive_buf drivers/tty/n_tty.c:1623 [inline]
 n_tty_receive_buf_common+0xc08/0x1470 drivers/tty/n_tty.c:1721
 tty_port_default_receive_buf+0x69/0x90 drivers/tty/tty_port.c:39
 receive_buf drivers/tty/tty_buffer.c:515 [inline]
 flush_to_ldisc+0x2b9/0x800 drivers/tty/tty_buffer.c:565
 process_one_work+0x8ab/0x1160 kernel/workqueue.c:2292
 worker_thread+0xaf5/0x12a0 kernel/workqueue.c:2439
 kthread+0x29d/0x330 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295
 </TASK>

Showing all locks held in the system:
3 locks held by kworker/u4:0/9:
2 locks held by kworker/u4:1/11:
 #0: ffff888018479138 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_one_work+0x7b4/0x1160 kernel/workqueue.c:2267
 #1: ffffc90000107d00 (connector_reaper_work){+.+.}-{0:0}, at: process_one_work+0x7b4/0x1160 kernel/workqueue.c:2267
1 lock held by rcu_tasks_kthre/12:
 #0: ffffffff8db2e3f0 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x33/0xce0 kernel/rcu/tasks.h:543
1 lock held by rcu_tasks_trace/13:
 #0: ffffffff8db2ec30 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x33/0xce0 kernel/rcu/tasks.h:543
1 lock held by khungtaskd/27:
 #0: ffffffff8db2daa0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:350 [inline]
 #0: ffffffff8db2daa0 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:791 [inline]
 #0: ffffffff8db2daa0 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x51/0x290 kernel/locking/lockdep.c:6669
3 locks held by kworker/0:3/3604:
3 locks held by kworker/0:5/4373:
 #0: ffff888018470938 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x7b4/0x1160 kernel/workqueue.c:2267
 #1: ffffc90004907d00 ((work_completion)(&data->fib_event_work)){+.+.}-{0:0}, at: process_one_work+0x7b4/0x1160 kernel/workqueue.c:2267
 #2: ffff88808d3c3240 (&data->fib_lock){+.+.}-{3:3}, at: nsim_fib_event_work+0x283/0x3320 drivers/net/netdevsim/fib.c:1491
6 locks held by kworker/u4:7/5579:
 #0: ffff888018479138 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_one_work+0x7b4/0x1160 kernel/workqueue.c:2267
 #1: ffffc90003c77d00 ((work_completion)(&buf->work)){+.+.}-{0:0}, at: process_one_work+0x7b4/0x1160 kernel/workqueue.c:2267
 #2: ffff88813ff480b8 (&buf->lock){+.+.}-{3:3}, at: flush_to_ldisc+0x34/0x800 drivers/tty/tty_buffer.c:537
 #3: ffff888049389098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref+0x18/0x80 drivers/tty/tty_ldisc.c:264
 #4: ffff8880493892e8 (&tty->termios_rwsem){++++}-{3:3}, at: n_tty_receive_buf_common+0x79/0x1470 drivers/tty/n_tty.c:1684
 #5: ffffc90002e42380 (&ldata->output_lock){+.+.}-{3:3}, at: commit_echoes drivers/tty/n_tty.c:766 [inline]
 #5: ffffc90002e42380 (&ldata->output_lock){+.+.}-{3:3}, at: n_tty_receive_char+0x5ed/0xbb0 drivers/tty/n_tty.c:1420
3 locks held by kworker/0:17/6118:
 #0: ffff888018470938 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x7b4/0x1160 kernel/workqueue.c:2267
 #1: ffffc90004c9fd00 ((work_completion)(&data->fib_event_work)){+.+.}-{0:0}, at: process_one_work+0x7b4/0x1160 kernel/workqueue.c:2267
 #2: ffff888079a52240 (&data->fib_lock){+.+.}-{3:3}, at: nsim_fib_event_work+0x283/0x3320 drivers/net/netdevsim/fib.c:1491
2 locks held by getty/16790:
 #0: ffff88814d3fa098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x21/0x70 drivers/tty/tty_ldisc.c:244
 #1: ffffc9000435b2f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x430/0x1400 drivers/tty/n_tty.c:2198
5 locks held by syz.6.4776/18044:
1 lock held by syz.9.4875/18477:
 #0: ffffffff8e2853e8 (tty_mutex){+.+.}-{3:3}, at: tty_open_by_driver drivers/tty/tty_io.c:2047 [inline]
 #0: ffffffff8e2853e8 (tty_mutex){+.+.}-{3:3}, at: tty_open+0x204/0xd80 drivers/tty/tty_io.c:2130
1 lock held by syz.8.4942/18702:
 #0: ffffffff8e2853e8 (tty_mutex){+.+.}-{3:3}, at: ptmx_open+0xcc/0x2c0 drivers/tty/pty.c:823
1 lock held by syz.0.4949/18747:
 #0: ffffffff8e2853e8 (tty_mutex){+.+.}-{3:3}, at: tty_open_by_driver drivers/tty/tty_io.c:2047 [inline]
 #0: ffffffff8e2853e8 (tty_mutex){+.+.}-{3:3}, at: tty_open+0x204/0xd80 drivers/tty/tty_io.c:2130
1 lock held by syz.3.4955/18773:
 #0: ffffffff8e2853e8 (tty_mutex){+.+.}-{3:3}, at: ptmx_open+0xcc/0x2c0 drivers/tty/pty.c:823
1 lock held by syz.5.4976/18980:
 #0: ffffffff8e2853e8 (tty_mutex){+.+.}-{3:3}, at: ptmx_open+0xcc/0x2c0 drivers/tty/pty.c:823
1 lock held by syz.7.4980/18997:
 #0: ffffffff8e2853e8 (tty_mutex){+.+.}-{3:3}, at: ptmx_open+0xcc/0x2c0 drivers/tty/pty.c:823
1 lock held by syz.2.5020/19222:
 #0: ffffffff8e2853e8 (tty_mutex){+.+.}-{3:3}, at: ptmx_open+0xcc/0x2c0 drivers/tty/pty.c:823
1 lock held by syz.2.5020/19223:
 #0: ffffffff8e2853e8 (tty_mutex){+.+.}-{3:3}, at: ptmx_open+0xcc/0x2c0 drivers/tty/pty.c:823
1 lock held by syz.6.5034/19307:
 #0: ffffffff8e2853e8 (tty_mutex){+.+.}-{3:3}, at: ptmx_open+0xcc/0x2c0 drivers/tty/pty.c:823
1 lock held by syz.9.5047/19421:
 #0: ffffffff8e2853e8 (tty_mutex){+.+.}-{3:3}, at: tty_open_by_driver drivers/tty/tty_io.c:2047 [inline]
 #0: ffffffff8e2853e8 (tty_mutex){+.+.}-{3:3}, at: tty_open+0x204/0xd80 drivers/tty/tty_io.c:2130
1 lock held by syz.4.5066/19507:
 #0: ffffffff8e2853e8 (tty_mutex){+.+.}-{3:3}, at: ptmx_open+0xcc/0x2c0 drivers/tty/pty.c:823
1 lock held by syz.8.5076/19569:
 #0: ffffffff8e2853e8 (tty_mutex){+.+.}-{3:3}, at: tty_open_by_driver drivers/tty/tty_io.c:2047 [inline]
 #0: ffffffff8e2853e8 (tty_mutex){+.+.}-{3:3}, at: tty_open+0x204/0xd80 drivers/tty/tty_io.c:2130
3 locks held by syz-executor/19683:
1 lock held by syz.5.5154/19957:
 #0: ffffffff8e2853e8 (tty_mutex){+.+.}-{3:3}, at: tty_open_by_driver drivers/tty/tty_io.c:2047 [inline]
 #0: ffffffff8e2853e8 (tty_mutex){+.+.}-{3:3}, at: tty_open+0x204/0xd80 drivers/tty/tty_io.c:2130
1 lock held by syz.1.5188/20106:
 #0: ffffffff8e2853e8 (tty_mutex){+.+.}-{3:3}, at: ptmx_open+0xcc/0x2c0 drivers/tty/pty.c:823
1 lock held by syz.7.5195/20145:
 #0: ffffffff8e2853e8 (tty_mutex){+.+.}-{3:3}, at: tty_open_by_driver drivers/tty/tty_io.c:2047 [inline]
 #0: ffffffff8e2853e8 (tty_mutex){+.+.}-{3:3}, at: tty_open+0x204/0xd80 drivers/tty/tty_io.c:2130
1 lock held by syz.0.5198/20158:
 #0: ffffffff8e2853e8 (tty_mutex){+.+.}-{3:3}, at: ptmx_open+0xcc/0x2c0 drivers/tty/pty.c:823
1 lock held by syz-executor/20217:
1 lock held by dhcpcd-run-hook/20296:

=============================================

NMI backtrace for cpu 0
CPU: 0 PID: 27 Comm: khungtaskd Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026
Call Trace:
 <TASK>
 dump_stack_lvl+0x188/0x24e lib/dump_stack.c:106
 nmi_cpu_backtrace+0x3e6/0x460 lib/nmi_backtrace.c:111
 nmi_trigger_cpumask_backtrace+0x1d4/0x450 lib/nmi_backtrace.c:62
 trigger_all_cpu_backtrace include/linux/nmi.h:148 [inline]
 check_hung_uninterruptible_tasks kernel/hung_task.c:220 [inline]
 watchdog+0xf0e/0xf50 kernel/hung_task.c:377
 kthread+0x29d/0x330 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295
 </TASK>

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/11/20 22:51 linux-6.1.y c75b0cf0982c b2c69459 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: task hung in n_tty_receive_char
2026/08/26 11:36 linux-6.1.y 05208478041c 6a91adb4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: task hung in n_tty_receive_char
* Struck through repros no longer work on HEAD.