syzbot


INFO: task hung in bt_get

Status: public: reported C repro on 2019/04/12 00:00
Reported-by: syzbot+ac53a66d8056a344e08d@syzkaller.appspotmail.com
First crash: 2547d, last: 1997d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-44 INFO: task hung in bt_get C 68 2319d 2049d 0/2 public: reported C repro on 2019/04/13 00:00

Sample crash report:
random: sshd: uninitialized urandom read (32 bytes read)
random: crng init done
INFO: task loop0:3750 blocked for more than 140 seconds.
      Not tainted 4.9.112-g9e79039 #59
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
loop0           D26344  3750      2 0x00000000
 ffff8801c0da1800 0000000000000000 ffff8801c0c3c000 ffffffff84629800
 ffff8801db221c18 ffff8801d8adedf0 ffffffff839e907d 0000000041b58ab3
 ffffffff843c36c0 ffffffff812361d0 0000000000000000 ffff8801db2224e8
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
 [<ffffffff81e5132c>] io_schedule include/linux/sched.h:460 [inline]
 [<ffffffff81e5132c>] bt_get.isra.8+0x27c/0x780 block/blk-mq-tag.c:141
 [<ffffffff81e5223c>] __blk_mq_get_tag block/blk-mq-tag.c:163 [inline]
 [<ffffffff81e5223c>] blk_mq_get_tag+0xac/0x220 block/blk-mq-tag.c:192
 [<ffffffff81e4196a>] __blk_mq_alloc_request+0x2a/0xaa0 block/blk-mq.c:196
 [<ffffffff81e43d6b>] blk_mq_map_request.isra.38+0x3ab/0x900 block/blk-mq.c:1207
 [<ffffffff81e4c1b6>] blk_sq_make_request+0x1d6/0x1220 block/blk-mq.c:1374
 [<ffffffff81e1f08e>] generic_make_request+0x20e/0x9b0 block/blk-core.c:2055
 [<ffffffff81e1f8e0>] submit_bio+0xb0/0x460 block/blk-core.c:2126
 [<ffffffff81643a5a>] dio_bio_submit fs/direct-io.c:420 [inline]
 [<ffffffff81643a5a>] do_blockdev_direct_IO+0x35da/0x5a80 fs/direct-io.c:1301
 [<ffffffff81645fa5>] __blockdev_direct_IO+0xa5/0xd0 fs/direct-io.c:1360
 [<ffffffff8162fb50>] blkdev_direct_IO+0xa0/0xd0 fs/block_dev.c:183
 [<ffffffff8143e870>] generic_file_read_iter+0x660/0x1a90 mm/filemap.c:1951
 [<ffffffff81632755>] blkdev_read_iter+0x105/0x170 fs/block_dev.c:1738
 [<ffffffff825cd463>] lo_rw_aio+0x6b3/0x8a0 drivers/block/loop.c:506
 [<ffffffff825cda27>] do_req_filebacked drivers/block/loop.c:543 [inline]
 [<ffffffff825cda27>] loop_handle_cmd drivers/block/loop.c:1698 [inline]
 [<ffffffff825cda27>] loop_queue_work+0x3d7/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 getty/3646:
 #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
1 lock held by syz-executor894/3752:
 #0:  (&lo->lo_ctl_mutex/1){+.+.+.}, at: [<ffffffff825c9dcb>] lo_ioctl+0x8b/0x1aa0 drivers/block/loop.c:1344

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

NMI backtrace for cpu 0
CPU: 0 PID: 519 Comm: khungtaskd Not tainted 4.9.112-g9e79039 #59
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
 ffff8801d8c27d08 ffffffff81eb3249 0000000000000000 0000000000000000
 0000000000000000 0000000000000001 ffffffff810b9bd0 ffff8801d8c27d40
 ffffffff81ebe547 0000000000000000 0000000000000000 0000000000000003
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 0 to CPUs 1:
NMI backtrace for cpu 1 skipped: idling at pc 0xffffffff839f8b86

Crashes (585):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/07/17 10:33 https://android.googlesource.com/kernel/common android-4.9 9e7903954483 13761366 .config console log report syz C ci-android-49-kasan-gce
2018/06/22 06:50 https://android.googlesource.com/kernel/common android-4.9 e1815b3eba5b 095ef806 .config console log report syz C ci-android-49-kasan-gce-root
2018/06/22 05:43 https://android.googlesource.com/kernel/common android-4.9 e1815b3eba5b 095ef806 .config console log report syz C ci-android-49-kasan-gce
2018/07/17 10:40 https://android.googlesource.com/kernel/common android-4.9 9e7903954483 13761366 .config console log report syz ci-android-49-kasan-gce-386
2018/06/22 04:01 https://android.googlesource.com/kernel/common android-4.9 e1815b3eba5b 095ef806 .config console log report syz ci-android-49-kasan-gce-386
2019/06/04 15:16 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 e41a20c5 .config console log report ci-android-49-kasan-gce
2018/07/17 19:53 https://android.googlesource.com/kernel/common android-4.9 f540ce029f50 6d5bd5b5 .config console log report ci-android-49-kasan-gce
2018/07/17 10:02 https://android.googlesource.com/kernel/common android-4.9 9e7903954483 13761366 .config console log report ci-android-49-kasan-gce-root
2018/07/16 04:58 https://android.googlesource.com/kernel/common android-4.9 9e7903954483 92a49505 .config console log report ci-android-49-kasan-gce-root
2018/07/07 09:47 https://android.googlesource.com/kernel/common android-4.9 03c70feafdb2 6c0c0099 .config console log report ci-android-49-kasan-gce-root
2018/07/03 06:55 https://android.googlesource.com/kernel/common android-4.9 00a0bcbfcfb6 317fc8ea .config console log report ci-android-49-kasan-gce
2018/06/28 19:44 https://android.googlesource.com/kernel/common android-4.9 00a0bcbfcfb6 dba0b50e .config console log report ci-android-49-kasan-gce
2018/06/26 03:56 https://android.googlesource.com/kernel/common android-4.9 7143cbff9ce1 2064fc5c .config console log report ci-android-49-kasan-gce-root
2018/06/22 03:41 https://android.googlesource.com/kernel/common android-4.9 e1815b3eba5b 095ef806 .config console log report ci-android-49-kasan-gce-root
2018/06/20 16:42 https://android.googlesource.com/kernel/common android-4.9 e1815b3eba5b 095ef806 .config console log report ci-android-49-kasan-gce
2018/06/17 11:42 https://android.googlesource.com/kernel/common android-4.9 a4230beab30a 27c5f59f .config console log report ci-android-49-kasan-gce-root
2018/06/12 19:06 https://android.googlesource.com/kernel/common android-4.9 db2c520bb56b 6dcbc435 .config console log report ci-android-49-kasan-gce
2018/05/31 13:00 https://android.googlesource.com/kernel/common android-4.9 0c296e3d878b 2f93b54f .config console log report ci-android-49-kasan-gce
2018/05/26 19:20 https://android.googlesource.com/kernel/common android-4.9 0cecdf831513 f48c20b8 .config console log report ci-android-49-kasan-gce
2018/05/22 07:39 https://android.googlesource.com/kernel/common android-4.9 aef17a58e8ca f48c20b8 .config console log report ci-android-49-kasan-gce
2018/05/16 02:38 https://android.googlesource.com/kernel/common android-4.9 74fa0af47306 68ce85f1 .config console log report ci-android-49-kasan-gce
2018/05/13 15:40 https://android.googlesource.com/kernel/common android-4.9 c2f9bce9fee8 c05b619d .config console log report ci-android-49-kasan-gce
2018/05/12 03:00 https://android.googlesource.com/kernel/common android-4.9 c2f9bce9fee8 12c7428a .config console log report ci-android-49-kasan-gce
2018/05/10 18:20 https://android.googlesource.com/kernel/common android-4.9 c462abbf779b 12c7428a .config console log report ci-android-49-kasan-gce
2018/05/07 10:24 https://android.googlesource.com/kernel/common android-4.9 63a812bb84e4 a211da1a .config console log report ci-android-49-kasan-gce
2018/05/04 10:48 https://android.googlesource.com/kernel/common android-4.9 0e25e2cab07a 9ce14f4b .config console log report ci-android-49-kasan-gce
2018/05/04 02:59 https://android.googlesource.com/kernel/common android-4.9 0e25e2cab07a 9ce14f4b .config console log report ci-android-49-kasan-gce
2018/05/02 10:33 https://android.googlesource.com/kernel/common android-4.9 1321d4226176 d5b114b4 .config console log report ci-android-49-kasan-gce
2018/05/01 20:14 https://android.googlesource.com/kernel/common android-4.9 19bd3e34d859 d5b114b4 .config console log report ci-android-49-kasan-gce
2018/04/30 18:04 https://android.googlesource.com/kernel/common android-4.9 2bcbbd5b3924 06db3cec .config console log report ci-android-49-kasan-gce
2018/04/23 18:21 https://android.googlesource.com/kernel/common android-4.9 142d4b530f5a 0d8e591c .config console log report ci-android-49-kasan-gce
2018/06/21 23:48 https://android.googlesource.com/kernel/common android-4.9 e1815b3eba5b 095ef806 .config console log report ci-android-49-kasan-gce-386
2018/06/06 01:41 https://android.googlesource.com/kernel/common android-4.9 8b94b87fe783 863a24bb .config console log report ci-android-49-kasan-gce-386
2018/06/01 12:26 https://android.googlesource.com/kernel/common android-4.9 d7e64f8022e4 2f93b54f .config console log report ci-android-49-kasan-gce-386
2018/05/30 06:46 https://android.googlesource.com/kernel/common android-4.9 7fd40752c316 2f93b54f .config console log report ci-android-49-kasan-gce-386
2018/05/04 21:14 https://android.googlesource.com/kernel/common android-4.9 f5a861c30cb7 9ce14f4b .config console log report ci-android-49-kasan-gce-386
2018/05/04 16:36 https://android.googlesource.com/kernel/common android-4.9 0e25e2cab07a 9ce14f4b .config console log report ci-android-49-kasan-gce-386
2018/05/03 23:41 https://android.googlesource.com/kernel/common android-4.9 0e25e2cab07a 9ce14f4b .config console log report ci-android-49-kasan-gce-386
2018/05/03 22:02 https://android.googlesource.com/kernel/common android-4.9 0e25e2cab07a 9ce14f4b .config console log report ci-android-49-kasan-gce-386
2018/05/03 17:24 https://android.googlesource.com/kernel/common android-4.9 f679e4d9b77a 9ce14f4b .config console log report ci-android-49-kasan-gce-386
2018/05/03 16:01 https://android.googlesource.com/kernel/common android-4.9 f679e4d9b77a 9ce14f4b .config console log report ci-android-49-kasan-gce-386
2018/05/02 15:44 https://android.googlesource.com/kernel/common android-4.9 1321d4226176 d5b114b4 .config console log report ci-android-49-kasan-gce-386
2018/04/28 20:38 https://android.googlesource.com/kernel/common android-4.9 71fce1edd26d d5a5d045 .config console log report ci-android-49-kasan-gce-386
2018/04/26 14:29 https://android.googlesource.com/kernel/common android-4.9 132f097f6547 73417389 .config console log report ci-android-49-kasan-gce-386
2018/04/25 06:05 https://android.googlesource.com/kernel/common android-4.9 320d53a9d07c 37e76fe2 .config console log report ci-android-49-kasan-gce-386
2018/04/17 06:58 https://android.googlesource.com/kernel/common android-4.9 8683408f8e81 b80fd3b5 .config console log report ci-android-49-kasan-gce-386
2018/03/28 17:38 https://android.googlesource.com/kernel/common android-4.9 dd1e37e64645 bf5e585c .config console log report ci-android-49-kasan-gce-386
* Struck through repros no longer work on HEAD.