INFO: task hung in ptmx_open

Status: upstream: reported on 2026/07/30 13:51
Reported-by: syzbot+bd4b7a73b2975cf1b2d3@syzkaller.appspotmail.com
First crash: 115d, last: 2d13h
▶ ▼ Similar bugs (7)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 INFO: task hung in ptmx_open 1 11 21d 117d 0/3 upstream: reported on 2026/07/29 05:43
upstream INFO: task hung in ptmx_open (4) prio:high serial 1 25 89d 120d 0/29 auto-obsoleted due to no activity on 2026/10/14 08:48
linux-6.6 INFO: task hung in ptmx_open 1 2 41d 99d 0/2 upstream: reported on 2026/08/15 23:38
upstream INFO: task hung in ptmx_open serial 1 4 1753d 1828d 0/29 closed as invalid on 2022/02/08 09:40
android-49 INFO: task hung in ptmx_open 1 1 2984d 2984d 0/3 auto-closed as invalid on 2019/03/21 04:01
upstream INFO: task hung in ptmx_open (2) serial 1 6 573d 738d 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 215d 425d 0/29 auto-obsoleted due to no activity on 2026/07/20 22:39

Sample crash report:
INFO: task syz.1.1780:11689 blocked for more than 143 seconds.
      Not tainted syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.1.1780      state:D stack:27888 pid:11689 ppid:10514  flags:0x00004004
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
 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:3838
 do_filp_open+0x1ee/0x420 fs/namei.c:3865
 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:0x7fb4999a9559
RSP: 002b:00007fb49a8f8028 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00007fb499c25fa0 RCX: 00007fb4999a9559
RDX: 0000000000000a82 RSI: 0000200000000380 RDI: ffffffffffffff9c
RBP: 00007fb499a38136 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fb499c26038 R14: 00007fb499c25fa0 R15: 00007ffe1c8bbe38
 </TASK>
INFO: task syz.4.1820:11905 blocked for more than 143 seconds.
      Not tainted syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.4.1820      state:D stack:27600 pid:11905 ppid:10209  flags:0x00004004
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
 tty_open_by_driver drivers/tty/tty_io.c:2047 [inline]
 tty_open+0x204/0xd80 drivers/tty/tty_io.c:2130
 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:3838
 do_filp_open+0x1ee/0x420 fs/namei.c:3865
 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:0x7f774e169d8e
RSP: 002b:00007f774f0f4b28 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00007f774f0f56c0 RCX: 00007f774e169d8e
RDX: 0000000000000002 RSI: 00007f774f0f4c00 RDI: ffffffffffffff9c
RBP: 00007f774e238136 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f774e426038 R14: 00007f774e425fa0 R15: 00007ffeed134648
 </TASK>

Showing all locks held in the system:
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/28:
 #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
1 lock held by klogd/3632:
2 locks held by getty/4029:
 #0: ffff88814ca0a098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x21/0x70 drivers/tty/tty_ldisc.c:244
 #1: ffffc9000327b2f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x430/0x1400 drivers/tty/n_tty.c:2198
3 locks held by kworker/u4:7/4384:
3 locks held by kworker/u4:14/8616:
 #0: ffff888018479138 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_one_work+0x7b4/0x1160 kernel/workqueue.c:2267
 #1: ffffc9000c8dfd00 ((linkwatch_work).work){+.+.}-{0:0}, at: process_one_work+0x7b4/0x1160 kernel/workqueue.c:2267
 #2: ffffffff8ed6b9e8 (rtnl_mutex){+.+.}-{3:3}, at: linkwatch_event+0xa/0x50 net/core/link_watch.c:263
4 locks held by kworker/u4:16/8910:
 #0: ffff88801861e938 ((wq_completion)netns){+.+.}-{0:0}, at: process_one_work+0x7b4/0x1160 kernel/workqueue.c:2267
 #1: ffffc9000d527d00 (net_cleanup_work){+.+.}-{0:0}, at: process_one_work+0x7b4/0x1160 kernel/workqueue.c:2267
 #2: ffffffff8ed5ead0 (pernet_ops_rwsem){++++}-{3:3}, at: cleanup_net+0x148/0xba0 net/core/net_namespace.c:594
 #3: ffffffff8ed6b9e8 (rtnl_mutex){+.+.}-{3:3}, at: sit_exit_batch_net+0xd9/0x4e0 net/ipv6/sit.c:1888
3 locks held by syz.3.1726/11454:
1 lock held by syz.1.1780/11689:
 #0: ffffffff8e2853e8 (tty_mutex){+.+.}-{3:3}, at: ptmx_open+0xcc/0x2c0 drivers/tty/pty.c:823
1 lock held by syz.4.1820/11905:
 #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.1850/12062:
 #0: ffffffff8e2853e8 (tty_mutex){+.+.}-{3:3}, at: ptmx_open+0xcc/0x2c0 drivers/tty/pty.c:823
1 lock held by syz.8.1859/12120:
 #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.6.1916/12377:
 #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.5.1946/12518:
 #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
5 locks held by syz.2.1992/12747:
1 lock held by syz.3.2006/12862:
 #0: ffffffff8e2853e8 (tty_mutex){+.+.}-{3:3}, at: ptmx_open+0xcc/0x2c0 drivers/tty/pty.c:823
7 locks held by syz-executor/13479:
 #0: ffff88807e7fa460 (sb_writers#8){.+.+}-{0:0}, at: vfs_write+0x270/0x9a0 fs/read_write.c:580
 #1: ffff888084247888 (&of->mutex){+.+.}-{3:3}, at: kernfs_fop_write_iter+0x1d8/0x520 fs/kernfs/file.c:343
 #2: ffff888144f31008 (kn->active#53){.+.+}-{0:0}, at: kernfs_get_active_of fs/kernfs/file.c:80 [inline]
 #2: ffff888144f31008 (kn->active#53){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x232/0x520 fs/kernfs/file.c:344
 #3: ffffffff8e65f788 (nsim_bus_dev_list_lock){+.+.}-{3:3}, at: del_device_store+0xd3/0x370 drivers/net/netdevsim/bus.c:209
 #4: ffff8880247430e8 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:885 [inline]
 #4: ffff8880247430e8 (&dev->mutex){....}-{3:3}, at: __device_driver_lock drivers/base/dd.c:1099 [inline]
 #4: ffff8880247430e8 (&dev->mutex){....}-{3:3}, at: device_release_driver_internal+0xb1/0x7c0 drivers/base/dd.c:1302
 #5: ffff888057ba32f8 (&devlink->lock_key#17){+.+.}-{3:3}, at: nsim_drv_remove+0x54/0x170 drivers/net/netdevsim/dev.c:1678
 #6: ffffffff8ed6b9e8 (rtnl_mutex){+.+.}-{3:3}, at: nsim_destroy+0x3b/0x150 drivers/net/netdevsim/netdev.c:381
1 lock held by syz.4.2203/13583:
 #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-executor/13653:
1 lock held by syz-executor/13661:
 #0: ffffffff8ed6b9e8 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock net/core/rtnetlink.c:74 [inline]
 #0: ffffffff8ed6b9e8 (rtnl_mutex){+.+.}-{3:3}, at: rtnetlink_rcv_msg+0x80d/0xfb0 net/core/rtnetlink.c:6163
2 locks held by syz.0.2233/13738:
1 lock held by syz.9.2234/13742:

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

NMI backtrace for cpu 0
CPU: 0 PID: 28 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 (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/11/20 19:08 linux-6.1.y c75b0cf0982c 625aa117 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: task hung in ptmx_open
2026/10/20 14:39 linux-6.1.y 79807e970724 df8746fb .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: task hung in ptmx_open
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.