syzbot


INFO: task hung in blk_mq_freeze_queue

Status: public: reported C repro on 2019/04/12 00:00
Reported-by: syzbot+8c016494415eba14e1f2@syzkaller.appspotmail.com
First crash: 2479d, last: 2320d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: task hung in blk_mq_freeze_queue (2) block 79 1096d 1096d 0/28 closed as dup on 2021/11/21 13:58
android-44 INFO: task hung in blk_mq_freeze_queue C 330 2319d 2051d 0/2 public: reported C repro on 2019/04/11 08:44
upstream INFO: task hung in blk_mq_freeze_queue block 3 2028d 2180d 0/28 auto-closed as invalid on 2019/10/25 10:51

Sample crash report:
random: sshd: uninitialized urandom read (32 bytes read)
random: crng init done
INFO: task syz-executor122:3904 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.
syz-executor122 D27176  3904   3902 0x00000000
 ffff8801ba37b000 0000000000000000 ffff8801beae0fc0 ffffffff84629800
 ffff8801db221c18 ffff8801d70379f0 ffffffff839e907d 0000000000000002
 0000000041b58ab3 ffffffff843bb1d3 00ffffff81221570 ffff8801db2224e8
Call Trace:
 [<ffffffff839ea67f>] schedule+0x7f/0x1b0 kernel/sched/core.c:3557
 [<ffffffff81e40944>] blk_mq_freeze_queue_wait+0x114/0x230 block/blk-mq.c:75
 [<ffffffff81e49c3d>] blk_freeze_queue block/blk-mq.c:92 [inline]
 [<ffffffff81e49c3d>] blk_mq_freeze_queue+0x1d/0x20 block/blk-mq.c:101
 [<ffffffff825ca462>] loop_switch drivers/block/loop.c:599 [inline]
 [<ffffffff825ca462>] loop_change_fd drivers/block/loop.c:685 [inline]
 [<ffffffff825ca462>] lo_ioctl+0x722/0x1aa0 drivers/block/loop.c:1350
 [<ffffffff81e56e46>] __blkdev_driver_ioctl block/ioctl.c:294 [inline]
 [<ffffffff81e56e46>] blkdev_ioctl+0x7b6/0x1a70 block/ioctl.c:590
 [<ffffffff81632cde>] block_ioctl+0xde/0x120 fs/block_dev.c:1688
 [<ffffffff815b2cec>] vfs_ioctl fs/ioctl.c:43 [inline]
 [<ffffffff815b2cec>] file_ioctl fs/ioctl.c:493 [inline]
 [<ffffffff815b2cec>] do_vfs_ioctl+0x1ac/0x11a0 fs/ioctl.c:677
 [<ffffffff815b3d6f>] SYSC_ioctl fs/ioctl.c:694 [inline]
 [<ffffffff815b3d6f>] SyS_ioctl+0x8f/0xc0 fs/ioctl.c:685
 [<ffffffff81006316>] do_syscall_64+0x1a6/0x490 arch/x86/entry/common.c:282
 [<ffffffff839f9f53>] entry_SYSCALL_64_after_swapgs+0x5d/0xdb

Showing all locks held in the system:
2 locks held by khungtaskd/520:
 #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/3779:
 #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-executor122/3904:
 #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: 520 Comm: khungtaskd Not tainted 4.9.112-g9e79039 #7
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
 ffff8801d8b67d08 ffffffff81eb3249 0000000000000000 0000000000000000
 0000000000000000 0000000000000001 ffffffff810b9bd0 ffff8801d8b67d40
 ffffffff81ebe547 0000000000000000 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 0 to CPUs 1:
NMI backtrace for cpu 1 skipped: idling at pc 0xffffffff839f8b86

Crashes (379):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/07/13 17:17 https://android.googlesource.com/kernel/common android-4.9 9e7903954483 92a49505 .config console log report syz C ci-android-49-kasan-gce-root
2018/07/13 17:13 https://android.googlesource.com/kernel/common android-4.9 9e7903954483 92a49505 .config console log report syz C ci-android-49-kasan-gce
2018/07/13 08:43 https://android.googlesource.com/kernel/common android-4.9 9e7903954483 06c33b3a .config console log report syz C ci-android-49-kasan-gce-root
2018/07/13 08:38 https://android.googlesource.com/kernel/common android-4.9 9e7903954483 06c33b3a .config console log report syz C ci-android-49-kasan-gce
2018/07/10 17:56 https://android.googlesource.com/kernel/common android-4.9 03c70feafdb2 9fa03fa5 .config console log report syz C ci-android-49-kasan-gce
2018/07/10 03:07 https://android.googlesource.com/kernel/common android-4.9 03c70feafdb2 f25e5770 .config console log report syz C ci-android-49-kasan-gce
2018/07/08 08:20 https://android.googlesource.com/kernel/common android-4.9 03c70feafdb2 c9a7a4dc .config console log report syz C ci-android-49-kasan-gce
2018/07/08 08:19 https://android.googlesource.com/kernel/common android-4.9 03c70feafdb2 c9a7a4dc .config console log report syz C ci-android-49-kasan-gce-root
2018/07/04 14:44 https://android.googlesource.com/kernel/common android-4.9 03c70feafdb2 317fc8ea .config console log report syz C ci-android-49-kasan-gce
2018/06/22 14:38 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 14:33 https://android.googlesource.com/kernel/common android-4.9 e1815b3eba5b 095ef806 .config console log report syz C ci-android-49-kasan-gce
2018/06/17 11:47 https://android.googlesource.com/kernel/common android-4.9 a4230beab30a 27c5f59f .config console log report syz C ci-android-49-kasan-gce-root
2018/06/17 10:40 https://android.googlesource.com/kernel/common android-4.9 a4230beab30a 27c5f59f .config console log report syz C ci-android-49-kasan-gce
2018/06/15 11:59 https://android.googlesource.com/kernel/common android-4.9 b7d377b4640b 27c5f59f .config console log report syz C ci-android-49-kasan-gce
2018/06/15 08:32 https://android.googlesource.com/kernel/common android-4.9 b7d377b4640b 27c5f59f .config console log report syz C ci-android-49-kasan-gce-root
2018/06/15 00:56 https://android.googlesource.com/kernel/common android-4.9 b7d377b4640b 27c5f59f .config console log report syz C ci-android-49-kasan-gce-root
2018/06/13 19:26 https://android.googlesource.com/kernel/common android-4.9 b7d377b4640b 27c5f59f .config console log report syz C ci-android-49-kasan-gce-root
2018/06/12 22:13 https://android.googlesource.com/kernel/common android-4.9 db2c520bb56b 6dcbc435 .config console log report syz C ci-android-49-kasan-gce-root
2018/06/12 22:07 https://android.googlesource.com/kernel/common android-4.9 db2c520bb56b 6dcbc435 .config console log report syz C ci-android-49-kasan-gce
2018/05/25 20:07 https://android.googlesource.com/kernel/common android-4.9 70c65e471b71 f48c20b8 .config console log report syz C ci-android-49-kasan-gce-root
2018/05/25 19:59 https://android.googlesource.com/kernel/common android-4.9 70c65e471b71 f48c20b8 .config console log report syz C ci-android-49-kasan-gce
2018/05/24 12:32 https://android.googlesource.com/kernel/common android-4.9 c5aceac71b68 f48c20b8 .config console log report syz C ci-android-49-kasan-gce
2018/05/24 12:26 https://android.googlesource.com/kernel/common android-4.9 c5aceac71b68 f48c20b8 .config console log report syz C ci-android-49-kasan-gce-root
2018/05/01 04:14 https://android.googlesource.com/kernel/common android-4.9 2bcbbd5b3924 d5b114b4 .config console log report syz C ci-android-49-kasan-gce
2018/07/10 18:22 https://android.googlesource.com/kernel/common android-4.9 03c70feafdb2 9fa03fa5 .config console log report syz ci-android-49-kasan-gce-386
2018/07/10 03:05 https://android.googlesource.com/kernel/common android-4.9 03c70feafdb2 f25e5770 .config console log report syz ci-android-49-kasan-gce-386
2018/07/08 08:16 https://android.googlesource.com/kernel/common android-4.9 03c70feafdb2 c9a7a4dc .config console log report syz ci-android-49-kasan-gce-386
2018/06/26 10:50 https://android.googlesource.com/kernel/common android-4.9 7143cbff9ce1 2064fc5c .config console log report syz ci-android-49-kasan-gce-386
2018/06/22 14:51 https://android.googlesource.com/kernel/common android-4.9 e1815b3eba5b 095ef806 .config console log report syz ci-android-49-kasan-gce-386
2018/06/17 11:01 https://android.googlesource.com/kernel/common android-4.9 a4230beab30a 27c5f59f .config console log report syz ci-android-49-kasan-gce-386
2018/05/25 21:18 https://android.googlesource.com/kernel/common android-4.9 70c65e471b71 f48c20b8 .config console log report syz ci-android-49-kasan-gce-386
2018/05/24 12:51 https://android.googlesource.com/kernel/common android-4.9 c5aceac71b68 f48c20b8 .config console log report syz ci-android-49-kasan-gce-386
2018/05/01 03:49 https://android.googlesource.com/kernel/common android-4.9 2bcbbd5b3924 d5b114b4 .config console log report syz ci-android-49-kasan-gce-386
2018/07/15 22:13 https://android.googlesource.com/kernel/common android-4.9 9e7903954483 92a49505 .config console log report ci-android-49-kasan-gce
2018/07/15 19:22 https://android.googlesource.com/kernel/common android-4.9 9e7903954483 92a49505 .config console log report ci-android-49-kasan-gce
2018/07/11 06:11 https://android.googlesource.com/kernel/common android-4.9 03c70feafdb2 2e0e3130 .config console log report ci-android-49-kasan-gce-root
2018/06/27 15:50 https://android.googlesource.com/kernel/common android-4.9 00a0bcbfcfb6 43e60f7e .config console log report ci-android-49-kasan-gce-root
2018/06/19 14:19 https://android.googlesource.com/kernel/common android-4.9 e1815b3eba5b 732e4256 .config console log report ci-android-49-kasan-gce
2018/06/19 05:36 https://android.googlesource.com/kernel/common android-4.9 e1815b3eba5b 45c54f75 .config console log report ci-android-49-kasan-gce
2018/06/17 06:44 https://android.googlesource.com/kernel/common android-4.9 a4230beab30a 27c5f59f .config console log report ci-android-49-kasan-gce
2018/06/17 01:34 https://android.googlesource.com/kernel/common android-4.9 a4230beab30a 27c5f59f .config console log report ci-android-49-kasan-gce
2018/06/16 21:26 https://android.googlesource.com/kernel/common android-4.9 a4230beab30a 27c5f59f .config console log report ci-android-49-kasan-gce
2018/06/16 12:36 https://android.googlesource.com/kernel/common android-4.9 a4230beab30a 27c5f59f .config console log report ci-android-49-kasan-gce
2018/06/14 06:30 https://android.googlesource.com/kernel/common android-4.9 b7d377b4640b 27c5f59f .config console log report ci-android-49-kasan-gce
2018/06/13 02:12 https://android.googlesource.com/kernel/common android-4.9 db2c520bb56b 6dcbc435 .config console log report ci-android-49-kasan-gce
2018/06/06 14:27 https://android.googlesource.com/kernel/common android-4.9 54f1dc05da62 41f9540d .config console log report ci-android-49-kasan-gce-root
2018/06/06 05:53 https://android.googlesource.com/kernel/common android-4.9 8b94b87fe783 863a24bb .config console log report ci-android-49-kasan-gce
2018/06/03 22:14 https://android.googlesource.com/kernel/common android-4.9 d7e64f8022e4 2f93b54f .config console log report ci-android-49-kasan-gce
2018/06/02 07:58 https://android.googlesource.com/kernel/common android-4.9 d7e64f8022e4 2f93b54f .config console log report ci-android-49-kasan-gce-root
2018/06/02 06:09 https://android.googlesource.com/kernel/common android-4.9 d7e64f8022e4 2f93b54f .config console log report ci-android-49-kasan-gce
2018/06/02 02:37 https://android.googlesource.com/kernel/common android-4.9 d7e64f8022e4 2f93b54f .config console log report ci-android-49-kasan-gce
2018/06/01 09:00 https://android.googlesource.com/kernel/common android-4.9 a56900fabe12 2f93b54f .config console log report ci-android-49-kasan-gce
2018/05/30 02:12 https://android.googlesource.com/kernel/common android-4.9 7fd40752c316 2f93b54f .config console log report ci-android-49-kasan-gce
2018/05/29 19:25 https://android.googlesource.com/kernel/common android-4.9 7fd40752c316 e276de77 .config console log report ci-android-49-kasan-gce
2018/05/29 14:15 https://android.googlesource.com/kernel/common android-4.9 0cecdf831513 e276de77 .config console log report ci-android-49-kasan-gce
2018/05/28 20:05 https://android.googlesource.com/kernel/common android-4.9 0cecdf831513 f48c20b8 .config console log report ci-android-49-kasan-gce
2018/05/28 13:29 https://android.googlesource.com/kernel/common android-4.9 0cecdf831513 f48c20b8 .config console log report ci-android-49-kasan-gce
2018/05/27 09:57 https://android.googlesource.com/kernel/common android-4.9 0cecdf831513 f48c20b8 .config console log report ci-android-49-kasan-gce
2018/05/26 10:44 https://android.googlesource.com/kernel/common android-4.9 0cecdf831513 f48c20b8 .config console log report ci-android-49-kasan-gce-root
2018/05/26 02:28 https://android.googlesource.com/kernel/common android-4.9 70c65e471b71 f48c20b8 .config console log report ci-android-49-kasan-gce
2018/05/25 18:38 https://android.googlesource.com/kernel/common android-4.9 70c65e471b71 f48c20b8 .config console log report ci-android-49-kasan-gce-root
2018/05/25 17:17 https://android.googlesource.com/kernel/common android-4.9 70c65e471b71 f48c20b8 .config console log report ci-android-49-kasan-gce
2018/05/25 04:10 https://android.googlesource.com/kernel/common android-4.9 2e35bed46b50 f48c20b8 .config console log report ci-android-49-kasan-gce-root
2018/05/22 02:17 https://android.googlesource.com/kernel/common android-4.9 aef17a58e8ca f48c20b8 .config console log report ci-android-49-kasan-gce
2018/05/21 09:48 https://android.googlesource.com/kernel/common android-4.9 aef17a58e8ca f48c20b8 .config console log report ci-android-49-kasan-gce
2018/05/21 06:46 https://android.googlesource.com/kernel/common android-4.9 aef17a58e8ca f48c20b8 .config console log report ci-android-49-kasan-gce
2018/05/20 08:21 https://android.googlesource.com/kernel/common android-4.9 aef17a58e8ca f48c20b8 .config console log report ci-android-49-kasan-gce
2018/02/07 09:58 https://android.googlesource.com/kernel/common android-4.9 550c01d0e051 66c15deb .config console log report ci-android-49-kasan-gce
2018/07/15 15:14 https://android.googlesource.com/kernel/common android-4.9 9e7903954483 92a49505 .config console log report ci-android-49-kasan-gce-386
2018/07/04 02:21 https://android.googlesource.com/kernel/common android-4.9 00a0bcbfcfb6 317fc8ea .config console log report ci-android-49-kasan-gce-386
2018/06/30 03:58 https://android.googlesource.com/kernel/common android-4.9 00a0bcbfcfb6 dba0b50e .config console log report ci-android-49-kasan-gce-386
2018/06/11 08:18 https://android.googlesource.com/kernel/common android-4.9 db2c520bb56b 866118af .config console log report ci-android-49-kasan-gce-386
2018/06/05 21:16 https://android.googlesource.com/kernel/common android-4.9 8b94b87fe783 863a24bb .config console log report ci-android-49-kasan-gce-386
2018/06/03 00:01 https://android.googlesource.com/kernel/common android-4.9 d7e64f8022e4 2f93b54f .config console log report ci-android-49-kasan-gce-386
2018/05/26 08:12 https://android.googlesource.com/kernel/common android-4.9 0cecdf831513 f48c20b8 .config console log report ci-android-49-kasan-gce-386
2018/05/26 04:27 https://android.googlesource.com/kernel/common android-4.9 70c65e471b71 f48c20b8 .config console log report ci-android-49-kasan-gce-386
2018/05/24 15:04 https://android.googlesource.com/kernel/common android-4.9 c5aceac71b68 f48c20b8 .config console log report ci-android-49-kasan-gce-386
* Struck through repros no longer work on HEAD.