INFO: task hung in ptmx_open

Status: upstream: reported on 2026/07/30 13:51
Reported-by: syzbot+bd4b7a73b2975cf1b2d3@syzkaller.appspotmail.com
First crash: 70d, last: 38d
▶ ▼ Similar bugs (6)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 INFO: task hung in ptmx_open 1 8 26d 72d 0/3 upstream: reported on 2026/07/29 05:43
linux-6.6 INFO: task hung in ptmx_open 1 1 54d 54d 0/2 upstream: reported on 2026/08/15 23:38
upstream INFO: task hung in ptmx_open serial 1 4 1708d 1782d 0/29 closed as invalid on 2022/02/08 09:40
android-49 INFO: task hung in ptmx_open 1 1 2939d 2939d 0/3 auto-closed as invalid on 2019/03/21 04:01
upstream INFO: task hung in ptmx_open (2) serial 1 6 528d 693d 0/29 auto-obsoleted due to no activity on 2025/07/27 16:38
upstream INFO: task hung in ptmx_open (3) prio:high serial 1 7 170d 379d 0/29 auto-obsoleted due to no activity on 2026/07/20 22:39

Sample crash report:
INFO: task syz.0.201:5062 blocked for more than 143 seconds.
      Not tainted syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.0.201       state:D stack:25360 pid:5062  ppid:4272   flags:0x00004004
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5246 [inline]
 __schedule+0x107f/0x4030 kernel/sched/core.c:6563
 schedule+0xb9/0x180 kernel/sched/core.c:6639
 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:6698
 __mutex_lock_common kernel/locking/mutex.c:679 [inline]
 __mutex_lock+0x548/0xae0 kernel/locking/mutex.c:747
 ptmx_open+0xcc/0x2c0 drivers/tty/pty.c:823
 chrdev_open+0x585/0x5f0 fs/char_dev.c:414
 do_dentry_open+0x7dd/0x10b0 fs/open.c:882
 do_open fs/namei.c:3677 [inline]
 path_openat+0x2674/0x2f10 fs/namei.c:3834
 do_filp_open+0x1ee/0x420 fs/namei.c:3861
 do_sys_openat2+0x14b/0x4f0 fs/open.c:1320
 do_sys_open fs/open.c:1336 [inline]
 __do_sys_openat fs/open.c:1352 [inline]
 __se_sys_openat fs/open.c:1347 [inline]
 __x64_sys_openat+0x135/0x160 fs/open.c:1347
 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:0x7fbd8939e159
RSP: 002b:00007fbd8a19d028 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00007fbd89625fa0 RCX: 00007fbd8939e159
RDX: 0000000000000002 RSI: 0000200000000000 RDI: ffffffffffffff9c
RBP: 00007fbd89435024 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fbd89626038 R14: 00007fbd89625fa0 R15: 00007ffc57c9d898
 </TASK>
INFO: lockdep is turned off.
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 07/24/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/08/31 21:23 linux-6.1.y d64a499eea6b 316d9396 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: task hung in ptmx_open
2026/07/30 13:50 linux-6.1.y fb28aa725e05 2377cd3d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: task hung in ptmx_open
* Struck through repros no longer work on HEAD.