syzbot


INFO: task hung in lo_ioctl

Status: public: reported C repro on 2019/04/12 00:00
Reported-by: syzbot+802dc7e8b66aa63717bd@syzkaller.appspotmail.com
First crash: 2396d, last: 1700d
Similar bugs (6)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-414 INFO: task hung in lo_ioctl syz 498 1879d 1901d 0/1 public: reported syz repro on 2019/04/10 16:14
linux-4.14 INFO: task hung in lo_ioctl 127 1214d 1900d 0/1 auto-closed as invalid on 2021/06/25 19:54
android-44 INFO: task hung in lo_ioctl C 469 1693d 1900d 0/2 public: reported C repro on 2019/04/12 00:00
upstream INFO: task hung in lo_ioctl block 47 2271d 2387d 11/27 fixed on 2019/03/06 07:43
upstream INFO: task hung in lo_ioctl (2) block 3 946d 951d 0/27 closed as invalid on 2022/02/08 09:40
linux-4.14 INFO: task hung in lo_ioctl (2) 1 600d 600d 0/1 auto-obsoleted due to no activity on 2023/03/01 22:16

Sample crash report:
INFO: task syz-executor695:3855 blocked for more than 120 seconds.
      Not tainted 4.9.111-g03c70fe #5
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syz-executor695 D28504  3855   3852 0x00000000
 ffff8801d843b000 ffff8801b8182f40 ffff8801c1b38540 ffff8801d8439800
 ffff8801db221c18 ffff8801ccd379c8 ffffffff839e7ded ffff8801d843b8c8
 ffffed003b087718 ffff8801d843b000 00fffc0000000000 ffff8801db2224e8
Call Trace:
 [<ffffffff839e93ef>] schedule+0x7f/0x1b0 kernel/sched/core.c:3557
 [<ffffffff839e9d73>] schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:3590
 [<ffffffff839ee1f6>] __mutex_lock_common kernel/locking/mutex.c:582 [inline]
 [<ffffffff839ee1f6>] mutex_lock_nested+0x326/0x870 kernel/locking/mutex.c:621
 [<ffffffff825c922b>] lo_ioctl+0x8b/0x1aa0 drivers/block/loop.c:1344
 [<ffffffff81e56326>] __blkdev_driver_ioctl block/ioctl.c:294 [inline]
 [<ffffffff81e56326>] blkdev_ioctl+0x7b6/0x1a70 block/ioctl.c:590
 [<ffffffff81632c5e>] block_ioctl+0xde/0x120 fs/block_dev.c:1688
 [<ffffffff815b2c6c>] vfs_ioctl fs/ioctl.c:43 [inline]
 [<ffffffff815b2c6c>] file_ioctl fs/ioctl.c:493 [inline]
 [<ffffffff815b2c6c>] do_vfs_ioctl+0x1ac/0x11a0 fs/ioctl.c:677
 [<ffffffff815b3cef>] SYSC_ioctl fs/ioctl.c:694 [inline]
 [<ffffffff815b3cef>] SyS_ioctl+0x8f/0xc0 fs/ioctl.c:685
 [<ffffffff81006316>] do_syscall_64+0x1a6/0x490 arch/x86/entry/common.c:282
 [<ffffffff839f8cd3>] entry_SYSCALL_64_after_swapgs+0x5d/0xdb

Showing all locks held in the system:
2 locks held by khungtaskd/519:
 #0:  (rcu_read_lock){......}, at: [<ffffffff813666fc>] check_hung_uninterruptible_tasks kernel/hung_task.c:168 [inline]
 #0:  (rcu_read_lock){......}, at: [<ffffffff813666fc>] watchdog+0x11c/0xa20 kernel/hung_task.c:239
 #1:  (tasklist_lock){.+.+..}, at: [<ffffffff81425d87>] debug_show_all_locks+0x79/0x218 kernel/locking/lockdep.c:4336
2 locks held by getty/3778:
 #0:  (&tty->ldisc_sem){++++++}, at: [<ffffffff839f6e92>] ldsem_down_read+0x32/0x40 drivers/tty/tty_ldsem.c:367
 #1:  (&ldata->atomic_read_lock){+.+...}, at: [<ffffffff8211e602>] n_tty_read+0x202/0x16e0 drivers/tty/n_tty.c:2133
1 lock held by syz-executor695/3855:
 #0:  (&lo->lo_ctl_mutex/1){+.+.+.}, at: [<ffffffff825c922b>] lo_ioctl+0x8b/0x1aa0 drivers/block/loop.c:1344
1 lock held by syz-executor695/3857:
 #0:  (&lo->lo_ctl_mutex/1){+.+.+.}, at: [<ffffffff825c922b>] lo_ioctl+0x8b/0x1aa0 drivers/block/loop.c:1344
1 lock held by syz-executor695/3858:
 #0:  (&lo->lo_ctl_mutex/1){+.+.+.}, at: [<ffffffff825c922b>] lo_ioctl+0x8b/0x1aa0 drivers/block/loop.c:1344
1 lock held by syz-executor695/3860:
 #0:  (&lo->lo_ctl_mutex/1){+.+.+.}, at: [<ffffffff825c922b>] lo_ioctl+0x8b/0x1aa0 drivers/block/loop.c:1344
1 lock held by syz-executor695/3861:
 #0:  (&lo->lo_ctl_mutex/1){+.+.+.}, at: [<ffffffff825c922b>] lo_ioctl+0x8b/0x1aa0 drivers/block/loop.c:1344
1 lock held by syz-executor695/3862:
 #0:  (&lo->lo_ctl_mutex/1){+.+.+.}, at: [<ffffffff825c922b>] lo_ioctl+0x8b/0x1aa0 drivers/block/loop.c:1344
1 lock held by syz-executor695/3863:
 #0:  (&lo->lo_ctl_mutex/1){+.+.+.}, at: [<ffffffff825c922b>] lo_ioctl+0x8b/0x1aa0 drivers/block/loop.c:1344
1 lock held by syz-executor695/3864:
 #0:  (&lo->lo_ctl_mutex/1){+.+.+.}, at: [<ffffffff825c922b>] lo_ioctl+0x8b/0x1aa0 drivers/block/loop.c:1344
1 lock held by syz-executor695/3865:
 #0:  (&lo->lo_ctl_mutex/1){+.+.+.}, at: [<ffffffff825c922b>] lo_ioctl+0x8b/0x1aa0 drivers/block/loop.c:1344
1 lock held by syz-executor695/3866:
 #0:  (&lo->lo_ctl_mutex/1){+.+.+.}, at: [<ffffffff825c922b>] lo_ioctl+0x8b/0x1aa0 drivers/block/loop.c:1344
1 lock held by syz-executor695/3867:
 #0:  (&lo->lo_ctl_mutex/1){+.+.+.}, at: [<ffffffff825c922b>] lo_ioctl+0x8b/0x1aa0 drivers/block/loop.c:1344
1 lock held by syz-executor695/3868:
 #0:  (&lo->lo_ctl_mutex/1){+.+.+.}, at: [<ffffffff825c922b>] lo_ioctl+0x8b/0x1aa0 drivers/block/loop.c:1344
1 lock held by syz-executor695/3869:
 #0:  (&lo->lo_ctl_mutex/1){+.+.+.}, at: [<ffffffff825c922b>] lo_ioctl+0x8b/0x1aa0 drivers/block/loop.c:1344
1 lock held by syz-executor695/3870:
 #0:  (&lo->lo_ctl_mutex/1){+.+.+.}, at: [<ffffffff825c922b>] lo_ioctl+0x8b/0x1aa0 drivers/block/loop.c:1344
1 lock held by syz-executor695/3871:
 #0:  (&lo->lo_ctl_mutex/1){+.+.+.}, at: [<ffffffff825c922b>] lo_ioctl+0x8b/0x1aa0 drivers/block/loop.c:1344
1 lock held by syz-executor695/3872:
 #0:  (&lo->lo_ctl_mutex/1){+.+.+.}, at: [<ffffffff825c922b>] lo_ioctl+0x8b/0x1aa0 drivers/block/loop.c:1344

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

NMI backtrace for cpu 1
CPU: 1 PID: 519 Comm: khungtaskd Not tainted 4.9.111-g03c70fe #5
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
 ffff8801d871fd08 ffffffff81eb2729 0000000000000000 0000000000000001
 0000000000000001 0000000000000001 ffffffff810b9af0 ffff8801d871fd40
 ffffffff81ebda27 0000000000000001 0000000000000000 0000000000000002
Call Trace:
 [<ffffffff81eb2729>] __dump_stack lib/dump_stack.c:15 [inline]
 [<ffffffff81eb2729>] dump_stack+0xc1/0x128 lib/dump_stack.c:51
 [<ffffffff81ebda27>] nmi_cpu_backtrace.cold.2+0x48/0x87 lib/nmi_backtrace.c:99
 [<ffffffff81ebd9ba>] nmi_trigger_cpumask_backtrace+0x12a/0x14f lib/nmi_backtrace.c:60
 [<ffffffff810b9bf4>] arch_trigger_cpumask_backtrace+0x14/0x20 arch/x86/kernel/apic/hw_nmi.c:37
 [<ffffffff81366c94>] trigger_all_cpu_backtrace include/linux/nmi.h:58 [inline]
 [<ffffffff81366c94>] check_hung_task kernel/hung_task.c:125 [inline]
 [<ffffffff81366c94>] check_hung_uninterruptible_tasks kernel/hung_task.c:182 [inline]
 [<ffffffff81366c94>] watchdog+0x6b4/0xa20 kernel/hung_task.c:239
 [<ffffffff8119d05d>] kthread+0x26d/0x300 kernel/kthread.c:211
 [<ffffffff839f8e9c>] 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
CPU: 0 PID: 3852 Comm: sshd Not tainted 4.9.111-g03c70fe #5
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
task: ffff8801d8439800 task.stack: ffff8801b5388000
RIP: 0033:[<00007fefa08afb3e>] c [<00007fefa08afb3e>] 0x7fefa08afb3e
RSP: 002b:00007ffe81ac9598  EFLAGS: 00000287
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000200 RSI: 0000000000000011 RDI: 00007ffe81ac9630
RBP: 00005604c6d01c88 R08: 00007ffe81ac9670 R09: 0101010101010101
R10: 0000000000000000 R11: 0000000000000246 R12: 00005604c7bc7a50
R13: 00005604c6cfffb4 R14: 0000000000000028 R15: 00005604c6d01ca0
FS:  00007fefa25b47c0(0000) GS:ffff8801db200000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005604c7beaff0 CR3: 00000001bcc9b000 CR4: 00000000001606f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (1828):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/07/04 14:42 https://android.googlesource.com/kernel/common android-4.9 03c70feafdb2 317fc8ea .config console log report syz C ci-android-49-kasan-gce-root
2018/06/26 10:30 https://android.googlesource.com/kernel/common android-4.9 7143cbff9ce1 2064fc5c .config console log report syz C ci-android-49-kasan-gce
2018/06/26 10:25 https://android.googlesource.com/kernel/common android-4.9 7143cbff9ce1 2064fc5c .config console log report syz C ci-android-49-kasan-gce-root
2018/06/24 16:11 https://android.googlesource.com/kernel/common android-4.9 7cecc756ceae 2064fc5c .config console log report syz C ci-android-49-kasan-gce
2018/06/24 16:02 https://android.googlesource.com/kernel/common android-4.9 7cecc756ceae 2064fc5c .config console log report syz C ci-android-49-kasan-gce-root
2018/06/15 17:54 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 10:39 https://android.googlesource.com/kernel/common android-4.9 b7d377b4640b 27c5f59f .config console log report syz C ci-android-49-kasan-gce
2018/06/14 22:00 https://android.googlesource.com/kernel/common android-4.9 b7d377b4640b 27c5f59f .config console log report syz C ci-android-49-kasan-gce
2018/04/20 23:35 https://android.googlesource.com/kernel/common android-4.9 13cc54013b24 cc402841 .config console log report syz C ci-android-49-kasan-gce-root
2018/06/24 16:24 https://android.googlesource.com/kernel/common android-4.9 7cecc756ceae 2064fc5c .config console log report syz ci-android-49-kasan-gce-386
2019/10/28 21:50 https://android.googlesource.com/kernel/common android-4.9 7fe05eede1c8 439d7b14 .config console log report ci-android-49-kasan-gce-root
2019/05/02 08:17 https://android.googlesource.com/kernel/common android-4.9 3383326b935d 7516d9fa .config console log report ci-android-49-kasan-gce-root
2019/05/02 00:38 https://android.googlesource.com/kernel/common android-4.9 3383326b935d 7516d9fa .config console log report ci-android-49-kasan-gce-root
2019/05/01 21:57 https://android.googlesource.com/kernel/common android-4.9 3383326b935d 7516d9fa .config console log report ci-android-49-kasan-gce-root
2019/05/01 11:39 https://android.googlesource.com/kernel/common android-4.9 3383326b935d 618456b4 .config console log report ci-android-49-kasan-gce-root
2019/05/01 09:31 https://android.googlesource.com/kernel/common android-4.9 3383326b935d 618456b4 .config console log report ci-android-49-kasan-gce-root
2019/04/30 20:12 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 618456b4 .config console log report ci-android-49-kasan-gce
2019/04/30 07:25 https://android.googlesource.com/kernel/common android-4.9 6cf3205cc803 20f16bef .config console log report ci-android-49-kasan-gce-root
2019/04/30 04:10 https://android.googlesource.com/kernel/common android-4.9 6cf3205cc803 b617407b .config console log report ci-android-49-kasan-gce-root
2019/04/30 01:32 https://android.googlesource.com/kernel/common android-4.9 6cf3205cc803 b617407b .config console log report ci-android-49-kasan-gce-root
2019/04/28 17:32 https://android.googlesource.com/kernel/common android-4.9 6cf3205cc803 b617407b .config console log report ci-android-49-kasan-gce-root
2019/04/28 14:37 https://android.googlesource.com/kernel/common android-4.9 6cf3205cc803 b617407b .config console log report ci-android-49-kasan-gce-root
2019/04/28 12:42 https://android.googlesource.com/kernel/common android-4.9 6cf3205cc803 b617407b .config console log report ci-android-49-kasan-gce-root
2019/04/28 06:52 https://android.googlesource.com/kernel/common android-4.9 6cf3205cc803 b617407b .config console log report ci-android-49-kasan-gce-root
2019/04/27 21:16 https://android.googlesource.com/kernel/common android-4.9 6cf3205cc803 b617407b .config console log report ci-android-49-kasan-gce-root
2019/04/27 17:13 https://android.googlesource.com/kernel/common android-4.9 6cf3205cc803 b617407b .config console log report ci-android-49-kasan-gce-root
2019/04/27 13:53 https://android.googlesource.com/kernel/common android-4.9 6cf3205cc803 b617407b .config console log report ci-android-49-kasan-gce-root
2019/04/27 08:12 https://android.googlesource.com/kernel/common android-4.9 6cf3205cc803 b617407b .config console log report ci-android-49-kasan-gce-root
2019/04/26 22:38 https://android.googlesource.com/kernel/common android-4.9 6cf3205cc803 b617407b .config console log report ci-android-49-kasan-gce-root
2019/04/26 20:34 https://android.googlesource.com/kernel/common android-4.9 6cf3205cc803 b617407b .config console log report ci-android-49-kasan-gce-root
2019/04/26 07:07 https://android.googlesource.com/kernel/common android-4.9 6cf3205cc803 b617407b .config console log report ci-android-49-kasan-gce-root
2019/04/25 00:07 https://android.googlesource.com/kernel/common android-4.9 6cf3205cc803 8e3c52b1 .config console log report ci-android-49-kasan-gce-root
2019/04/24 13:43 https://android.googlesource.com/kernel/common android-4.9 8a5e5139be70 8e3c52b1 .config console log report ci-android-49-kasan-gce-root
2019/04/23 21:57 https://android.googlesource.com/kernel/common android-4.9 8a5e5139be70 4d3d6a50 .config console log report ci-android-49-kasan-gce-root
2019/04/23 05:52 https://android.googlesource.com/kernel/common android-4.9 1ef64dae6217 53199d6e .config console log report ci-android-49-kasan-gce-root
2019/04/22 22:44 https://android.googlesource.com/kernel/common android-4.9 1ef64dae6217 53199d6e .config console log report ci-android-49-kasan-gce-root
2019/04/22 14:51 https://android.googlesource.com/kernel/common android-4.9 1ef64dae6217 0a77c33c .config console log report ci-android-49-kasan-gce-root
2019/04/22 11:54 https://android.googlesource.com/kernel/common android-4.9 1ef64dae6217 0a77c33c .config console log report ci-android-49-kasan-gce-root
2019/04/22 08:52 https://android.googlesource.com/kernel/common android-4.9 1ef64dae6217 0a77c33c .config console log report ci-android-49-kasan-gce-root
2019/04/22 00:04 https://android.googlesource.com/kernel/common android-4.9 1ef64dae6217 b0e8efcb .config console log report ci-android-49-kasan-gce-root
2019/04/21 15:59 https://android.googlesource.com/kernel/common android-4.9 1ef64dae6217 b0e8efcb .config console log report ci-android-49-kasan-gce-root
2019/04/21 11:01 https://android.googlesource.com/kernel/common android-4.9 1ef64dae6217 b0e8efcb .config console log report ci-android-49-kasan-gce-root
2019/04/21 01:04 https://android.googlesource.com/kernel/common android-4.9 1ef64dae6217 b0e8efcb .config console log report ci-android-49-kasan-gce-root
2019/04/20 19:51 https://android.googlesource.com/kernel/common android-4.9 1ef64dae6217 b0e8efcb .config console log report ci-android-49-kasan-gce-root
2019/04/20 07:09 https://android.googlesource.com/kernel/common android-4.9 73ab44b8080b b0e8efcb .config console log report ci-android-49-kasan-gce-root
2019/04/19 16:00 https://android.googlesource.com/kernel/common android-4.9 5d68df32998c b0e8efcb .config console log report ci-android-49-kasan-gce-root
2019/04/19 12:36 https://android.googlesource.com/kernel/common android-4.9 5d68df32998c b0e8efcb .config console log report ci-android-49-kasan-gce-root
2019/04/19 09:12 https://android.googlesource.com/kernel/common android-4.9 5d68df32998c b0e8efcb .config console log report ci-android-49-kasan-gce-root
2019/04/19 04:02 https://android.googlesource.com/kernel/common android-4.9 5d68df32998c b0e8efcb .config console log report ci-android-49-kasan-gce-root
2019/04/19 01:51 https://android.googlesource.com/kernel/common android-4.9 5d68df32998c b0e8efcb .config console log report ci-android-49-kasan-gce-root
2019/04/18 17:36 https://android.googlesource.com/kernel/common android-4.9 50db17e52bb8 b0e8efcb .config console log report ci-android-49-kasan-gce-root
2019/04/18 16:35 https://android.googlesource.com/kernel/common android-4.9 50db17e52bb8 b0e8efcb .config console log report ci-android-49-kasan-gce-root
2019/04/17 20:56 https://android.googlesource.com/kernel/common android-4.9 4ebd139eb4b8 b0e8efcb .config console log report ci-android-49-kasan-gce-root
2019/04/17 14:07 https://android.googlesource.com/kernel/common android-4.9 4ebd139eb4b8 b0e8efcb .config console log report ci-android-49-kasan-gce-root
2019/04/17 09:44 https://android.googlesource.com/kernel/common android-4.9 fc67a895f0a5 b0e8efcb .config console log report ci-android-49-kasan-gce-root
2019/04/17 02:54 https://android.googlesource.com/kernel/common android-4.9 fc67a895f0a5 b0e8efcb .config console log report ci-android-49-kasan-gce-root
2019/04/16 11:39 https://android.googlesource.com/kernel/common android-4.9 fc67a895f0a5 505ab413 .config console log report ci-android-49-kasan-gce-root
2019/04/16 03:17 https://android.googlesource.com/kernel/common android-4.9 fc67a895f0a5 505ab413 .config console log report ci-android-49-kasan-gce-root
2018/09/16 00:53 https://android.googlesource.com/kernel/common android-4.9 be4935d541ab a343a400 .config console log report ci-android-49-kasan-gce-386
* Struck through repros no longer work on HEAD.