syzbot


INFO: task hung in tty_release_struct (3)

Status: auto-closed as invalid on 2022/06/29 20:46
Subsystems: serial
[Documentation on labels]
First crash: 800d, last: 756d
Similar bugs (8)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 INFO: task hung in tty_release_struct 1 496d 496d 0/1 auto-obsoleted due to no activity on 2023/04/15 07:55
linux-4.14 INFO: task hung in tty_release_struct 2 1456d 1566d 0/1 auto-closed as invalid on 2020/08/28 17:40
upstream INFO: task hung in tty_release_struct serial 2 1381d 1387d 0/26 auto-closed as invalid on 2020/10/13 06:21
upstream INFO: task hung in tty_release_struct (6) serial 1 102d 102d 0/26 auto-obsoleted due to no activity on 2024/04/13 21:30
upstream INFO: task hung in tty_release_struct (2) serial 7 814d 950d 0/26 closed as invalid on 2022/02/07 19:19
android-414 INFO: task hung in tty_release_struct 7 1961d 1840d 0/1 auto-closed as invalid on 2019/06/10 11:00
upstream INFO: task hung in tty_release_struct (5) serial 1 291d 291d 0/26 auto-obsoleted due to no activity on 2023/10/07 22:46
upstream INFO: task hung in tty_release_struct (4) serial 2 575d 613d 0/26 auto-obsoleted due to no activity on 2023/01/03 08:49

Sample crash report:
INFO: task syz-executor.3:18448 blocked for more than 143 seconds.
      Tainted: G        W         5.17.0-syzkaller-13532-gb4a5ea09b293 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.3  state:D stack:25944 pid:18448 ppid:  3625 flags:0x00004004
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5073 [inline]
 __schedule+0xa9a/0x4940 kernel/sched/core.c:6382
 schedule+0xd2/0x1f0 kernel/sched/core.c:6454
 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:6513
 __mutex_lock_common kernel/locking/mutex.c:673 [inline]
 __mutex_lock+0xa32/0x12f0 kernel/locking/mutex.c:733
 tty_release_struct+0xa9/0xe0 drivers/tty/tty_io.c:1704
 tty_release+0xc70/0x1200 drivers/tty/tty_io.c:1865
 __fput+0x277/0x9d0 fs/file_table.c:317
 task_work_run+0xdd/0x1a0 kernel/task_work.c:164
 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
 exit_to_user_mode_loop kernel/entry/common.c:183 [inline]
 exit_to_user_mode_prepare+0x23c/0x250 kernel/entry/common.c:215
 __syscall_exit_to_user_mode_work kernel/entry/common.c:297 [inline]
 syscall_exit_to_user_mode+0x19/0x60 kernel/entry/common.c:308
 do_syscall_64+0x42/0x80 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7f576443bc8b
RSP: 002b:00007f5764acfb80 EFLAGS: 00000293 ORIG_RAX: 0000000000000003
RAX: 0000000000000000 RBX: 0000000000000004 RCX: 00007f576443bc8b
RDX: 0000000000000000 RSI: 00007f5764400000 RDI: 0000000000000003
RBP: 00007f576459d960 R08: 0000000000000000 R09: 00000000ed4f92ca
R10: 0000000000000000 R11: 0000000000000293 R12: 000000000011ebe1
R13: 00007f5764acfc80 R14: 00007f576459c030 R15: 0000000000000032
 </TASK>
INFO: task syz-executor.1:18449 blocked for more than 143 seconds.
      Tainted: G        W         5.17.0-syzkaller-13532-gb4a5ea09b293 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.1  state:D stack:27896 pid:18449 ppid:  3626 flags:0x00000004
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5073 [inline]
 __schedule+0xa9a/0x4940 kernel/sched/core.c:6382
 schedule+0xd2/0x1f0 kernel/sched/core.c:6454
 schedule_timeout+0x1db/0x2a0 kernel/time/timer.c:1857
 __down_common+0x2e0/0x420 kernel/locking/semaphore.c:224
 down+0x70/0x90 kernel/locking/semaphore.c:62
 console_lock+0x28/0x80 kernel/printk/printk.c:2563
 con_shutdown+0x3d/0x90 drivers/tty/vt/vt.c:3431
 release_tty+0xcb/0x610 drivers/tty/tty_io.c:1593
 tty_release_struct+0xb4/0xe0 drivers/tty/tty_io.c:1705
 tty_release+0xc70/0x1200 drivers/tty/tty_io.c:1865
 __fput+0x277/0x9d0 fs/file_table.c:317
 task_work_run+0xdd/0x1a0 kernel/task_work.c:164
 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
 exit_to_user_mode_loop kernel/entry/common.c:183 [inline]
 exit_to_user_mode_prepare+0x23c/0x250 kernel/entry/common.c:215
 __syscall_exit_to_user_mode_work kernel/entry/common.c:297 [inline]
 syscall_exit_to_user_mode+0x19/0x60 kernel/entry/common.c:308
 do_syscall_64+0x42/0x80 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7fbe4263bc8b
RSP: 002b:00007fbe42ccfb80 EFLAGS: 00000293 ORIG_RAX: 0000000000000003
RAX: 0000000000000000 RBX: 0000000000000004 RCX: 00007fbe4263bc8b
RDX: 0000000000000000 RSI: 00007fbe42600000 RDI: 0000000000000003
RBP: 00007fbe4279d960 R08: 0000000000000000 R09: 000000004a09e3bd
R10: 0000000000000000 R11: 0000000000000293 R12: 000000000011ebe6
R13: 00007fbe42ccfc80 R14: 00007fbe4279c030 R15: 0000000000000032
 </TASK>
INFO: lockdep is turned off.
NMI backtrace for cpu 0
CPU: 0 PID: 28 Comm: khungtaskd Tainted: G        W         5.17.0-syzkaller-13532-gb4a5ea09b293 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106
 nmi_cpu_backtrace.cold+0x47/0x144 lib/nmi_backtrace.c:111
 nmi_trigger_cpumask_backtrace+0x1e6/0x230 lib/nmi_backtrace.c:62
 trigger_all_cpu_backtrace include/linux/nmi.h:146 [inline]
 check_hung_uninterruptible_tasks kernel/hung_task.c:212 [inline]
 watchdog+0xc1d/0xf50 kernel/hung_task.c:369
 kthread+0x2e9/0x3a0 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298
 </TASK>
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1 skipped: idling at native_safe_halt arch/x86/include/asm/irqflags.h:51 [inline]
NMI backtrace for cpu 1 skipped: idling at arch_safe_halt arch/x86/include/asm/irqflags.h:89 [inline]
NMI backtrace for cpu 1 skipped: idling at acpi_safe_halt drivers/acpi/processor_idle.c:115 [inline]
NMI backtrace for cpu 1 skipped: idling at acpi_idle_do_entry+0x1c6/0x250 drivers/acpi/processor_idle.c:556

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/03/31 20:44 upstream b4a5ea09b293 c4c32d8c .config console log report info ci-upstream-kasan-gce INFO: task hung in tty_release_struct
2022/03/17 22:00 upstream 551acdc3c3d2 e2d91b1d .config console log report info ci-upstream-kasan-gce INFO: task hung in tty_release_struct
2022/02/15 18:38 upstream 705d84a366cf 8b9ca619 .config console log report info ci-upstream-kasan-gce INFO: task hung in tty_release_struct
* Struck through repros no longer work on HEAD.