syzbot


INFO: task hung in commit_echoes

Status: public: reported C repro on 2019/04/11 08:44
Reported-by: syzbot+94592dd3bbe74e2cba7f@syzkaller.appspotmail.com
First crash: 2399d, last: 2328d
Similar bugs (5)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: task hung in commit_echoes serial 1 2335d 2331d 8/28 fixed on 2018/07/09 18:05
upstream INFO: task hung in commit_echoes (2) serial 3 1518d 1556d 0/28 auto-closed as invalid on 2020/12/23 20:14
upstream INFO: task hung in commit_echoes (4) serial 1 551d 551d 0/28 auto-obsoleted due to no activity on 2023/07/19 08:09
linux-4.19 INFO: task hung in commit_echoes 1 1788d 1788d 0/1 auto-closed as invalid on 2020/04/28 11:37
upstream INFO: task hung in commit_echoes (3) serial 3 838d 933d 0/28 auto-obsoleted due to no activity on 2022/11/03 18:56

Sample crash report:
INFO: task kworker/u4:2:3780 blocked for more than 120 seconds.
      Not tainted 4.9.96-g71fce1e #10
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
kworker/u4:2    D28600  3780      2 0x00000000
Workqueue: events_unbound flush_to_ldisc
 ffff8801d8139800 0000000000000000 ffff8801cac21f80 ffff8801d00b4800
 ffff8801db221b98 ffff8801d56af8c8 ffffffff839e240d ffff8801d813a0c8
 ffffed003b027418 ffff8801d8139800 00fffc0000000000 ffff8801db222468
Call Trace:
 [<ffffffff839e3a0f>] schedule+0x7f/0x1b0 kernel/sched/core.c:3557
 [<ffffffff839e4393>] schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:3590
 [<ffffffff839e8816>] __mutex_lock_common kernel/locking/mutex.c:582 [inline]
 [<ffffffff839e8816>] mutex_lock_nested+0x326/0x870 kernel/locking/mutex.c:621
 [<ffffffff82119f60>] commit_echoes+0x120/0x1b0 drivers/tty/n_tty.c:764
 [<ffffffff82122bb8>] n_tty_receive_char_fast drivers/tty/n_tty.c:1418 [inline]
 [<ffffffff82122bb8>] n_tty_receive_buf_fast drivers/tty/n_tty.c:1578 [inline]
 [<ffffffff82122bb8>] __receive_buf drivers/tty/n_tty.c:1613 [inline]
 [<ffffffff82122bb8>] n_tty_receive_buf_common+0x1878/0x2300 drivers/tty/n_tty.c:1711
 [<ffffffff82123673>] n_tty_receive_buf2+0x33/0x40 drivers/tty/n_tty.c:1746
 [<ffffffff8212917f>] tty_ldisc_receive_buf+0xaf/0x190 drivers/tty/tty_buffer.c:455
 [<ffffffff8212a183>] receive_buf drivers/tty/tty_buffer.c:474 [inline]
 [<ffffffff8212a183>] flush_to_ldisc+0x253/0x370 drivers/tty/tty_buffer.c:533
 [<ffffffff8118ae31>] process_one_work+0x7e1/0x1500 kernel/workqueue.c:2092
 [<ffffffff8118bc26>] worker_thread+0xd6/0x10a0 kernel/workqueue.c:2226
 [<ffffffff8119ad5d>] kthread+0x26d/0x300 kernel/kthread.c:211
 [<ffffffff839f34dc>] ret_from_fork+0x5c/0x70 arch/x86/entry/entry_64.S:373

Showing all locks held in the system:
2 locks held by khungtaskd/518:
 #0:  (rcu_read_lock){......}, at: [<ffffffff813646ec>] check_hung_uninterruptible_tasks kernel/hung_task.c:168 [inline]
 #0:  (rcu_read_lock){......}, at: [<ffffffff813646ec>] watchdog+0x11c/0xa20 kernel/hung_task.c:239
 #1:  (tasklist_lock){.+.+..}, at: [<ffffffff81423ce0>] debug_show_all_locks+0x79/0x218 kernel/locking/lockdep.c:4336
2 locks held by getty/3631:
 #0:  (&tty->ldisc_sem){++++++}, at: [<ffffffff839f14b2>] ldsem_down_read+0x32/0x40 drivers/tty/tty_ldsem.c:367
 #1:  (&ldata->atomic_read_lock){+.+...}, at: [<ffffffff8211c792>] n_tty_read+0x202/0x16e0 drivers/tty/n_tty.c:2133
6 locks held by kworker/u4:2/3780:
 #0:  ("events_unbound"){.+.+.+}, at: [<ffffffff8118ad3e>] work_static include/linux/workqueue.h:186 [inline]
 #0:  ("events_unbound"){.+.+.+}, at: [<ffffffff8118ad3e>] set_work_data kernel/workqueue.c:617 [inline]
 #0:  ("events_unbound"){.+.+.+}, at: [<ffffffff8118ad3e>] set_work_pool_and_clear_pending kernel/workqueue.c:644 [inline]
 #0:  ("events_unbound"){.+.+.+}, at: [<ffffffff8118ad3e>] process_one_work+0x6ee/0x1500 kernel/workqueue.c:2085
 #1:  ((&buf->work)){+.+...}, at: [<ffffffff8118ad78>] process_one_work+0x728/0x1500 kernel/workqueue.c:2089
 #2:  (&tty->ldisc_sem){++++++}, at: [<ffffffff82127940>] tty_ldisc_ref+0x20/0x80 drivers/tty/tty_ldisc.c:297
 #3:  (&port->buf.lock/1){+.+...}, at: [<ffffffff82129fb6>] flush_to_ldisc+0x86/0x370 drivers/tty/tty_buffer.c:505
 #4:  (&o_tty->termios_rwsem/1){++++..}, at: [<ffffffff821213cb>] n_tty_receive_buf_common+0x8b/0x2300 drivers/tty/n_tty.c:1674
 #5:  (&ldata->output_lock){+.+...}, at: [<ffffffff82119f60>] commit_echoes+0x120/0x1b0 drivers/tty/n_tty.c:764
6 locks held by kworker/u4:6/5106:
 #0:  ("events_unbound"){.+.+.+}, at: [<ffffffff8118ad3e>] work_static include/linux/workqueue.h:186 [inline]
 #0:  ("events_unbound"){.+.+.+}, at: [<ffffffff8118ad3e>] set_work_data kernel/workqueue.c:617 [inline]
 #0:  ("events_unbound"){.+.+.+}, at: [<ffffffff8118ad3e>] set_work_pool_and_clear_pending kernel/workqueue.c:644 [inline]
 #0:  ("events_unbound"){.+.+.+}, at: [<ffffffff8118ad3e>] process_one_work+0x6ee/0x1500 kernel/workqueue.c:2085
 #1:  ((&buf->work)){+.+...}, at: [<ffffffff8118ad78>] process_one_work+0x728/0x1500 kernel/workqueue.c:2089
 #2:  (&tty->ldisc_sem){++++++}, at: [<ffffffff82127940>] tty_ldisc_ref+0x20/0x80 drivers/tty/tty_ldisc.c:297
 #3:  (&port->buf.lock/1){+.+...}, at: [<ffffffff82129fb6>] flush_to_ldisc+0x86/0x370 drivers/tty/tty_buffer.c:505
 #4:  (&o_tty->termios_rwsem/1){++++..}, at: [<ffffffff821213cb>] n_tty_receive_buf_common+0x8b/0x2300 drivers/tty/n_tty.c:1674
 #5:  (&ldata->output_lock){+.+...}, at: [<ffffffff82119f60>] commit_echoes+0x120/0x1b0 drivers/tty/n_tty.c:764
6 locks held by kworker/u4:7/5390:
 #0:  ("events_unbound"){.+.+.+}, at: [<ffffffff8118ad3e>] work_static include/linux/workqueue.h:186 [inline]
 #0:  ("events_unbound"){.+.+.+}, at: [<ffffffff8118ad3e>] set_work_data kernel/workqueue.c:617 [inline]
 #0:  ("events_unbound"){.+.+.+}, at: [<ffffffff8118ad3e>] set_work_pool_and_clear_pending kernel/workqueue.c:644 [inline]
 #0:  ("events_unbound"){.+.+.+}, at: [<ffffffff8118ad3e>] process_one_work+0x6ee/0x1500 kernel/workqueue.c:2085
 #1:  ((&buf->work)){+.+...}, at: [<ffffffff8118ad78>] process_one_work+0x728/0x1500 kernel/workqueue.c:2089
 #2:  (&tty->ldisc_sem){++++++}, at: [<ffffffff82127940>] tty_ldisc_ref+0x20/0x80 drivers/tty/tty_ldisc.c:297
 #3:  (&port->buf.lock/1){+.+...}, at: [<ffffffff82129fb6>] flush_to_ldisc+0x86/0x370 drivers/tty/tty_buffer.c:505
 #4:  (&o_tty->termios_rwsem/1){++++..}, at: [<ffffffff821213cb>] n_tty_receive_buf_common+0x8b/0x2300 drivers/tty/n_tty.c:1674
 #5:  (&ldata->output_lock){+.+...}, at: [<ffffffff82119f60>] commit_echoes+0x120/0x1b0 drivers/tty/n_tty.c:764
2 locks held by syz-executor226/32325:
 #0:  (&tty->ldisc_sem){++++++}, at: [<ffffffff839f14b2>] ldsem_down_read+0x32/0x40 drivers/tty/tty_ldsem.c:367
 #1:  (&tty->atomic_write_lock){+.+.+.}, at: [<ffffffff8210a8a1>] tty_write_lock+0x21/0x60 drivers/tty/tty_io.c:1107
2 locks held by syz-executor226/32324:
 #0:  (&tty->ldisc_sem){++++++}, at: [<ffffffff839f14b2>] ldsem_down_read+0x32/0x40 drivers/tty/tty_ldsem.c:367
 #1:  (&tty->atomic_write_lock){+.+.+.}, at: [<ffffffff8210a8a1>] tty_write_lock+0x21/0x60 drivers/tty/tty_io.c:1107
2 locks held by syz-executor226/32330:
 #0:  (&tty->ldisc_sem){++++++}, at: [<ffffffff839f14b2>] ldsem_down_read+0x32/0x40 drivers/tty/tty_ldsem.c:367
 #1:  (&tty->atomic_write_lock){+.+.+.}, at: [<ffffffff8210a8a1>] tty_write_lock+0x21/0x60 drivers/tty/tty_io.c:1107

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

NMI backtrace for cpu 0
CPU: 0 PID: 518 Comm: khungtaskd Not tainted 4.9.96-g71fce1e #10
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
 ffff8801d860fd08 ffffffff81eb0b69 0000000000000000 0000000000000000
 0000000000000000 0000000000000001 ffffffff810b7d60 ffff8801d860fd40
 ffffffff81ebbe97 0000000000000000 0000000000000000 0000000000000003
Call Trace:
 [<ffffffff81eb0b69>] __dump_stack lib/dump_stack.c:15 [inline]
 [<ffffffff81eb0b69>] dump_stack+0xc1/0x128 lib/dump_stack.c:51
 [<ffffffff81ebbe97>] nmi_cpu_backtrace.cold.2+0x48/0x87 lib/nmi_backtrace.c:99
 [<ffffffff81ebbe2a>] nmi_trigger_cpumask_backtrace+0x12a/0x14f lib/nmi_backtrace.c:60
 [<ffffffff810b7e64>] arch_trigger_cpumask_backtrace+0x14/0x20 arch/x86/kernel/apic/hw_nmi.c:37
 [<ffffffff81364c84>] trigger_all_cpu_backtrace include/linux/nmi.h:58 [inline]
 [<ffffffff81364c84>] check_hung_task kernel/hung_task.c:125 [inline]
 [<ffffffff81364c84>] check_hung_uninterruptible_tasks kernel/hung_task.c:182 [inline]
 [<ffffffff81364c84>] watchdog+0x6b4/0xa20 kernel/hung_task.c:239
 [<ffffffff8119ad5d>] kthread+0x26d/0x300 kernel/kthread.c:211
 [<ffffffff839f34dc>] ret_from_fork+0x5c/0x70 arch/x86/entry/entry_64.S:373
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 30775 Comm: syz-executor226 Not tainted 4.9.96-g71fce1e #10
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
task: ffff8801c42f6000 task.stack: ffff8801c1f60000
RIP: 0010:[<ffffffff82118620>] c [<ffffffff82118620>] echo_buf drivers/tty/n_tty.c:146 [inline]
RIP: 0010:[<ffffffff82118620>] c [<ffffffff82118620>] __process_echoes+0x5b0/0x780 drivers/tty/n_tty.c:734
RSP: 0018:ffff8801c1f67980  EFLAGS: 00000293
RAX: ffff8801c42f6000 RBX: ffffc900003bb000 RCX: 0000000000000001
RDX: 0000000000000000 RSI: ffffffff821186be RDI: ffffc900003bd24a
RBP: ffff8801c1f679e8 R08: ffff8801c42f6938 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000188395fe9
R13: 0000000000001f7a R14: dffffc0000000000 R15: 0000000188395feb
FS:  00007fdc03009700(0000) GS:ffff8801db300000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000004c26e4 CR3: 00000001da38d000 CR4: 00000000001606f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Stack:
 ffff8801c1f679c0c 0000000000000000c ffffc900003bd278c ffffed003868ec25c
 ffff8801c347612cc ffffc900003bb020c 0000000000001700c ffff8801c3475d80c
 ffffc900003bd300c ffffc900003bb000c dffffc0000000000c ffffc900003bb020c
Call Trace:
 [<ffffffff82122074>] flush_echoes drivers/tty/n_tty.c:801 [inline]
 [<ffffffff82122074>] __receive_buf drivers/tty/n_tty.c:1617 [inline]
 [<ffffffff82122074>] n_tty_receive_buf_common+0xd34/0x2300 drivers/tty/n_tty.c:1711
 [<ffffffff821236b0>] n_tty_receive_buf+0x30/0x40 drivers/tty/n_tty.c:1740
 [<ffffffff82113aef>] tiocsti drivers/tty/tty_io.c:2314 [inline]
 [<ffffffff82113aef>] tty_ioctl+0xc8f/0x2270 drivers/tty/tty_io.c:2905
 [<ffffffff815b051c>] vfs_ioctl fs/ioctl.c:43 [inline]
 [<ffffffff815b051c>] file_ioctl fs/ioctl.c:493 [inline]
 [<ffffffff815b051c>] do_vfs_ioctl+0x1ac/0x11a0 fs/ioctl.c:677
 [<ffffffff815b159f>] SYSC_ioctl fs/ioctl.c:694 [inline]
 [<ffffffff815b159f>] SyS_ioctl+0x8f/0xc0 fs/ioctl.c:685
 [<ffffffff81006316>] do_syscall_64+0x1a6/0x490 arch/x86/entry/common.c:282
 [<ffffffff839f3313>] entry_SYSCALL_64_after_swapgs+0x5d/0xdb
Code: c00 c00 c00 c00 cfc cff cdf c48 cc1 cea c03 c80 c3c c02 c00 c0f c85 c47 c01 c00 c00 c8b c4d ccc c4c c8b c6b c20 c29 c4d cc8 c49 cbe c00 c00 c00 c00 c00 cfc cff cdf ceb c03 c<4d> c89 cfc ce8 cd8 c43 c24 cff c4c c89 ce8 c4c c29 ce0 c48 c3d cdf c0e c00 c00 c0f c

Crashes (44):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/04/27 20:15 https://android.googlesource.com/kernel/common android-4.9 71fce1edd26d 7785e404 .config console log report syz C ci-android-49-kasan-gce-root
2018/07/08 04:26 https://android.googlesource.com/kernel/common android-4.9 03c70feafdb2 c9a7a4dc .config console log report ci-android-49-kasan-gce-root
2018/07/05 20:50 https://android.googlesource.com/kernel/common android-4.9 03c70feafdb2 d3b2a0e2 .config console log report ci-android-49-kasan-gce-root
2018/07/05 00:02 https://android.googlesource.com/kernel/common android-4.9 03c70feafdb2 e1b966c6 .config console log report ci-android-49-kasan-gce-root
2018/07/04 00:19 https://android.googlesource.com/kernel/common android-4.9 03c70feafdb2 317fc8ea .config console log report ci-android-49-kasan-gce-root
2018/07/01 17:46 https://android.googlesource.com/kernel/common android-4.9 00a0bcbfcfb6 dba0b50e .config console log report ci-android-49-kasan-gce-root
2018/06/28 10:19 https://android.googlesource.com/kernel/common android-4.9 00a0bcbfcfb6 dba0b50e .config console log report ci-android-49-kasan-gce-root
2018/06/27 19:29 https://android.googlesource.com/kernel/common android-4.9 00a0bcbfcfb6 43e60f7e .config console log report ci-android-49-kasan-gce-root
2018/06/26 19:50 https://android.googlesource.com/kernel/common android-4.9 00a0bcbfcfb6 b0294c53 .config console log report ci-android-49-kasan-gce-root
2018/06/26 05:55 https://android.googlesource.com/kernel/common android-4.9 7143cbff9ce1 2064fc5c .config console log report ci-android-49-kasan-gce-root
2018/06/26 05:55 https://android.googlesource.com/kernel/common android-4.9 7143cbff9ce1 2064fc5c .config console log report ci-android-49-kasan-gce-root
2018/06/26 04:53 https://android.googlesource.com/kernel/common android-4.9 7143cbff9ce1 2064fc5c .config console log report ci-android-49-kasan-gce-root
2018/06/25 22:12 https://android.googlesource.com/kernel/common android-4.9 7cecc756ceae 2064fc5c .config console log report ci-android-49-kasan-gce-root
2018/06/24 04:25 https://android.googlesource.com/kernel/common android-4.9 7cecc756ceae 2064fc5c .config console log report ci-android-49-kasan-gce-root
2018/06/24 00:18 https://android.googlesource.com/kernel/common android-4.9 7cecc756ceae 2064fc5c .config console log report ci-android-49-kasan-gce-root
2018/06/22 17:06 https://android.googlesource.com/kernel/common android-4.9 e7fd5b18769d c97f0d7a .config console log report ci-android-49-kasan-gce-root
2018/06/21 14:26 https://android.googlesource.com/kernel/common android-4.9 e1815b3eba5b 095ef806 .config console log report ci-android-49-kasan-gce-root
2018/06/11 15:24 https://android.googlesource.com/kernel/common android-4.9 db2c520bb56b ae8bdb50 .config console log report ci-android-49-kasan-gce-root
2018/06/10 00:41 https://android.googlesource.com/kernel/common android-4.9 db2c520bb56b 866118af .config console log report ci-android-49-kasan-gce-root
2018/06/07 18:31 https://android.googlesource.com/kernel/common android-4.9 42a730adb6e2 645e75f8 .config console log report ci-android-49-kasan-gce-root
2018/06/04 13:09 https://android.googlesource.com/kernel/common android-4.9 d7e64f8022e4 6cbe7c26 .config console log report ci-android-49-kasan-gce-root
2018/05/25 18:30 https://android.googlesource.com/kernel/common android-4.9 70c65e471b71 f48c20b8 .config console log report ci-android-49-kasan-gce-root
2018/05/24 01:20 https://android.googlesource.com/kernel/common android-4.9 c5aceac71b68 f48c20b8 .config console log report ci-android-49-kasan-gce-root
2018/05/21 20:08 https://android.googlesource.com/kernel/common android-4.9 aef17a58e8ca f48c20b8 .config console log report ci-android-49-kasan-gce-root
2018/05/20 07:12 https://android.googlesource.com/kernel/common android-4.9 aef17a58e8ca f48c20b8 .config console log report ci-android-49-kasan-gce-root
2018/05/19 09:52 https://android.googlesource.com/kernel/common android-4.9 e14d1a35ebd9 849705db .config console log report ci-android-49-kasan-gce-root
2018/05/18 16:46 https://android.googlesource.com/kernel/common android-4.9 73fdfa38c59d c992b767 .config console log report ci-android-49-kasan-gce-root
2018/05/18 03:22 https://android.googlesource.com/kernel/common android-4.9 73fdfa38c59d 738d58ad .config console log report ci-android-49-kasan-gce-root
2018/05/16 00:12 https://android.googlesource.com/kernel/common android-4.9 74fa0af47306 68ce85f1 .config console log report ci-android-49-kasan-gce-root
2018/05/12 09:34 https://android.googlesource.com/kernel/common android-4.9 c2f9bce9fee8 e726f42b .config console log report ci-android-49-kasan-gce-root
2018/05/10 22:58 https://android.googlesource.com/kernel/common android-4.9 c462abbf779b 12c7428a .config console log report ci-android-49-kasan-gce-root
2018/05/10 02:59 https://android.googlesource.com/kernel/common android-4.9 c462abbf779b 12c7428a .config console log report ci-android-49-kasan-gce-root
2018/05/09 22:57 https://android.googlesource.com/kernel/common android-4.9 c462abbf779b 12c7428a .config console log report ci-android-49-kasan-gce-root
2018/05/08 01:50 https://android.googlesource.com/kernel/common android-4.9 a03d0bbacd41 9e0846e8 .config console log report ci-android-49-kasan-gce-root
2018/05/07 17:24 https://android.googlesource.com/kernel/common android-4.9 63a812bb84e4 9e0846e8 .config console log report ci-android-49-kasan-gce-root
2018/05/07 05:11 https://android.googlesource.com/kernel/common android-4.9 63a812bb84e4 a211da1a .config console log report ci-android-49-kasan-gce-root
2018/05/06 23:29 https://android.googlesource.com/kernel/common android-4.9 63a812bb84e4 a211da1a .config console log report ci-android-49-kasan-gce-root
2018/05/06 04:23 https://android.googlesource.com/kernel/common android-4.9 63a812bb84e4 78b251cb .config console log report ci-android-49-kasan-gce-root
2018/05/05 04:26 https://android.googlesource.com/kernel/common android-4.9 f5a861c30cb7 9ce14f4b .config console log report ci-android-49-kasan-gce-root
2018/05/05 01:21 https://android.googlesource.com/kernel/common android-4.9 f5a861c30cb7 9ce14f4b .config console log report ci-android-49-kasan-gce-root
2018/05/05 00:36 https://android.googlesource.com/kernel/common android-4.9 f5a861c30cb7 9ce14f4b .config console log report ci-android-49-kasan-gce-root
2018/05/02 07:19 https://android.googlesource.com/kernel/common android-4.9 1321d4226176 d5b114b4 .config console log report ci-android-49-kasan-gce-root
2018/04/28 10:50 https://android.googlesource.com/kernel/common android-4.9 71fce1edd26d d5a5d045 .config console log report ci-android-49-kasan-gce-root
2018/04/27 17:58 https://android.googlesource.com/kernel/common android-4.9 71fce1edd26d 7785e404 .config console log report ci-android-49-kasan-gce-root
* Struck through repros no longer work on HEAD.