syzbot


INFO: task hung in loop_set_status

Status: closed as dup on 2021/11/21 14:00
Subsystems: block
[Documentation on labels]
Reported-by: syzbot+62ab33bb3f09cebaf3cf@syzkaller.appspotmail.com
First crash: 889d, last: 882d
Duplicate of
Title Repro Cause bisect Fix bisect Count Last Reported
INFO: task can't die in blk_mq_freeze_queue_wait block 221 880d 888d
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] INFO: task hung in loop_set_status 0 (1) 2021/11/18 15:46
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: task can't die in blk_mq_freeze_queue_wait block 221 880d 888d 20/26 fixed on 2022/03/08 16:11

Sample crash report:
INFO: task syz-executor.5:13368 blocked for more than 143 seconds.
      Not tainted 5.16.0-rc1-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.5  state:D stack:22448 pid:13368 ppid: 24894 flags:0x00004004
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:4972 [inline]
 __schedule+0xb72/0x1460 kernel/sched/core.c:6253
 schedule+0x12b/0x1f0 kernel/sched/core.c:6326
 blk_mq_freeze_queue_wait+0x105/0x190 block/blk-mq.c:178
 loop_set_status+0x183/0xa50 drivers/block/loop.c:1264
 lo_ioctl+0xbc9/0x1f40
 blkdev_ioctl+0x3ac/0x790 block/ioctl.c:609
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:874 [inline]
 __se_sys_ioctl+0xfb/0x170 fs/ioctl.c:860
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7fa9011a8ae9
RSP: 002b:00007fa8fe71e188 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007fa9012bbf60 RCX: 00007fa9011a8ae9
RDX: 0000000020000780 RSI: 0000000000004c02 RDI: 0000000000000007
RBP: 00007fa901202f6d R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffff857d3df R14: 00007fa8fe71e300 R15: 0000000000022000
 </TASK>
INFO: task syz-executor.5:13372 blocked for more than 143 seconds.
      Not tainted 5.16.0-rc1-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.5  state:D stack:24496 pid:13372 ppid: 24894 flags:0x00004004
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:4972 [inline]
 __schedule+0xb72/0x1460 kernel/sched/core.c:6253
 schedule+0x12b/0x1f0 kernel/sched/core.c:6326
 __bio_queue_enter+0x35a/0x690 block/blk-core.c:441
 bio_queue_enter block/blk.h:91 [inline]
 blk_mq_get_request block/blk-mq.c:2588 [inline]
 blk_mq_submit_bio+0x7c9/0x2750 block/blk-mq.c:2632
 __submit_bio+0x15d/0x330 block/blk-core.c:849
 __submit_bio_noacct_mq block/blk-core.c:924 [inline]
 submit_bio_noacct+0x844/0x9e0 block/blk-core.c:950
 submit_bio+0x2d2/0x520 block/blk-core.c:1011
 submit_bh fs/buffer.c:3060 [inline]
 block_read_full_page+0xeda/0x1230 fs/buffer.c:2339
 filemap_read_page+0x174/0x400 mm/filemap.c:2391
 filemap_update_page mm/filemap.c:2470 [inline]
 filemap_get_pages+0x150f/0x1ac0 mm/filemap.c:2579
 filemap_read+0x3f6/0x10f0 mm/filemap.c:2642
 call_read_iter include/linux/fs.h:2156 [inline]
 generic_file_splice_read+0x482/0x760 fs/splice.c:311
 do_splice_to fs/splice.c:796 [inline]
 splice_direct_to_actor+0x45f/0xd00 fs/splice.c:870
 do_splice_direct+0x291/0x3e0 fs/splice.c:979
 do_sendfile+0x6fe/0x1040 fs/read_write.c:1245
 __do_sys_sendfile64 fs/read_write.c:1310 [inline]
 __se_sys_sendfile64+0x171/0x1d0 fs/read_write.c:1296
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7fa9011a8ae9
RSP: 002b:00007fa8fe6fd188 EFLAGS: 00000246 ORIG_RAX: 0000000000000028
RAX: ffffffffffffffda RBX: 00007fa9012bc020 RCX: 00007fa9011a8ae9
RDX: 0000000000000000 RSI: 0000000000000007 RDI: 0000000000000007
RBP: 00007fa901202f6d R08: 0000000000000000 R09: 0000000000000000
R10: 0000000024002da8 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffff857d3df R14: 00007fa8fe6fd300 R15: 0000000000022000
 </TASK>

Showing all locks held in the system:
3 locks held by kworker/u4:0/8:
 #0: ffff8880b9a395d8 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x25/0x110 kernel/sched/core.c:478
 #1: ffff8880b9a27888 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_switch+0x4c1/0x780 kernel/sched/psi.c:880
 #2: ffff8880b9a29198 (&base->lock){-.-.}-{2:2}, at: __mod_timer+0x6d3/0xd20 kernel/time/timer.c:1043
1 lock held by khungtaskd/27:
 #0: ffffffff8cb1dc00 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30
2 locks held by systemd-udevd/2973:
 #0: ffff88801b0c1118 (&disk->open_mutex){+.+.}-{3:3}, at: blkdev_get_by_dev+0xfc/0xb80 block/bdev.c:819
 #1: ffff88801b044b60 (&lo->lo_mutex){+.+.}-{3:3}, at: lo_open+0x68/0x100 drivers/block/loop.c:1733
1 lock held by in:imklog/6177:
 #0: ffff888079331c70 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0x24e/0x2f0 fs/file.c:990
1 lock held by syz-executor.5/13368:
 #0: ffff88801b044b60 (&lo->lo_mutex){+.+.}-{3:3}, at: loop_set_status+0x2a/0xa50 drivers/block/loop.c:1248
1 lock held by syz-executor.5/13372:
 #0: ffff888145a7dbc8 (mapping.invalidate_lock#2){.+.+}-{3:3}, at: filemap_invalidate_lock_shared include/linux/fs.h:838 [inline]
 #0: ffff888145a7dbc8 (mapping.invalidate_lock#2){.+.+}-{3:3}, at: filemap_update_page mm/filemap.c:2441 [inline]
 #0: ffff888145a7dbc8 (mapping.invalidate_lock#2){.+.+}-{3:3}, at: filemap_get_pages+0x94c/0x1ac0 mm/filemap.c:2579

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

NMI backtrace for cpu 0
CPU: 0 PID: 27 Comm: khungtaskd Not tainted 5.16.0-rc1-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x1dc/0x2d8 lib/dump_stack.c:106
 nmi_cpu_backtrace+0x45f/0x490 lib/nmi_backtrace.c:111
 nmi_trigger_cpumask_backtrace+0x16a/0x280 lib/nmi_backtrace.c:62
 trigger_all_cpu_backtrace include/linux/nmi.h:146 [inline]
 check_hung_uninterruptible_tasks kernel/hung_task.c:210 [inline]
 watchdog+0xc82/0xcd0 kernel/hung_task.c:295
 kthread+0x468/0x490 kernel/kthread.c:327
 ret_from_fork+0x1f/0x30
 </TASK>
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 8163 Comm: kworker/u4:6 Not tainted 5.16.0-rc1-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue:  0x0 (bat_events)
RIP: 0010:__lock_acquire+0x4aa/0x2b00 kernel/locking/lockdep.c:4965
Code: 0f 44 0f b7 c0 41 83 e5 03 41 c1 e5 10 8b 4c 24 70 83 e1 01 c1 e1 12 31 d2 83 7c 24 54 00 0f 95 c2 c1 e2 13 8b 45 20 c1 e0 14 <45> 09 c5 41 09 d5 41 09 c5 41 09 cd 45 09 f5 41 09 dd 48 8b 44 24
RSP: 0018:ffffc90016977720 EFLAGS: 00000046
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000080000 RSI: dffffc0000000000 RDI: ffff888087811d00
RBP: ffffc90016977870 R08: 0000000000000000 R09: 0000000000000001
R10: fffffbfff1bfd14e R11: 0000000000000000 R12: ffff888087812744
R13: 0000000000020000 R14: 0000000000000028 R15: ffff8880878127a0
FS:  0000000000000000(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f42bc021130 CR3: 000000000c88e000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 lock_acquire+0x19f/0x4d0 kernel/locking/lockdep.c:5637
 rcu_lock_acquire+0x20/0x30 include/linux/rcupdate.h:268
 rcu_read_lock include/linux/rcupdate.h:688 [inline]
 cgroup_account_cputime include/linux/cgroup.h:794 [inline]
 update_curr+0x418/0xd40 kernel/sched/fair.c:877
 dequeue_entity+0x27/0xd90 kernel/sched/fair.c:4337
 dequeue_task_fair+0x289/0x1360 kernel/sched/fair.c:5688
 dequeue_task kernel/sched/core.c:2019 [inline]
 deactivate_task kernel/sched/core.c:2033 [inline]
 __schedule+0x63c/0x1460 kernel/sched/core.c:6207
 schedule+0x12b/0x1f0 kernel/sched/core.c:6326
 worker_thread+0xfd5/0x1320 kernel/workqueue.c:2466
 kthread+0x468/0x490 kernel/kthread.c:327
 ret_from_fork+0x1f/0x30
 </TASK>
----------------
Code disassembly (best guess):
   0:	0f 44 0f             	cmove  (%rdi),%ecx
   3:	b7 c0                	mov    $0xc0,%bh
   5:	41 83 e5 03          	and    $0x3,%r13d
   9:	41 c1 e5 10          	shl    $0x10,%r13d
   d:	8b 4c 24 70          	mov    0x70(%rsp),%ecx
  11:	83 e1 01             	and    $0x1,%ecx
  14:	c1 e1 12             	shl    $0x12,%ecx
  17:	31 d2                	xor    %edx,%edx
  19:	83 7c 24 54 00       	cmpl   $0x0,0x54(%rsp)
  1e:	0f 95 c2             	setne  %dl
  21:	c1 e2 13             	shl    $0x13,%edx
  24:	8b 45 20             	mov    0x20(%rbp),%eax
  27:	c1 e0 14             	shl    $0x14,%eax
* 2a:	45 09 c5             	or     %r8d,%r13d <-- trapping instruction
  2d:	41 09 d5             	or     %edx,%r13d
  30:	41 09 c5             	or     %eax,%r13d
  33:	41 09 cd             	or     %ecx,%r13d
  36:	45 09 f5             	or     %r14d,%r13d
  39:	41 09 dd             	or     %ebx,%r13d
  3c:	48                   	rex.W
  3d:	8b                   	.byte 0x8b
  3e:	44                   	rex.R
  3f:	24                   	.byte 0x24

Crashes (109):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/11/20 23:34 upstream a90af8f15bdc 4eb20a4e .config console log report info ci-upstream-kasan-gce-smack-root INFO: task hung in loop_set_status
2021/11/20 12:57 upstream a90af8f15bdc 4eb20a4e .config console log report info ci-upstream-kasan-gce-smack-root INFO: task hung in loop_set_status
2021/11/20 04:43 upstream 9539ba4308ad 3a9d0024 .config console log report info ci-upstream-kasan-gce-root INFO: task hung in loop_set_status
2021/11/20 00:47 upstream 9539ba4308ad 3a9d0024 .config console log report info ci-upstream-kasan-gce-root INFO: task hung in loop_set_status
2021/11/19 23:04 upstream 9539ba4308ad 3a9d0024 .config console log report info ci-upstream-kasan-gce-root INFO: task hung in loop_set_status
2021/11/19 21:07 upstream 4c388a8e740d 3a9d0024 .config console log report info ci-upstream-kasan-gce-smack-root INFO: task hung in loop_set_status
2021/11/19 19:16 upstream 4c388a8e740d 3a9d0024 .config console log report info ci-upstream-kasan-gce-root INFO: task hung in loop_set_status
2021/11/19 14:31 upstream 4c388a8e740d 3a9d0024 .config console log report info ci-upstream-kasan-gce-root INFO: task hung in loop_set_status
2021/11/19 06:34 upstream 4c388a8e740d 31a30fc0 .config console log report info ci-upstream-kasan-gce-root INFO: task hung in loop_set_status
2021/11/19 05:22 upstream 6fdf886424cf 31a30fc0 .config console log report info ci-upstream-kasan-gce-selinux-root INFO: task hung in loop_set_status
2021/11/18 23:29 upstream 6fdf886424cf 31a30fc0 .config console log report info ci-upstream-kasan-gce INFO: task hung in loop_set_status
2021/11/18 21:35 upstream 42eb8fdac2fc 31a30fc0 .config console log report info ci-upstream-kasan-gce-root INFO: task hung in loop_set_status
2021/11/18 17:31 upstream 42eb8fdac2fc 31a30fc0 .config console log report info ci-upstream-kasan-gce-smack-root INFO: task hung in loop_set_status
2021/11/18 14:20 upstream 42eb8fdac2fc 31a30fc0 .config console log report info ci-upstream-kasan-gce-smack-root INFO: task hung in loop_set_status
2021/11/18 07:47 upstream 42eb8fdac2fc cafff8b6 .config console log report info ci-upstream-kasan-gce INFO: task hung in loop_set_status
2021/11/18 05:13 upstream ee1703cda8dc cafff8b6 .config console log report info ci-upstream-kasan-gce-smack-root INFO: task hung in loop_set_status
2021/11/18 03:21 upstream ee1703cda8dc cafff8b6 .config console log report info ci-upstream-kasan-gce-root INFO: task hung in loop_set_status
2021/11/17 19:55 upstream ee1703cda8dc cafff8b6 .config console log report info ci-upstream-kasan-gce INFO: task hung in loop_set_status
2021/11/17 18:46 upstream ee1703cda8dc cafff8b6 .config console log report info ci-upstream-kasan-gce-root INFO: task hung in loop_set_status
2021/11/17 13:48 upstream 8ab774587903 cafff8b6 .config console log report info ci-upstream-kasan-gce-smack-root INFO: task hung in loop_set_status
2021/11/17 01:38 upstream 8ab774587903 cafff8b6 .config console log report info ci-upstream-kasan-gce-root INFO: task hung in loop_set_status
2021/11/17 00:30 upstream 8ab774587903 cafff8b6 .config console log report info ci-upstream-kasan-gce-root INFO: task hung in loop_set_status
2021/11/16 22:51 upstream 8ab774587903 cafff8b6 .config console log report info ci-upstream-kasan-gce-smack-root INFO: task hung in loop_set_status
2021/11/16 21:41 upstream 8ab774587903 600426bd .config console log report info ci-upstream-kasan-gce INFO: task hung in loop_set_status
2021/11/16 13:38 upstream 8ab774587903 600426bd .config console log report info ci-upstream-kasan-gce-root INFO: task hung in loop_set_status
2021/11/16 12:13 upstream 8ab774587903 600426bd .config console log report info ci-upstream-kasan-gce-root INFO: task hung in loop_set_status
2021/11/16 11:11 upstream 8ab774587903 600426bd .config console log report info ci-upstream-kasan-gce-root INFO: task hung in loop_set_status
2021/11/16 04:34 upstream 8ab774587903 83f5c9b5 .config console log report info ci-upstream-kasan-gce-root INFO: task hung in loop_set_status
2021/11/15 17:38 upstream 8ab774587903 83f5c9b5 .config console log report info ci-upstream-kasan-gce-root INFO: task hung in loop_set_status
2021/11/15 16:17 upstream 8ab774587903 83f5c9b5 .config console log report info ci-upstream-kasan-gce-root INFO: task hung in loop_set_status
2021/11/15 12:54 upstream fa55b7dcdc43 83f5c9b5 .config console log report info ci-upstream-kasan-gce INFO: task hung in loop_set_status
2021/11/15 04:28 upstream fa55b7dcdc43 83f5c9b5 .config console log report info ci-upstream-kasan-gce-root INFO: task hung in loop_set_status
2021/11/15 02:42 upstream c8c109546a19 83f5c9b5 .config console log report info ci-upstream-kasan-gce INFO: task hung in loop_set_status
2021/11/15 02:33 upstream c8c109546a19 83f5c9b5 .config console log report info ci-upstream-kasan-gce INFO: task hung in loop_set_status
2021/11/15 01:33 upstream c8c109546a19 83f5c9b5 .config console log report info ci-upstream-kasan-gce INFO: task hung in loop_set_status
2021/11/15 01:23 upstream c8c109546a19 83f5c9b5 .config console log report info ci-upstream-kasan-gce-root INFO: task hung in loop_set_status
2021/11/14 22:08 upstream c8c109546a19 83f5c9b5 .config console log report info ci-upstream-kasan-gce INFO: task hung in loop_set_status
2021/11/14 18:32 upstream c8c109546a19 83f5c9b5 .config console log report info ci-upstream-kasan-gce INFO: task hung in loop_set_status
2021/11/14 16:19 upstream c8c109546a19 83f5c9b5 .config console log report info ci-upstream-kasan-gce INFO: task hung in loop_set_status
2021/11/14 15:59 upstream c8c109546a19 83f5c9b5 .config console log report info ci-upstream-kasan-gce-root INFO: task hung in loop_set_status
2021/11/14 15:53 upstream c8c109546a19 83f5c9b5 .config console log report info ci-upstream-kasan-gce INFO: task hung in loop_set_status
2021/11/14 15:42 upstream c8c109546a19 83f5c9b5 .config console log report info ci-upstream-kasan-gce-root INFO: task hung in loop_set_status
2021/11/14 15:31 upstream c8c109546a19 83f5c9b5 .config console log report info ci-upstream-kasan-gce INFO: task hung in loop_set_status
2021/11/14 00:50 upstream ccfff0a2bd2a 83f5c9b5 .config console log report info ci-upstream-kasan-gce-smack-root INFO: task hung in loop_set_status
2021/11/20 19:32 upstream a90af8f15bdc 4eb20a4e .config console log report info ci-upstream-kasan-gce-386 INFO: task hung in loop_set_status
2021/11/19 16:15 upstream 4c388a8e740d 3a9d0024 .config console log report info ci-upstream-kasan-gce-386 INFO: task hung in loop_set_status
2021/11/19 11:15 upstream 4c388a8e740d 31a30fc0 .config console log report info ci-upstream-kasan-gce-386 INFO: task hung in loop_set_status
2021/11/18 16:07 upstream 42eb8fdac2fc 31a30fc0 .config console log report info ci-upstream-kasan-gce-386 INFO: task hung in loop_set_status
2021/11/18 10:50 upstream 42eb8fdac2fc cafff8b6 .config console log report info ci-upstream-kasan-gce-386 INFO: task hung in loop_set_status
2021/11/18 09:48 upstream 42eb8fdac2fc cafff8b6 .config console log report info ci-upstream-kasan-gce-386 INFO: task hung in loop_set_status
2021/11/16 19:01 upstream 8ab774587903 600426bd .config console log report info ci-upstream-kasan-gce-386 INFO: task hung in loop_set_status
2021/11/16 07:48 upstream 8ab774587903 83f5c9b5 .config console log report info ci-upstream-kasan-gce-386 INFO: task hung in loop_set_status
2021/11/16 06:10 upstream 8ab774587903 83f5c9b5 .config console log report info ci-upstream-kasan-gce-386 INFO: task hung in loop_set_status
2021/11/15 22:37 upstream 8ab774587903 83f5c9b5 .config console log report info ci-upstream-kasan-gce-386 INFO: task hung in loop_set_status
2021/11/14 20:00 upstream c8c109546a19 83f5c9b5 .config console log report info ci-upstream-kasan-gce-386 INFO: task hung in loop_set_status
* Struck through repros no longer work on HEAD.