syzbot


INFO: task hung in blkdev_issue_flush

Status: auto-closed as invalid on 2019/02/22 14:39
First crash: 2241d, last: 2105d
Similar bugs (5)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-44 INFO: task hung in blkdev_issue_flush 7 2111d 2222d 0/2 auto-closed as invalid on 2019/02/22 12:34
linux-4.19 INFO: task hung in blkdev_issue_flush C done 2 1752d 1752d 1/1 fixed on 2019/12/02 18:09
android-414 INFO: task hung in blkdev_issue_flush 1 1704d 1704d 0/1 auto-closed as invalid on 2019/12/17 04:03
upstream INFO: task hung in blkdev_issue_flush block 12 1890d 2193d 0/26 closed as dup on 2019/02/16 05:19
upstream INFO: task hung in blkdev_issue_flush (2) block C done error 3 1593d 1751d 15/26 fixed on 2020/06/30 18:57

Sample crash report:
INFO: task loop0:9814 blocked for more than 140 seconds.
      Not tainted 4.9.112-g9e79039 #7
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
loop0           D28296  9814      2 0x00000000
 ffff8801a20e0000 0000000000000000 ffff8801b4491f80 ffff8801cdb6b000
 ffff8801db321c18 ffff8801c8df7730 ffffffff839e907d 0000000041b58ab3
 ffffffff843c36c0 ffffffff812361d0 00000002cc819f80 ffff8801db3224e8
Call Trace:
 [<ffffffff839ea67f>] schedule+0x7f/0x1b0 kernel/sched/core.c:3557
 [<ffffffff839f6a91>] schedule_timeout+0x861/0xf70 kernel/time/timer.c:1768
 [<ffffffff839e885a>] io_schedule_timeout+0x1ba/0x390 kernel/sched/core.c:5180
 [<ffffffff839ebfb3>] do_wait_for_common kernel/sched/completion.c:75 [inline]
 [<ffffffff839ebfb3>] __wait_for_common kernel/sched/completion.c:93 [inline]
 [<ffffffff839ebfb3>] wait_for_common_io kernel/sched/completion.c:107 [inline]
 [<ffffffff839ebfb3>] wait_for_completion_io+0x203/0x2e0 kernel/sched/completion.c:155
 [<ffffffff81dfa9e2>] submit_bio_wait+0x112/0x180 block/bio.c:885
 [<ffffffff81e2d132>] blkdev_issue_flush+0x152/0x220 block/blk-flush.c:518
 [<ffffffff8162f1e5>] blkdev_fsync+0x85/0xb0 fs/block_dev.c:378
 [<ffffffff8161a7ec>] vfs_fsync_range+0x10c/0x260 fs/sync.c:195
 [<ffffffff8161a969>] vfs_fsync+0x29/0x30 fs/sync.c:209
 [<ffffffff825cdee0>] lo_req_flush drivers/block/loop.c:441 [inline]
 [<ffffffff825cdee0>] do_req_filebacked drivers/block/loop.c:529 [inline]
 [<ffffffff825cdee0>] loop_handle_cmd drivers/block/loop.c:1698 [inline]
 [<ffffffff825cdee0>] loop_queue_work+0x890/0x2320 drivers/block/loop.c:1710
 [<ffffffff8119d499>] kthread_worker_fn+0x249/0x6b0 kernel/kthread.c:627
 [<ffffffff8119d0bd>] kthread+0x26d/0x300 kernel/kthread.c:211
 [<ffffffff839fa11c>] ret_from_fork+0x5c/0x70 arch/x86/entry/entry_64.S:373

Showing all locks held in the system:
2 locks held by khungtaskd/519:
 #0:  (rcu_read_lock){......}, at: [<ffffffff8136675c>] check_hung_uninterruptible_tasks kernel/hung_task.c:168 [inline]
 #0:  (rcu_read_lock){......}, at: [<ffffffff8136675c>] watchdog+0x11c/0xa20 kernel/hung_task.c:239
 #1:  (tasklist_lock){.+.+..}, at: [<ffffffff81425de7>] debug_show_all_locks+0x79/0x218 kernel/locking/lockdep.c:4336
2 locks held by rs:main Q:Reg/3676:
 #0:  (&f->f_pos_lock){+.+.+.}, at: [<ffffffff815d818c>] __fdget_pos+0xac/0xd0 fs/file.c:781
 #1:  (sb_writers#3){.+.+.+}, at: [<ffffffff81572cce>] file_start_write include/linux/fs.h:2640 [inline]
 #1:  (sb_writers#3){.+.+.+}, at: [<ffffffff81572cce>] vfs_write+0x3ae/0x530 fs/read_write.c:556
2 locks held by getty/3774:
 #0:  (&tty->ldisc_sem){++++++}, at: [<ffffffff839f8122>] ldsem_down_read+0x32/0x40 drivers/tty/tty_ldsem.c:367
 #1:  (&ldata->atomic_read_lock){+.+...}, at: [<ffffffff8211edc2>] n_tty_read+0x202/0x16e0 drivers/tty/n_tty.c:2142

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

NMI backtrace for cpu 1
CPU: 1 PID: 519 Comm: khungtaskd Not tainted 4.9.112-g9e79039 #7
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
 ffff8801d858fd08 ffffffff81eb3249 0000000000000000 0000000000000001
 0000000000000001 0000000000000001 ffffffff810b9bd0 ffff8801d858fd40
 ffffffff81ebe547 0000000000000001 0000000000000000 0000000000000002
Call Trace:
 [<ffffffff81eb3249>] __dump_stack lib/dump_stack.c:15 [inline]
 [<ffffffff81eb3249>] dump_stack+0xc1/0x128 lib/dump_stack.c:51
 [<ffffffff81ebe547>] nmi_cpu_backtrace.cold.2+0x48/0x87 lib/nmi_backtrace.c:99
 [<ffffffff81ebe4da>] nmi_trigger_cpumask_backtrace+0x12a/0x14f lib/nmi_backtrace.c:60
 [<ffffffff810b9cd4>] arch_trigger_cpumask_backtrace+0x14/0x20 arch/x86/kernel/apic/hw_nmi.c:37
 [<ffffffff81366cf4>] trigger_all_cpu_backtrace include/linux/nmi.h:58 [inline]
 [<ffffffff81366cf4>] check_hung_task kernel/hung_task.c:125 [inline]
 [<ffffffff81366cf4>] check_hung_uninterruptible_tasks kernel/hung_task.c:182 [inline]
 [<ffffffff81366cf4>] watchdog+0x6b4/0xa20 kernel/hung_task.c:239
 [<ffffffff8119d0bd>] kthread+0x26d/0x300 kernel/kthread.c:211
 [<ffffffff839fa11c>] ret_from_fork+0x5c/0x70 arch/x86/entry/entry_64.S:373
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0 skipped: idling at pc 0xffffffff839f8b86

Crashes (63):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/07/14 03:09 https://android.googlesource.com/kernel/common android-4.9 9e7903954483 92a49505 .config console log report ci-android-49-kasan-gce-root
2018/07/13 18:32 https://android.googlesource.com/kernel/common android-4.9 9e7903954483 92a49505 .config console log report ci-android-49-kasan-gce
2018/07/05 12:21 https://android.googlesource.com/kernel/common android-4.9 03c70feafdb2 f525fd72 .config console log report ci-android-49-kasan-gce-root
2018/06/26 09:38 https://android.googlesource.com/kernel/common android-4.9 7143cbff9ce1 2064fc5c .config console log report ci-android-49-kasan-gce
2018/06/19 10:31 https://android.googlesource.com/kernel/common android-4.9 e1815b3eba5b 45c54f75 .config console log report ci-android-49-kasan-gce
2018/06/16 19:42 https://android.googlesource.com/kernel/common android-4.9 a4230beab30a 27c5f59f .config console log report ci-android-49-kasan-gce
2018/06/15 11:25 https://android.googlesource.com/kernel/common android-4.9 b7d377b4640b 27c5f59f .config console log report ci-android-49-kasan-gce
2018/06/15 04:08 https://android.googlesource.com/kernel/common android-4.9 b7d377b4640b 27c5f59f .config console log report ci-android-49-kasan-gce-root
2018/06/14 16:25 https://android.googlesource.com/kernel/common android-4.9 b7d377b4640b 27c5f59f .config console log report ci-android-49-kasan-gce
2018/06/13 07:30 https://android.googlesource.com/kernel/common android-4.9 db2c520bb56b 27c5f59f .config console log report ci-android-49-kasan-gce
2018/06/13 03:18 https://android.googlesource.com/kernel/common android-4.9 db2c520bb56b 6dcbc435 .config console log report ci-android-49-kasan-gce
2018/06/12 08:46 https://android.googlesource.com/kernel/common android-4.9 db2c520bb56b 112eec79 .config console log report ci-android-49-kasan-gce
2018/06/11 03:14 https://android.googlesource.com/kernel/common android-4.9 db2c520bb56b 866118af .config console log report ci-android-49-kasan-gce
2018/06/09 18:17 https://android.googlesource.com/kernel/common android-4.9 db2c520bb56b 866118af .config console log report ci-android-49-kasan-gce
2018/06/09 09:26 https://android.googlesource.com/kernel/common android-4.9 db2c520bb56b 866118af .config console log report ci-android-49-kasan-gce
2018/06/05 12:08 https://android.googlesource.com/kernel/common android-4.9 dbe0f6122097 a316ff92 .config console log report ci-android-49-kasan-gce
2018/06/05 10:33 https://android.googlesource.com/kernel/common android-4.9 dbe0f6122097 a316ff92 .config console log report ci-android-49-kasan-gce-root
2018/05/22 07:24 https://android.googlesource.com/kernel/common android-4.9 aef17a58e8ca f48c20b8 .config console log report ci-android-49-kasan-gce
2018/05/21 08:26 https://android.googlesource.com/kernel/common android-4.9 aef17a58e8ca f48c20b8 .config console log report ci-android-49-kasan-gce
2018/05/06 21:23 https://android.googlesource.com/kernel/common android-4.9 63a812bb84e4 6c18ddb0 .config console log report ci-android-49-kasan-gce
2018/04/23 07:45 https://android.googlesource.com/kernel/common android-4.9 ee0bcd679075 d23fcf6c .config console log report ci-android-49-kasan-gce
2018/04/17 02:01 https://android.googlesource.com/kernel/common android-4.9 8683408f8e81 b80fd3b5 .config console log report ci-android-49-kasan-gce
2018/04/16 12:43 https://android.googlesource.com/kernel/common android-4.9 8683408f8e81 802ac912 .config console log report ci-android-49-kasan-gce
2018/03/23 02:46 https://android.googlesource.com/kernel/common android-4.9 f361eb39cdbf 2e9d9054 .config console log report ci-android-49-kasan-gce
2018/03/22 22:04 https://android.googlesource.com/kernel/common android-4.9 960923fdc278 2e9d9054 .config console log report ci-android-49-kasan-gce
2018/03/22 08:50 https://android.googlesource.com/kernel/common android-4.9 71df7bbae4d8 95c88d7a .config console log report ci-android-49-kasan-gce
2018/02/27 13:56 https://android.googlesource.com/kernel/common android-4.9 e7f51a5b0be6 05b5a32c .config console log report ci-android-49-kasan-gce
2018/07/07 23:23 https://android.googlesource.com/kernel/common android-4.9 03c70feafdb2 ab89aea9 .config console log report ci-android-49-kasan-gce-386
2018/07/04 21:45 https://android.googlesource.com/kernel/common android-4.9 03c70feafdb2 e1b966c6 .config console log report ci-android-49-kasan-gce-386
2018/06/29 20:44 https://android.googlesource.com/kernel/common android-4.9 00a0bcbfcfb6 dba0b50e .config console log report ci-android-49-kasan-gce-386
2018/06/01 18:48 https://android.googlesource.com/kernel/common android-4.9 d7e64f8022e4 2f93b54f .config console log report ci-android-49-kasan-gce-386
2018/04/26 09:55 https://android.googlesource.com/kernel/common android-4.9 132f097f6547 73417389 .config console log report ci-android-49-kasan-gce-386
2018/04/21 01:59 https://android.googlesource.com/kernel/common android-4.9 13cc54013b24 ca03d688 .config console log report ci-android-49-kasan-gce-386
2018/04/12 22:50 https://android.googlesource.com/kernel/common android-4.9 f6bec4e8c771 eb2295de .config console log report ci-android-49-kasan-gce-386
2018/04/07 08:51 https://android.googlesource.com/kernel/common android-4.9 4fb542f2aa14 d613535f .config console log report ci-android-49-kasan-gce-386
2018/04/04 14:50 https://android.googlesource.com/kernel/common android-4.9 7cd956196346 676bd07e .config console log report ci-android-49-kasan-gce-386
2018/03/23 22:08 https://android.googlesource.com/kernel/common android-4.9 ebc27895e954 2e9d9054 .config console log report ci-android-49-kasan-gce-386
2018/03/23 20:25 https://android.googlesource.com/kernel/common android-4.9 ebc27895e954 2e9d9054 .config console log report ci-android-49-kasan-gce-386
2018/03/23 13:06 https://android.googlesource.com/kernel/common android-4.9 f361eb39cdbf 2e9d9054 .config console log report ci-android-49-kasan-gce-386
2018/03/22 20:36 https://android.googlesource.com/kernel/common android-4.9 960923fdc278 2e9d9054 .config console log report ci-android-49-kasan-gce-386
2018/03/20 04:16 https://android.googlesource.com/kernel/common android-4.9 71df7bbae4d8 7e7d7ed2 .config console log report ci-android-49-kasan-gce-386
2018/03/19 22:15 https://android.googlesource.com/kernel/common android-4.9 bb52bba67e35 7e7d7ed2 .config console log report ci-android-49-kasan-gce-386
2018/03/19 15:00 https://android.googlesource.com/kernel/common android-4.9 bb52bba67e35 7e7d7ed2 .config console log report ci-android-49-kasan-gce-386
* Struck through repros no longer work on HEAD.