syzbot


INFO: task hung in tty_release_struct (6)

Status: auto-obsoleted due to no activity on 2024/04/13 21:30
Subsystems: serial
[Documentation on labels]
First crash: 108d, last: 108d
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 503d 503d 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 1462d 1573d 0/1 auto-closed as invalid on 2020/08/28 17:40
upstream INFO: task hung in tty_release_struct serial 2 1387d 1393d 0/26 auto-closed as invalid on 2020/10/13 06:21
upstream INFO: task hung in tty_release_struct (2) serial 7 821d 957d 0/26 closed as invalid on 2022/02/07 19:19
upstream INFO: task hung in tty_release_struct (3) serial 3 762d 806d 0/26 auto-closed as invalid on 2022/06/29 20:46
android-414 INFO: task hung in tty_release_struct 7 1968d 1846d 0/1 auto-closed as invalid on 2019/06/10 11:00
upstream INFO: task hung in tty_release_struct (5) serial 1 297d 297d 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 581d 619d 0/26 auto-obsoleted due to no activity on 2023/01/03 08:49

Sample crash report:
INFO: task syz-executor.2:10563 blocked for more than 143 seconds.
      Not tainted 6.7.0-syzkaller-09928-g052d534373b7 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.2  state:D stack:29480 pid:10563 tgid:10559 ppid:5103   flags:0x00004006
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5400 [inline]
 __schedule+0xf12/0x5c00 kernel/sched/core.c:6727
 __schedule_loop kernel/sched/core.c:6802 [inline]
 schedule+0xe9/0x270 kernel/sched/core.c:6817
 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6874
 __mutex_lock_common kernel/locking/mutex.c:684 [inline]
 __mutex_lock+0x5b9/0x9d0 kernel/locking/mutex.c:752
 tty_release_struct+0xad/0xe0 drivers/tty/tty_io.c:1702
 tty_release+0xe2c/0x1420 drivers/tty/tty_io.c:1863
 __fput+0x270/0xb70 fs/file_table.c:376
 task_work_run+0x14d/0x240 kernel/task_work.c:180
 get_signal+0x106f/0x2790 kernel/signal.c:2669
 arch_do_signal_or_restart+0x90/0x7f0 arch/x86/kernel/signal.c:310
 exit_to_user_mode_loop kernel/entry/common.c:105 [inline]
 exit_to_user_mode_prepare include/linux/entry-common.h:328 [inline]
 __syscall_exit_to_user_mode_work kernel/entry/common.c:201 [inline]
 syscall_exit_to_user_mode+0x156/0x2b0 kernel/entry/common.c:212
 do_syscall_64+0xe0/0x250 arch/x86/entry/common.c:89
 entry_SYSCALL_64_after_hwframe+0x63/0x6b
RIP: 0033:0x7fef4487cda9
RSP: 002b:00007fef455270c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: 0000000000003e00 RBX: 00007fef449ac050 RCX: 00007fef4487cda9
RDX: 000000000000ff2e RSI: 0000000020000180 RDI: 0000000000000003
RBP: 00007fef448c947a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007fef449ac050 R15: 00007fef44acfa48
 </TASK>
INFO: task syz-executor.5:10587 blocked for more than 143 seconds.
      Not tainted 6.7.0-syzkaller-09928-g052d534373b7 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.5  state:D stack:29040 pid:10587 tgid:10585 ppid:5107   flags:0x00000006
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5400 [inline]
 __schedule+0xf12/0x5c00 kernel/sched/core.c:6727
 __schedule_loop kernel/sched/core.c:6802 [inline]
 schedule+0xe9/0x270 kernel/sched/core.c:6817
 schedule_timeout+0x257/0x290 kernel/time/timer.c:2159
 ___down_common kernel/locking/semaphore.c:225 [inline]
 __down_common+0x327/0x6d0 kernel/locking/semaphore.c:246
 down+0x74/0xa0 kernel/locking/semaphore.c:63
 console_lock+0x96/0x150 kernel/printk/printk.c:2640
 con_install+0x9a/0x600 drivers/tty/vt/vt.c:3337
 tty_driver_install_tty drivers/tty/tty_io.c:1306 [inline]
 tty_init_dev.part.0+0x99/0x660 drivers/tty/tty_io.c:1418
 tty_init_dev include/linux/err.h:61 [inline]
 tty_open_by_driver drivers/tty/tty_io.c:2084 [inline]
 tty_open+0xb23/0x1010 drivers/tty/tty_io.c:2131
 chrdev_open+0x26d/0x6e0 fs/char_dev.c:414
 do_dentry_open+0x8d6/0x18c0 fs/open.c:953
 do_open fs/namei.c:3641 [inline]
 path_openat+0x1df6/0x2990 fs/namei.c:3798
 do_filp_open+0x1de/0x430 fs/namei.c:3825
 do_sys_openat2+0x176/0x1e0 fs/open.c:1404
 do_sys_open fs/open.c:1419 [inline]
 __do_sys_openat fs/open.c:1435 [inline]
 __se_sys_openat fs/open.c:1430 [inline]
 __x64_sys_openat+0x175/0x210 fs/open.c:1430
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xd3/0x250 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x63/0x6b
RIP: 0033:0x7fd84f67b9a0
RSP: 002b:00007fd8503fdc00 EFLAGS: 00000293 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 0000000000000002 RCX: 00007fd84f67b9a0
RDX: 0000000000000002 RSI: 00007fd8503fdca0 RDI: 00000000ffffff9c
RBP: 00007fd8503fdca0 R08: 0000000000000000 R09: 00007fd8503fda17
R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000000
R13: 000000000000006e R14: 00007fd84f7ac050 R15: 00007fd84f8cfa48
 </TASK>
INFO: lockdep is turned off.
NMI backtrace for cpu 1
CPU: 1 PID: 29 Comm: khungtaskd Not tainted 6.7.0-syzkaller-09928-g052d534373b7 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0xd9/0x1b0 lib/dump_stack.c:106
 nmi_cpu_backtrace+0x277/0x390 lib/nmi_backtrace.c:113
 nmi_trigger_cpumask_backtrace+0x299/0x300 lib/nmi_backtrace.c:62
 trigger_all_cpu_backtrace include/linux/nmi.h:160 [inline]
 check_hung_uninterruptible_tasks kernel/hung_task.c:222 [inline]
 watchdog+0xf87/0x1210 kernel/hung_task.c:379
 kthread+0x2c6/0x3a0 kernel/kthread.c:388
 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:242
 </TASK>
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 11495 Comm: syz-executor.3 Not tainted 6.7.0-syzkaller-09928-g052d534373b7 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023
RIP: 0010:__sanitizer_cov_trace_const_cmp4+0x8/0x20 kernel/kcov.c:304
Code: 00 00 f3 0f 1e fa 48 8b 0c 24 0f b7 d6 0f b7 f7 bf 03 00 00 00 e9 c8 fe ff ff 0f 1f 84 00 00 00 00 00 f3 0f 1e fa 48 8b 0c 24 <89> f2 89 fe bf 05 00 00 00 e9 aa fe ff ff 66 2e 0f 1f 84 00 00 00
RSP: 0018:ffffc90005087cc0 EFLAGS: 00000246
RAX: 0000000000000000 RBX: ffff888013176000 RCX: ffffffff845d70eb
RDX: ffff88801d273b80 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000000 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000000 R11: ffff88801d273b80 R12: 0000000000000000
R13: ffff8880131764e8 R14: ffff888013176290 R15: ffff888013176000
FS:  00007f720a9b66c0(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005595eb1186a8 CR3: 000000001b2ad000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <TASK>
 io_lockdep_assert_cq_locked+0x20b/0x330 io_uring/io_uring.h:94
 io_get_cqe_overflow io_uring/io_uring.h:129 [inline]
 __io_cqring_overflow_flush+0x35b/0x570 io_uring/io_uring.c:697
 io_cqring_do_overflow_flush io_uring/io_uring.c:718 [inline]
 io_cqring_wait io_uring/io_uring.c:2643 [inline]
 __do_sys_io_uring_enter+0x1e48/0x2450 io_uring/io_uring.c:3674
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xd3/0x250 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x63/0x6b
RIP: 0033:0x7f7209c7cda9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f720a9b60c8 EFLAGS: 00000246 ORIG_RAX: 00000000000001aa
RAX: ffffffffffffffda RBX: 00007f7209dabf80 RCX: 00007f7209c7cda9
RDX: 0000000000000004 RSI: 0000000000000001 RDI: 0000000000000003
RBP: 00007f7209cc947a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007f7209dabf80 R15: 00007f7209ecfa48
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/01/14 21:29 upstream 052d534373b7 551587c1 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce INFO: task hung in tty_release_struct
* Struck through repros no longer work on HEAD.