INFO: task kworker/u4:4:2324 blocked for more than 140 seconds. Not tainted 4.14.171-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. kworker/u4:4 D26080 2324 2 0x80000000 Workqueue: events_unbound flush_to_ldisc Call Trace: context_switch kernel/sched/core.c:2808 [inline] __schedule+0x7b8/0x1cd0 kernel/sched/core.c:3384 schedule+0x92/0x1c0 kernel/sched/core.c:3428 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:3486 __mutex_lock_common kernel/locking/mutex.c:833 [inline] __mutex_lock+0x73c/0x1470 kernel/locking/mutex.c:893 mutex_lock_nested+0x16/0x20 kernel/locking/mutex.c:908 flush_to_ldisc+0x39/0x400 drivers/tty/tty_buffer.c:499 process_one_work+0x863/0x1600 kernel/workqueue.c:2114 process_scheduled_works kernel/workqueue.c:2174 [inline] worker_thread+0x787/0x1050 kernel/workqueue.c:2253 kthread+0x319/0x430 kernel/kthread.c:232 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:404 INFO: task login:7305 blocked for more than 140 seconds. Not tainted 4.14.171-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. login D25920 7305 1 0x00000004 Call Trace: context_switch kernel/sched/core.c:2808 [inline] __schedule+0x7b8/0x1cd0 kernel/sched/core.c:3384 schedule+0x92/0x1c0 kernel/sched/core.c:3428 schedule_timeout+0x93b/0xe10 kernel/time/timer.c:1723 do_wait_for_common kernel/sched/completion.c:91 [inline] __wait_for_common kernel/sched/completion.c:112 [inline] wait_for_common kernel/sched/completion.c:123 [inline] wait_for_completion+0x27c/0x420 kernel/sched/completion.c:144 flush_work+0x3eb/0x730 kernel/workqueue.c:2891 tty_buffer_flush_work+0x16/0x20 drivers/tty/tty_buffer.c:612 n_tty_read+0x813/0x17d0 drivers/tty/n_tty.c:2199 tty_read+0x171/0x270 drivers/tty/tty_io.c:866 __vfs_read+0x105/0x6a0 fs/read_write.c:411 vfs_read+0x137/0x350 fs/read_write.c:447 SYSC_read fs/read_write.c:574 [inline] SyS_read+0xfd/0x230 fs/read_write.c:567 do_syscall_64+0x1e8/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x42/0xb7 RIP: 0033:0x7f85b6871310 RSP: 002b:00007ffdeed93028 EFLAGS: 00000246 ORIG_RAX: 0000000000000000 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f85b6871310 RDX: 00000000000001ff RSI: 00007ffdeed93290 RDI: 0000000000000000 RBP: 0000000000000000 R08: 00007f85b7154700 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffdeed93290 R13: 0000000000000000 R14: 0000000000000001 R15: 000000000060b798 Showing all locks held in the system: 1 lock held by khungtaskd/1057: #0: (tasklist_lock){.+.?}, at: [] debug_show_all_locks+0x7f/0x21f kernel/locking/lockdep.c:4544 3 locks held by kworker/u4:4/2324: #0: ("events_unbound"){+.+.}, at: [] work_static include/linux/workqueue.h:199 [inline] #0: ("events_unbound"){+.+.}, at: [] set_work_data kernel/workqueue.c:619 [inline] #0: ("events_unbound"){+.+.}, at: [] set_work_pool_and_clear_pending kernel/workqueue.c:646 [inline] #0: ("events_unbound"){+.+.}, at: [] process_one_work+0x76e/0x1600 kernel/workqueue.c:2085 #1: ((&buf->work)){+.+.}, at: [] process_one_work+0x7ab/0x1600 kernel/workqueue.c:2089 #2: (&buf->lock){+.+.}, at: [] flush_to_ldisc+0x39/0x400 drivers/tty/tty_buffer.c:499 2 locks held by login/7305: #0: (&tty->ldisc_sem){++++}, at: [] ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:376 #1: (&ldata->atomic_read_lock){+.+.}, at: [] n_tty_read+0x1e6/0x17d0 drivers/tty/n_tty.c:2156 2 locks held by getty/7306: #0: (&tty->ldisc_sem){++++}, at: [] ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:376 #1: (&ldata->atomic_read_lock){+.+.}, at: [] n_tty_read+0x1e6/0x17d0 drivers/tty/n_tty.c:2156 2 locks held by getty/7307: #0: (&tty->ldisc_sem){++++}, at: [] ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:376 #1: (&ldata->atomic_read_lock){+.+.}, at: [] n_tty_read+0x1e6/0x17d0 drivers/tty/n_tty.c:2156 2 locks held by getty/7308: #0: (&tty->ldisc_sem){++++}, at: [] ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:376 #1: (&ldata->atomic_read_lock){+.+.}, at: [] n_tty_read+0x1e6/0x17d0 drivers/tty/n_tty.c:2156 2 locks held by getty/7309: #0: (&tty->ldisc_sem){++++}, at: [] ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:376 #1: (&ldata->atomic_read_lock){+.+.}, at: [] n_tty_read+0x1e6/0x17d0 drivers/tty/n_tty.c:2156 2 locks held by getty/7310: #0: (&tty->ldisc_sem){++++}, at: [] ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:376 #1: (&ldata->atomic_read_lock){+.+.}, at: [] n_tty_read+0x1e6/0x17d0 drivers/tty/n_tty.c:2156 2 locks held by getty/7311: #0: (&tty->ldisc_sem){++++}, at: [] ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:376 #1: (&ldata->atomic_read_lock){+.+.}, at: [] n_tty_read+0x1e6/0x17d0 drivers/tty/n_tty.c:2156 2 locks held by syz-executor.1/7420: #0: (&tty->ldisc_sem){++++}, at: [] ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:376 #1: (&buf->lock){+.+.}, at: [] tty_buffer_lock_exclusive+0x1f/0x30 drivers/tty/tty_buffer.c:60 ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 1057 Comm: khungtaskd Not tainted 4.14.171-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x142/0x197 lib/dump_stack.c:58 nmi_cpu_backtrace.cold+0x57/0x94 lib/nmi_backtrace.c:101 nmi_trigger_cpumask_backtrace+0x141/0x189 lib/nmi_backtrace.c:62 arch_trigger_cpumask_backtrace+0x14/0x20 arch/x86/kernel/apic/hw_nmi.c:38 trigger_all_cpu_backtrace include/linux/nmi.h:140 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:195 [inline] watchdog+0x5e7/0xb90 kernel/hung_task.c:274 kthread+0x319/0x430 kernel/kthread.c:232 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:404 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 7420 Comm: syz-executor.1 Not tainted 4.14.171-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 task: ffff88808d38c380 task.stack: ffff8881bf8c8000 RIP: 0010:__sanitizer_cov_trace_pc+0x15/0x60 kernel/kcov.c:65 RSP: 0018:ffff8881bf8cf6c8 EFLAGS: 00000082 RAX: ffff88808d38c380 RBX: ffff88808d38c380 RCX: ffffc90006d7d000 RDX: 0000000080000003 RSI: ffffffff830df54c RDI: ffffffff87044b40 RBP: ffff8881bf8cf700 R08: 0000000000000000 R09: ffff88808d38cc98 R10: ffff88808d38cc78 R11: ffff88808d38c380 R12: 0000000000000001 R13: ffffffff87044b00 R14: ffffffff87044b40 R15: 0000000000000000 FS: 00007f9fa6afd700(0000) GS:ffff8880aed00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f9983e95000 CR3: 00000001d4952000 CR4: 00000000001426e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: debug_smp_processor_id+0x1c/0x20 lib/smp_processor_id.c:57 rcu_lockdep_current_cpu_online kernel/rcu/tree.c:1186 [inline] rcu_lockdep_current_cpu_online+0x3a/0x140 kernel/rcu/tree.c:1177 rcu_read_lock_held+0x8a/0xd0 kernel/rcu/update.c:330 task_css include/linux/cgroup.h:481 [inline] task_ca kernel/sched/cpuacct.c:54 [inline] cpuacct_charge+0x2d1/0x360 kernel/sched/cpuacct.c:360 update_curr+0x2d9/0x6a0 kernel/sched/fair.c:856 pick_next_task_fair+0x661/0x1430 kernel/sched/fair.c:6303 pick_next_task kernel/sched/core.c:3232 [inline] __schedule+0x43e/0x1cd0 kernel/sched/core.c:3357 schedule+0x92/0x1c0 kernel/sched/core.c:3428 paste_selection+0x293/0x3f2 drivers/tty/vt/selection.c:355 tioclinux+0x10e/0x400 drivers/tty/vt/vt.c:2696 vt_ioctl+0x180c/0x2170 drivers/tty/vt/vt_ioctl.c:364 tty_ioctl+0x841/0x1320 drivers/tty/tty_io.c:2661 vfs_ioctl fs/ioctl.c:46 [inline] file_ioctl fs/ioctl.c:500 [inline] do_vfs_ioctl+0x7ae/0x1060 fs/ioctl.c:684 SYSC_ioctl fs/ioctl.c:701 [inline] SyS_ioctl+0x8f/0xc0 fs/ioctl.c:692 do_syscall_64+0x1e8/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x42/0xb7 RIP: 0033:0x45c449 RSP: 002b:00007f9fa6afcc78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f9fa6afd6d4 RCX: 000000000045c449 RDX: 00000000200000c0 RSI: 000000000000541c RDI: 0000000000000005 RBP: 000000000076c060 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 0000000000000571 R14: 00000000004c7c29 R15: 000000000076c06c Code: ff e8 83 32 ee ff 48 c7 05 e5 5d 4b 08 00 00 00 00 e9 14 ec ff ff 65 48 8b 04 25 40 ee 01 00 48 85 c0 74 1a 65 8b 15 5b 25 a5 7e <81> e2 00 01 1f 00 75 0b 8b 90 50 13 00 00 83 fa 01 74 01 c3 55