syzbot


INFO: task hung in con_set_trans_old

Status: closed as invalid on 2022/02/08 09:50
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 305d, last: 305d

Sample crash report:
INFO: task syz-executor.3:12999 blocked for more than 143 seconds.
      Not tainted 5.17.0-rc1-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.3  state:D stack:28504 pid:12999 ppid: 12943 flags:0x00000004
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:4986 [inline]
 __schedule+0xab2/0x4db0 kernel/sched/core.c:6295
 schedule+0xd2/0x260 kernel/sched/core.c:6368
 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:2524
 con_set_trans_old+0x164/0x240 drivers/tty/vt/consolemap.c:334
 vt_io_ioctl drivers/tty/vt/vt_ioctl.c:525 [inline]
 vt_ioctl+0x1893/0x2b10 drivers/tty/vt/vt_ioctl.c:756
 tty_ioctl+0xbbd/0x1660 drivers/tty/tty_io.c:2778
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:874 [inline]
 __se_sys_ioctl fs/ioctl.c:860 [inline]
 __x64_sys_ioctl+0x193/0x200 fs/ioctl.c:860
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7f8a155fc059
RSP: 002b:00007f8a13f50168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f8a1570f030 RCX: 00007f8a155fc059
RDX: 0000000020000100 RSI: 0000000000004b41 RDI: 0000000000000005
RBP: 00007f8a1565608d R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffdc16ac98f R14: 00007f8a13f50300 R15: 0000000000022000
 </TASK>
INFO: task syz-executor.3:13003 blocked for more than 143 seconds.
      Not tainted 5.17.0-rc1-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.3  state:D stack:29328 pid:13003 ppid: 12943 flags:0x00000004
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:4986 [inline]
 __schedule+0xab2/0x4db0 kernel/sched/core.c:6295
 schedule+0xd2/0x260 kernel/sched/core.c:6368
 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:2524
 set_selection_kernel drivers/tty/vt/selection.c:358 [inline]
 set_selection_user+0xa4/0x1b0 drivers/tty/vt/selection.c:185
 tioclinux+0x114/0x560 drivers/tty/vt/vt.c:3200
 vt_ioctl+0x229a/0x2b10 drivers/tty/vt/vt_ioctl.c:762
 tty_ioctl+0xbbd/0x1660 drivers/tty/tty_io.c:2778
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:874 [inline]
 __se_sys_ioctl fs/ioctl.c:860 [inline]
 __x64_sys_ioctl+0x193/0x200 fs/ioctl.c:860
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7f8a155fc059
RSP: 002b:00007f8a13f2f168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f8a1570f100 RCX: 00007f8a155fc059
RDX: 0000000020000000 RSI: 000000000000541c RDI: 0000000000000004
RBP: 00007f8a1565608d R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffdc16ac98f R14: 00007f8a13f2f300 R15: 0000000000022000
 </TASK>
INFO: task syz-executor.4:13001 blocked for more than 143 seconds.
      Not tainted 5.17.0-rc1-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.4  state:D stack:27880 pid:13001 ppid: 12944 flags:0x00000004
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:4986 [inline]
 __schedule+0xab2/0x4db0 kernel/sched/core.c:6295
 schedule+0xd2/0x260 kernel/sched/core.c:6368
 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:2524
 con_set_trans_old+0x164/0x240 drivers/tty/vt/consolemap.c:334
 vt_io_ioctl drivers/tty/vt/vt_ioctl.c:525 [inline]
 vt_ioctl+0x1893/0x2b10 drivers/tty/vt/vt_ioctl.c:756
 tty_ioctl+0xbbd/0x1660 drivers/tty/tty_io.c:2778
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:874 [inline]
 __se_sys_ioctl fs/ioctl.c:860 [inline]
 __x64_sys_ioctl+0x193/0x200 fs/ioctl.c:860
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7f937616c059
RSP: 002b:00007f9374ae1168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f937627ef60 RCX: 00007f937616c059
RDX: 0000000020000100 RSI: 0000000000004b41 RDI: 0000000000000004
RBP: 00007f93761c608d R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffe731a288f R14: 00007f9374ae1300 R15: 0000000000022000
 </TASK>
INFO: task syz-executor.4:13023 blocked for more than 143 seconds.
      Not tainted 5.17.0-rc1-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.4  state:D stack:28896 pid:13023 ppid: 12944 flags:0x00000004
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:4986 [inline]
 __schedule+0xab2/0x4db0 kernel/sched/core.c:6295
 schedule+0xd2/0x260 kernel/sched/core.c:6368
 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:6427
 __mutex_lock_common kernel/locking/mutex.c:673 [inline]
 __mutex_lock+0xa32/0x12f0 kernel/locking/mutex.c:733
 set_selection_kernel drivers/tty/vt/selection.c:357 [inline]
 set_selection_user+0x9f/0x1b0 drivers/tty/vt/selection.c:185
 tioclinux+0x114/0x560 drivers/tty/vt/vt.c:3200
 vt_ioctl+0x229a/0x2b10 drivers/tty/vt/vt_ioctl.c:762
 tty_ioctl+0xbbd/0x1660 drivers/tty/tty_io.c:2778
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:874 [inline]
 __se_sys_ioctl fs/ioctl.c:860 [inline]
 __x64_sys_ioctl+0x193/0x200 fs/ioctl.c:860
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7f937616c059
RSP: 002b:00007f9374a9f168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f937627f100 RCX: 00007f937616c059
RDX: 0000000020000000 RSI: 000000000000541c RDI: 0000000000000006
RBP: 00007f93761c608d R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffe731a288f R14: 00007f9374a9f300 R15: 0000000000022000
 </TASK>
INFO: task syz-executor.5:13029 blocked for more than 143 seconds.
      Not tainted 5.17.0-rc1-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.5  state:D stack:28504 pid:13029 ppid: 12998 flags:0x00000004
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:4986 [inline]
 __schedule+0xab2/0x4db0 kernel/sched/core.c:6295
 schedule+0xd2/0x260 kernel/sched/core.c:6368
 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:6427
 __mutex_lock_common kernel/locking/mutex.c:673 [inline]
 __mutex_lock+0xa32/0x12f0 kernel/locking/mutex.c:733
 set_selection_kernel drivers/tty/vt/selection.c:357 [inline]
 set_selection_user+0x9f/0x1b0 drivers/tty/vt/selection.c:185
 tioclinux+0x114/0x560 drivers/tty/vt/vt.c:3200
 vt_ioctl+0x229a/0x2b10 drivers/tty/vt/vt_ioctl.c:762
 tty_ioctl+0xbbd/0x1660 drivers/tty/tty_io.c:2778
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:874 [inline]
 __se_sys_ioctl fs/ioctl.c:860 [inline]
 __x64_sys_ioctl+0x193/0x200 fs/ioctl.c:860
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7fd6ae2b8059
RSP: 002b:00007fd6acc2d168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007fd6ae3caf60 RCX: 00007fd6ae2b8059
RDX: 0000000020000000 RSI: 000000000000541c RDI: 0000000000000004
RBP: 00007fd6ae31208d R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fff09469ecf R14: 00007fd6acc2d300 R15: 0000000000022000
 </TASK>
INFO: task syz-executor.5:13032 blocked for more than 143 seconds.
      Not tainted 5.17.0-rc1-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.5  state:D stack:27928 pid:13032 ppid: 12998 flags:0x00000004
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:4986 [inline]
 __schedule+0xab2/0x4db0 kernel/sched/core.c:6295
 schedule+0xd2/0x260 kernel/sched/core.c:6368
 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:2524
 con_set_trans_old+0x164/0x240 drivers/tty/vt/consolemap.c:334
 vt_io_ioctl drivers/tty/vt/vt_ioctl.c:525 [inline]
 vt_ioctl+0x1893/0x2b10 drivers/tty/vt/vt_ioctl.c:756
 tty_ioctl+0xbbd/0x1660 drivers/tty/tty_io.c:2778
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:874 [inline]
 __se_sys_ioctl fs/ioctl.c:860 [inline]
 __x64_sys_ioctl+0x193/0x200 fs/ioctl.c:860
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7fd6ae2b8059
RSP: 002b:00007fd6acc0c168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007fd6ae3cb030 RCX: 00007fd6ae2b8059
RDX: 0000000020000100 RSI: 0000000000004b41 RDI: 0000000000000005
RBP: 00007fd6ae31208d R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fff09469ecf R14: 00007fd6acc0c300 R15: 0000000000022000
 </TASK>

Showing all locks held in the system:
1 lock held by khungtaskd/27:
 #0: ffffffff8bb83aa0 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x53/0x260 kernel/locking/lockdep.c:6460
2 locks held by getty/3281:
 #0: ffff8880239c4098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x22/0x80 drivers/tty/tty_ldisc.c:244
 #1: ffffc90002b632e8 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xcf0/0x1230 drivers/tty/n_tty.c:2077
2 locks held by kworker/u4:8/5557:
 #0: ffff888010c69138 ((wq_completion)events_unbound){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline]
 #0: ffff888010c69138 ((wq_completion)events_unbound){+.+.}-{0:0}, at: arch_atomic_long_set include/linux/atomic/atomic-long.h:41 [inline]
 #0: ffff888010c69138 ((wq_completion)events_unbound){+.+.}-{0:0}, at: atomic_long_set include/linux/atomic/atomic-instrumented.h:1280 [inline]
 #0: ffff888010c69138 ((wq_completion)events_unbound){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:631 [inline]
 #0: ffff888010c69138 ((wq_completion)events_unbound){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:658 [inline]
 #0: ffff888010c69138 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_one_work+0x890/0x1650 kernel/workqueue.c:2278
 #1: ffffc900050e7db8 ((kfence_timer).work){+.+.}-{0:0}, at: process_one_work+0x8c4/0x1650 kernel/workqueue.c:2282
5 locks held by syz-executor.0/12933:
1 lock held by syz-executor.3/13003:
 #0: ffffffff8c5c8388 (vc_sel.lock){+.+.}-{3:3}, at: set_selection_kernel drivers/tty/vt/selection.c:357 [inline]
 #0: ffffffff8c5c8388 (vc_sel.lock){+.+.}-{3:3}, at: set_selection_user+0x9f/0x1b0 drivers/tty/vt/selection.c:185
1 lock held by syz-executor.4/13023:
 #0: ffffffff8c5c8388 (vc_sel.lock){+.+.}-{3:3}, at: set_selection_kernel drivers/tty/vt/selection.c:357 [inline]
 #0: ffffffff8c5c8388 (vc_sel.lock){+.+.}-{3:3}, at: set_selection_user+0x9f/0x1b0 drivers/tty/vt/selection.c:185
1 lock held by syz-executor.5/13029:
 #0: ffffffff8c5c8388 (vc_sel.lock){+.+.}-{3:3}, at: set_selection_kernel drivers/tty/vt/selection.c:357 [inline]
 #0: ffffffff8c5c8388 (vc_sel.lock){+.+.}-{3:3}, at: set_selection_user+0x9f/0x1b0 drivers/tty/vt/selection.c:185

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

NMI backtrace for cpu 1
CPU: 1 PID: 27 Comm: khungtaskd Not tainted 5.17.0-rc1-syzkaller #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+0x1b3/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:377
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295
 </TASK>
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0 skipped: idling at native_safe_halt arch/x86/include/asm/irqflags.h:51 [inline]
NMI backtrace for cpu 0 skipped: idling at arch_safe_halt arch/x86/include/asm/irqflags.h:89 [inline]
NMI backtrace for cpu 0 skipped: idling at acpi_safe_halt drivers/acpi/processor_idle.c:110 [inline]
NMI backtrace for cpu 0 skipped: idling at acpi_idle_do_entry+0x1c6/0x250 drivers/acpi/processor_idle.c:551

Crashes (1):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce-root 2022/01/25 07:39 upstream a08b41ab9e2e 2cbffd88 .config log report info INFO: task hung in con_set_trans_old
* Struck through repros no longer work on HEAD.