syzbot


INFO: task hung in iterate_bdevs

Status: auto-closed as invalid on 2019/02/22 12:59
First crash: 2563d, last: 2425d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: task hung in iterate_bdevs fs 104 2433d 2553d 0/28 closed as dup on 2017/12/12 16:45
android-44 INFO: task hung in iterate_bdevs 21 2416d 2535d 0/2 auto-closed as invalid on 2019/02/22 13:29

Sample crash report:
Buffer I/O error on dev loop0, logical block 7, lost async page write
Buffer I/O error on dev loop0, logical block 8, lost async page write
Buffer I/O error on dev loop0, logical block 9, lost async page write
buffer_io_error: 119 callbacks suppressed
Buffer I/O error on dev loop0, logical block 8176, async page read
INFO: task syz-executor2:18544 blocked for more than 120 seconds.
      Not tainted 4.9.94-g8683408 #3
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syz-executor2   D28264 18544   3841 0x00000004
 ffff8801d7674800 ffff8801b9ccd500 ffff8801b98b8540 ffff8801a1610000
 ffff8801db221b98 ffff88019cbcf940 ffffffff838c040d 1ffff10033979f1c
 ffffffff85351d98 0000000041b58ab3 00ffffff841a49d8 ffff8801db222468
Call Trace:
 [<ffffffff838c1a0f>] schedule+0x7f/0x1b0 kernel/sched/core.c:3557
 [<ffffffff838cde21>] schedule_timeout+0x861/0xf70 kernel/time/timer.c:1768
 [<ffffffff838bfbea>] io_schedule_timeout+0x1ba/0x390 kernel/sched/core.c:5180
 [<ffffffff838c2e59>] io_schedule include/linux/sched.h:460 [inline]
 [<ffffffff838c2e59>] bit_wait_io+0x19/0xa0 kernel/sched/wait.c:582
 [<ffffffff838c25a3>] __wait_on_bit+0x93/0x120 kernel/sched/wait.c:383
 [<ffffffff81431d70>] wait_on_page_bit+0x130/0x140 mm/filemap.c:802
 [<ffffffff81431f41>] wait_on_page_writeback include/linux/pagemap.h:526 [inline]
 [<ffffffff81431f41>] __filemap_fdatawait_range+0x1c1/0x290 mm/filemap.c:453
 [<ffffffff8143be63>] filemap_fdatawait_keep_errors+0x63/0x80 mm/filemap.c:511
 [<ffffffff81617a60>] fdatawait_one_bdev+0x50/0x70 fs/sync.c:94
 [<ffffffff81632f5c>] iterate_bdevs+0x10c/0x260 fs/block_dev.c:1978
 [<ffffffff81618341>] sys_sync+0xe1/0x170 fs/sync.c:116
 [<ffffffff81006316>] do_syscall_64+0x1a6/0x490 arch/x86/entry/common.c:282
 [<ffffffff838d1313>] entry_SYSCALL_64_after_swapgs+0x5d/0xdb

Showing all locks held in the system:
2 locks held by khungtaskd/515:
 #0:  (rcu_read_lock){......}, at: [<ffffffff813646bc>] check_hung_uninterruptible_tasks kernel/hung_task.c:168 [inline]
 #0:  (rcu_read_lock){......}, at: [<ffffffff813646bc>] watchdog+0x11c/0xa20 kernel/hung_task.c:239
 #1:  (tasklist_lock){.+.+..}, at: [<ffffffff81423bb0>] debug_show_all_locks+0x79/0x218 kernel/locking/lockdep.c:4336
2 locks held by getty/3741:
 #0:  (&tty->ldisc_sem){++++++}, at: [<ffffffff838cf4b2>] ldsem_down_read+0x32/0x40 drivers/tty/tty_ldsem.c:367
 #1:  (&ldata->atomic_read_lock){+.+.+.}, at: [<ffffffff82007082>] n_tty_read+0x202/0x16b0 drivers/tty/n_tty.c:2133
3 locks held by kworker/u4:9/8529:
 #0:  ("writeback"){++++.+}, at: [<ffffffff8118ad0e>] work_static include/linux/workqueue.h:186 [inline]
 #0:  ("writeback"){++++.+}, at: [<ffffffff8118ad0e>] set_work_data kernel/workqueue.c:617 [inline]
 #0:  ("writeback"){++++.+}, at: [<ffffffff8118ad0e>] set_work_pool_and_clear_pending kernel/workqueue.c:644 [inline]
 #0:  ("writeback"){++++.+}, at: [<ffffffff8118ad0e>] process_one_work+0x6ee/0x1500 kernel/workqueue.c:2085
 #1:  ((&(&wb->dwork)->work)){+.+.+.}, at: [<ffffffff8118ad48>] process_one_work+0x728/0x1500 kernel/workqueue.c:2089
 #2:  (&type->s_umount_key#29){.+.+..}, at: [<ffffffff81579e90>] trylock_super+0x20/0xf0 fs/super.c:393
1 lock held by blkid/16920:
 #0:  (&bdev->bd_mutex){+.+.+.}, at: [<ffffffff8162f57a>] blkdev_put+0x2a/0x560 fs/block_dev.c:1621
1 lock held by syz-executor2/18544:
 #0:  (&bdev->bd_mutex){+.+.+.}, at: [<ffffffff81632f18>] iterate_bdevs+0xc8/0x260 fs/block_dev.c:1976
1 lock held by syz-executor2/18565:
 #0:  (&bdev->bd_mutex){+.+.+.}, at: [<ffffffff81632f18>] iterate_bdevs+0xc8/0x260 fs/block_dev.c:1976

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

NMI backtrace for cpu 1
CPU: 1 PID: 515 Comm: khungtaskd Not tainted 4.9.94-g8683408 #3
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
 ffff8801d855fd08 ffffffff81d9b509 0000000000000000 0000000000000001
 0000000000000001 0000000000000001 ffffffff810b7d60 ffff8801d855fd40
 ffffffff81da6837 0000000000000001 0000000000000000 0000000000000002
Call Trace:
 [<ffffffff81d9b509>] __dump_stack lib/dump_stack.c:15 [inline]
 [<ffffffff81d9b509>] dump_stack+0xc1/0x128 lib/dump_stack.c:51
 [<ffffffff81da6837>] nmi_cpu_backtrace.cold.2+0x48/0x87 lib/nmi_backtrace.c:99
 [<ffffffff81da67ca>] 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
 [<ffffffff81364c54>] trigger_all_cpu_backtrace include/linux/nmi.h:58 [inline]
 [<ffffffff81364c54>] check_hung_task kernel/hung_task.c:125 [inline]
 [<ffffffff81364c54>] check_hung_uninterruptible_tasks kernel/hung_task.c:182 [inline]
 [<ffffffff81364c54>] watchdog+0x6b4/0xa20 kernel/hung_task.c:239
 [<ffffffff8119ad2d>] kthread+0x26d/0x300 kernel/kthread.c:211
 [<ffffffff838d14dc>] 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 0xffffffff838cff16

Crashes (93):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/04/17 06:05 https://android.googlesource.com/kernel/common android-4.9 8683408f8e81 b80fd3b5 .config console log report ci-android-49-kasan-gce
2018/04/16 08:53 https://android.googlesource.com/kernel/common android-4.9 8683408f8e81 7a67784c .config console log report ci-android-49-kasan-gce
2018/04/16 06:40 https://android.googlesource.com/kernel/common android-4.9 8683408f8e81 7a67784c .config console log report ci-android-49-kasan-gce
2018/04/15 13:23 https://android.googlesource.com/kernel/common android-4.9 8683408f8e81 7a67784c .config console log report ci-android-49-kasan-gce
2018/04/07 08:09 https://android.googlesource.com/kernel/common android-4.9 4fb542f2aa14 d613535f .config console log report ci-android-49-kasan-gce
2018/03/28 10:52 https://android.googlesource.com/kernel/common android-4.9 dd1e37e64645 bf5e585c .config console log report ci-android-49-kasan-gce
2018/03/27 17:27 https://android.googlesource.com/kernel/common android-4.9 dd1e37e64645 bf5e585c .config console log report ci-android-49-kasan-gce
2018/03/27 05:44 https://android.googlesource.com/kernel/common android-4.9 dd1e37e64645 0ca7878b .config console log report ci-android-49-kasan-gce
2018/03/25 23:15 https://android.googlesource.com/kernel/common android-4.9 dd1e37e64645 e033c1f1 .config console log report ci-android-49-kasan-gce
2018/03/25 11:33 https://android.googlesource.com/kernel/common android-4.9 dd1e37e64645 e033c1f1 .config console log report ci-android-49-kasan-gce
2018/03/25 05:53 https://android.googlesource.com/kernel/common android-4.9 f152ce1be2ab 2e9d9054 .config console log report ci-android-49-kasan-gce
2018/03/24 18:26 https://android.googlesource.com/kernel/common android-4.9 e34e3186e9e3 2e9d9054 .config console log report ci-android-49-kasan-gce
2018/03/24 14:52 https://android.googlesource.com/kernel/common android-4.9 e34e3186e9e3 2e9d9054 .config console log report ci-android-49-kasan-gce
2018/03/24 10:33 https://android.googlesource.com/kernel/common android-4.9 e34e3186e9e3 2e9d9054 .config console log report ci-android-49-kasan-gce
2018/03/19 04:54 https://android.googlesource.com/kernel/common android-4.9 bb52bba67e35 08dacaa0 .config console log report ci-android-49-kasan-gce
2018/03/18 16:58 https://android.googlesource.com/kernel/common android-4.9 bb52bba67e35 08dacaa0 .config console log report ci-android-49-kasan-gce
2018/03/17 22:45 https://android.googlesource.com/kernel/common android-4.9 fc8bd0f6ffec 08dacaa0 .config console log report ci-android-49-kasan-gce
2018/03/17 08:52 https://android.googlesource.com/kernel/common android-4.9 fc8bd0f6ffec 08dacaa0 .config console log report ci-android-49-kasan-gce
2018/03/16 12:31 https://android.googlesource.com/kernel/common android-4.9 d6f27745679a 08dacaa0 .config console log report ci-android-49-kasan-gce
2018/03/15 21:55 https://android.googlesource.com/kernel/common android-4.9 3a3a0844ac38 08dacaa0 .config console log report ci-android-49-kasan-gce
2018/03/14 04:50 https://android.googlesource.com/kernel/common android-4.9 97d7f1c7c0f0 08dacaa0 .config console log report ci-android-49-kasan-gce
2018/04/17 20:29 https://android.googlesource.com/kernel/common android-4.9 8683408f8e81 b80fd3b5 .config console log report ci-android-49-kasan-gce-386
2018/04/10 04:15 https://android.googlesource.com/kernel/common android-4.9 eba1ffe631bc b9f65507 .config console log report ci-android-49-kasan-gce-386
2018/04/06 02:04 https://android.googlesource.com/kernel/common android-4.9 7cd956196346 a932eae6 .config console log report ci-android-49-kasan-gce-386
2018/04/05 04:51 https://android.googlesource.com/kernel/common android-4.9 7cd956196346 676bd07e .config console log report ci-android-49-kasan-gce-386
2018/04/04 04:41 https://android.googlesource.com/kernel/common android-4.9 13b40d327b49 676bd07e .config console log report ci-android-49-kasan-gce-386
2018/03/31 18:22 https://android.googlesource.com/kernel/common android-4.9 9c3fb9cd6e63 0174c6c8 .config console log report ci-android-49-kasan-gce-386
2018/03/26 05:57 https://android.googlesource.com/kernel/common android-4.9 dd1e37e64645 e033c1f1 .config console log report ci-android-49-kasan-gce-386
2018/03/26 04:01 https://android.googlesource.com/kernel/common android-4.9 dd1e37e64645 e033c1f1 .config console log report ci-android-49-kasan-gce-386
2018/03/25 01:54 https://android.googlesource.com/kernel/common android-4.9 f152ce1be2ab 2e9d9054 .config console log report ci-android-49-kasan-gce-386
2018/03/25 00:15 https://android.googlesource.com/kernel/common android-4.9 f152ce1be2ab 2e9d9054 .config console log report ci-android-49-kasan-gce-386
2018/03/24 21:47 https://android.googlesource.com/kernel/common android-4.9 f152ce1be2ab 2e9d9054 .config console log report ci-android-49-kasan-gce-386
2018/03/23 07:01 https://android.googlesource.com/kernel/common android-4.9 f361eb39cdbf 2e9d9054 .config console log report ci-android-49-kasan-gce-386
2018/03/23 04:31 https://android.googlesource.com/kernel/common android-4.9 f361eb39cdbf 2e9d9054 .config console log report ci-android-49-kasan-gce-386
2018/03/22 22:15 https://android.googlesource.com/kernel/common android-4.9 960923fdc278 2e9d9054 .config console log report ci-android-49-kasan-gce-386
2018/03/20 12:11 https://android.googlesource.com/kernel/common android-4.9 71df7bbae4d8 72c33b66 .config console log report ci-android-49-kasan-gce-386
2018/03/19 01:59 https://android.googlesource.com/kernel/common android-4.9 bb52bba67e35 08dacaa0 .config console log report ci-android-49-kasan-gce-386
2018/03/18 20:46 https://android.googlesource.com/kernel/common android-4.9 bb52bba67e35 08dacaa0 .config console log report ci-android-49-kasan-gce-386
2018/03/16 09:25 https://android.googlesource.com/kernel/common android-4.9 d6f27745679a 08dacaa0 .config console log report ci-android-49-kasan-gce-386
2018/03/14 12:36 https://android.googlesource.com/kernel/common android-4.9 97d7f1c7c0f0 08dacaa0 .config console log report ci-android-49-kasan-gce-386
2018/03/14 08:25 https://android.googlesource.com/kernel/common android-4.9 97d7f1c7c0f0 08dacaa0 .config console log report ci-android-49-kasan-gce-386
2018/03/14 03:25 https://android.googlesource.com/kernel/common android-4.9 97d7f1c7c0f0 08dacaa0 .config console log report ci-android-49-kasan-gce-386
* Struck through repros no longer work on HEAD.