bisecting fixing commit since 13d2ce42de8cb98ff952f8de6307f896203854c2 building syzkaller on f213e07ead587b07a84e60c356520bce7277166c testing commit 13d2ce42de8cb98ff952f8de6307f896203854c2 compiler: gcc version 8.4.1 20210217 (GCC) kernel signature: a39cafdd3df7b7fd6c3e8f5714eb4c2ef15a639ce3f997fd0e72fc6464187e15 run #0: crashed: INFO: task hung in n_tty_read run #1: crashed: INFO: task hung in n_tty_read run #2: crashed: INFO: task hung in n_tty_read run #3: crashed: INFO: task hung in n_tty_read run #4: crashed: INFO: task hung in n_tty_read run #5: crashed: INFO: task hung in n_tty_read run #6: crashed: INFO: task hung in n_tty_read run #7: crashed: INFO: task hung in n_tty_read run #8: crashed: INFO: task hung in n_tty_read run #9: crashed: INFO: task hung in n_tty_read run #10: crashed: INFO: task hung in n_tty_read run #11: crashed: INFO: task hung in n_tty_read run #12: crashed: INFO: task hung in n_tty_read run #13: crashed: INFO: task hung in n_tty_read run #14: OK run #15: crashed: INFO: task hung in n_tty_read run #16: crashed: INFO: task hung in n_tty_read run #17: crashed: INFO: task hung in n_tty_read run #18: crashed: INFO: task hung in console_callback run #19: crashed: INFO: task hung in console_callback testing current HEAD 4938296e03bd227e5020d63d418956fe52baf97c testing commit 4938296e03bd227e5020d63d418956fe52baf97c compiler: gcc version 8.4.1 20210217 (GCC) kernel signature: aa431cc2a9e60d1f57d05a8f4b63d4352286524a5d8b759d90a22fcded064c9a all runs: crashed: INFO: task hung in n_tty_read revisions tested: 2, total time: 28m21.451473768s (build: 15m24.094750055s, test: 12m33.454035784s) the crash still happens on HEAD commit msg: Linux 4.19.198 crash: INFO: task hung in n_tty_read Bluetooth: hci0: command 0x0406 tx timeout Bluetooth: hci2: command 0x0406 tx timeout Bluetooth: hci1: command 0x0406 tx timeout Bluetooth: hci5: command 0x0406 tx timeout Bluetooth: hci4: command 0x0406 tx timeout INFO: task agetty:7789 blocked for more than 140 seconds. Not tainted 4.19.198-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. agetty D26104 7789 1 0x00000000 Call Trace: context_switch kernel/sched/core.c:2828 [inline] __schedule+0x80c/0x1f70 kernel/sched/core.c:3517 schedule+0x7f/0x1b0 kernel/sched/core.c:3561 schedule_timeout+0x6f6/0xd20 kernel/time/timer.c:1794 do_wait_for_common kernel/sched/completion.c:83 [inline] __wait_for_common kernel/sched/completion.c:104 [inline] wait_for_common+0x3fb/0x5d0 kernel/sched/completion.c:115 wait_for_completion+0x18/0x20 kernel/sched/completion.c:136 __flush_work+0x401/0x820 kernel/workqueue.c:2926 flush_work+0xb/0x10 kernel/workqueue.c:2947 tty_buffer_flush_work+0xd/0x10 drivers/tty/tty_buffer.c:613 n_tty_read+0x764/0x1910 drivers/tty/n_tty.c:2197 tty_read+0x148/0x250 drivers/tty/tty_io.c:867 __vfs_read+0xe3/0x880 fs/read_write.c:416 vfs_read+0xff/0x300 fs/read_write.c:452 ksys_read+0x103/0x260 fs/read_write.c:579 __do_sys_read fs/read_write.c:589 [inline] __se_sys_read fs/read_write.c:587 [inline] __x64_sys_read+0x6e/0xb0 fs/read_write.c:587 do_syscall_64+0xd0/0x4e0 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7fb56fa54910 Code: Bad RIP value. RSP: 002b:00007ffc37fe9cb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000000 RAX: ffffffffffffffda RBX: 000000000000007e RCX: 00007fb56fa54910 RDX: 0000000000000001 RSI: 00007ffc37fe9d1f RDI: 0000000000000000 RBP: 000000000000007f R08: ffffffffffffff98 R09: 00007ffc37fe8b70 R10: 000000000000051b R11: 0000000000000246 R12: 0000000000000000 R13: 000055614cd24909 R14: 00007ffc37fe9d20 R15: 0000000000000012 Showing all locks held in the system: 2 locks held by kworker/1:0/19: #0: 00000000dc04dfc5 ((wq_completion)"events"){+.+.}, at: process_one_work+0x6e8/0x15a0 kernel/workqueue.c:2124 #1: 000000003db21ea6 (console_work){+.+.}, at: process_one_work+0x71b/0x15a0 kernel/workqueue.c:2128 7 locks held by kworker/u4:1/23: 1 lock held by khungtaskd/1570: #0: 00000000d82292c1 (rcu_read_lock){....}, at: debug_show_all_locks+0x5b/0x27a kernel/locking/lockdep.c:4443 1 lock held by in:imklog/7763: #0: 000000009c0d1106 (&f->f_pos_lock){+.+.}, at: __fdget_pos+0xa7/0xd0 fs/file.c:767 2 locks held by agetty/7789: #0: 000000006e036c4e (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x2d/0x40 drivers/tty/tty_ldsem.c:362 #1: 0000000069eea47b (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x1ee/0x1910 drivers/tty/n_tty.c:2154 ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 1570 Comm: khungtaskd Not tainted 4.19.198-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x17c/0x226 lib/dump_stack.c:118 nmi_cpu_backtrace.cold.0+0x3c/0x78 lib/nmi_backtrace.c:101 nmi_trigger_cpumask_backtrace+0xf6/0x120 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:146 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:203 [inline] watchdog+0x5c3/0xb40 kernel/hung_task.c:287 kthread+0x347/0x410 kernel/kthread.c:259 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 23 Comm: kworker/u4:1 Not tainted 4.19.198-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: events_unbound flush_to_ldisc RIP: 0010:vga16fb_fillrect+0x881/0x19b0 drivers/video/fbdev/vga16fb.c:924 Code: 8d 70 ff 85 c0 0f 84 30 fd ff ff 4c 63 7d c8 41 8d 7c 24 ff 31 d2 48 83 c7 01 49 8d 04 3e 45 85 e4 0f 84 0b 07 00 00 41 88 16 <49> 83 c6 01 49 39 c6 75 f4 4e 8d 34 38 83 ee 01 83 fe ff 75 db e9 RSP: 0018:ffff8880b5b97418 EFLAGS: 00000283 RAX: ffff8880000a0050 RBX: 0000000000000000 RCX: 00000000ffffffb0 RDX: 0000000000000000 RSI: 0000000062005eab RDI: 0000000000000050 RBP: ffff8880b5b97490 R08: ffff8880b5b974dc R09: 0000000000000000 R10: 1ffff110277c4eb9 R11: 0000000000000000 R12: 0000000000000050 R13: 1ffffffff132248a R14: ffff8880000a0018 R15: ffffffffffffffb0 FS: 0000000000000000(0000) GS:ffff8880ba300000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000001eab848 CR3: 000000000986d000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: bit_clear+0x314/0x630 drivers/video/fbdev/core/bitblit.c:74 fbcon_clear+0x475/0x700 drivers/video/fbdev/core/fbcon.c:1258 fbcon_scroll+0x618/0x3530 drivers/video/fbdev/core/fbcon.c:1759 con_scroll+0x467/0x700 drivers/tty/vt/vt.c:637 lf+0x23b/0x2a0 drivers/tty/vt/vt.c:1492 do_con_write.part.13+0x10f0/0x1aa0 drivers/tty/vt/vt.c:2769 do_con_write drivers/tty/vt/vt.c:3157 [inline] con_put_char+0xaf/0xc0 drivers/tty/vt/vt.c:3156 tty_put_char+0xac/0x130 drivers/tty/tty_io.c:2892 do_output_char+0x1c9/0x700 drivers/tty/n_tty.c:486 __process_echoes+0x287/0x790 drivers/tty/n_tty.c:737 commit_echoes+0x10e/0x160 drivers/tty/n_tty.c:792 n_tty_receive_char_fast drivers/tty/n_tty.c:1447 [inline] n_tty_receive_buf_fast drivers/tty/n_tty.c:1607 [inline] __receive_buf drivers/tty/n_tty.c:1642 [inline] n_tty_receive_buf_common+0x1363/0x2db0 drivers/tty/n_tty.c:1740 n_tty_receive_buf2+0xf/0x20 drivers/tty/n_tty.c:1775 tty_ldisc_receive_buf+0x86/0x1b0 drivers/tty/tty_buffer.c:456 tty_port_default_receive_buf+0x5f/0x90 drivers/tty/tty_port.c:38 receive_buf drivers/tty/tty_buffer.c:476 [inline] flush_to_ldisc+0x1aa/0x3a0 drivers/tty/tty_buffer.c:528 process_one_work+0x7b9/0x15a0 kernel/workqueue.c:2153 worker_thread+0x85/0xb60 kernel/workqueue.c:2296 kthread+0x347/0x410 kernel/kthread.c:259 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415