syzbot


INFO: task hung in blkdev_fallocate

Status: upstream: reported C repro on 2022/01/03 09:11
Reported-by: syzbot+39b75c02b8be0a061bfc@syzkaller.appspotmail.com
First crash: 286d, last: 34d

Cause bisection: failed (bisect log)

Fix bisection: failed (bisect log)
duplicates (1):
Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
INFO: task can't die in blkdev_common_ioctl 21 3d01h 130d 0/23 closed as dup on 2022/04/02 11:26

Sample crash report:
INFO: task syz-executor274:3618 blocked for more than 143 seconds.
      Not tainted 5.19.0-rc5-syzkaller-00105-g9f09069cde34 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor274 state:D stack:28128 pid: 3618 ppid:  3614 flags:0x00004004
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5146 [inline]
 __schedule+0xa00/0x4b50 kernel/sched/core.c:6458
 schedule+0xd2/0x1f0 kernel/sched/core.c:6530
 rwsem_down_write_slowpath+0x68a/0x11a0 kernel/locking/rwsem.c:1172
 __down_write_common kernel/locking/rwsem.c:1287 [inline]
 __down_write_common kernel/locking/rwsem.c:1284 [inline]
 __down_write kernel/locking/rwsem.c:1296 [inline]
 down_write+0x135/0x150 kernel/locking/rwsem.c:1543
 filemap_invalidate_lock include/linux/fs.h:786 [inline]
 blkdev_fallocate+0x1e2/0x410 block/fops.c:637
 vfs_fallocate+0x487/0xe00 fs/open.c:323
 ksys_fallocate fs/open.c:346 [inline]
 __do_sys_fallocate fs/open.c:354 [inline]
 __se_sys_fallocate fs/open.c:352 [inline]
 __x64_sys_fallocate+0xcf/0x140 fs/open.c:352
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x46/0xb0
RIP: 0033:0x7fd59937ce29
RSP: 002b:00007ffe9efbbb58 EFLAGS: 00000246 ORIG_RAX: 000000000000011d
RAX: ffffffffffffffda RBX: 00000000000f4240 RCX: 00007fd59937ce29
RDX: 0000000000000000 RSI: 0000000000000011 RDI: 0000000000000004
RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000001
R10: 7fffffffffffffff R11: 0000000000000246 R12: 00007fd599340600
R13: 0000000000000000 R14: 00007ffe9efbbb80 R15: 00007ffe9efbbb70
 </TASK>
INFO: task syz-executor274:3619 blocked for more than 143 seconds.
      Not tainted 5.19.0-rc5-syzkaller-00105-g9f09069cde34 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor274 state:D stack:28208 pid: 3619 ppid:  3612 flags:0x00004004
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5146 [inline]
 __schedule+0xa00/0x4b50 kernel/sched/core.c:6458
 schedule+0xd2/0x1f0 kernel/sched/core.c:6530
 rwsem_down_write_slowpath+0x68a/0x11a0 kernel/locking/rwsem.c:1172
 __down_write_common kernel/locking/rwsem.c:1287 [inline]
 __down_write_common kernel/locking/rwsem.c:1284 [inline]
 __down_write kernel/locking/rwsem.c:1296 [inline]
 down_write+0x135/0x150 kernel/locking/rwsem.c:1543
 filemap_invalidate_lock include/linux/fs.h:786 [inline]
 blkdev_fallocate+0x1e2/0x410 block/fops.c:637
 vfs_fallocate+0x487/0xe00 fs/open.c:323
 ksys_fallocate fs/open.c:346 [inline]
 __do_sys_fallocate fs/open.c:354 [inline]
 __se_sys_fallocate fs/open.c:352 [inline]
 __x64_sys_fallocate+0xcf/0x140 fs/open.c:352
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x46/0xb0
RIP: 0033:0x7fd59937ce29
RSP: 002b:00007ffe9efbbb58 EFLAGS: 00000246 ORIG_RAX: 000000000000011d
RAX: ffffffffffffffda RBX: 00000000000f4240 RCX: 00007fd59937ce29
RDX: 0000000000000000 RSI: 0000000000000011 RDI: 0000000000000004
RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000001
R10: 7fffffffffffffff R11: 0000000000000246 R12: 00007fd599340600
R13: 0000000000000000 R14: 00007ffe9efbbb80 R15: 00007ffe9efbbb70
 </TASK>
INFO: task syz-executor274:3636 blocked for more than 143 seconds.
      Not tainted 5.19.0-rc5-syzkaller-00105-g9f09069cde34 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor274 state:D stack:27616 pid: 3636 ppid:  3611 flags:0x00004004
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5146 [inline]
 __schedule+0xa00/0x4b50 kernel/sched/core.c:6458
 schedule+0xd2/0x1f0 kernel/sched/core.c:6530
 rwsem_down_write_slowpath+0x68a/0x11a0 kernel/locking/rwsem.c:1172
 __down_write_common kernel/locking/rwsem.c:1287 [inline]
 __down_write_common kernel/locking/rwsem.c:1284 [inline]
 __down_write kernel/locking/rwsem.c:1296 [inline]
 down_write+0x135/0x150 kernel/locking/rwsem.c:1543
 filemap_invalidate_lock include/linux/fs.h:786 [inline]
 blkdev_fallocate+0x1e2/0x410 block/fops.c:637
 vfs_fallocate+0x487/0xe00 fs/open.c:323
 ksys_fallocate fs/open.c:346 [inline]
 __do_sys_fallocate fs/open.c:354 [inline]
 __se_sys_fallocate fs/open.c:352 [inline]
 __x64_sys_fallocate+0xcf/0x140 fs/open.c:352
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x46/0xb0
RIP: 0033:0x7fd59937ce29
RSP: 002b:00007ffe9efbbb58 EFLAGS: 00000246 ORIG_RAX: 000000000000011d
RAX: ffffffffffffffda RBX: 00000000000f4240 RCX: 00007fd59937ce29
RDX: 0000000000000000 RSI: 0000000000000011 RDI: 0000000000000004
RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000001
R10: 7fffffffffffffff R11: 0000000000000246 R12: 000000000000c4c6
R13: 00007ffe9efbbb6c R14: 00007ffe9efbbb80 R15: 00007ffe9efbbb70
 </TASK>

Showing all locks held in the system:
1 lock held by khungtaskd/27:
 #0: ffffffff8bd83b60 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x53/0x260 kernel/locking/lockdep.c:6491
3 locks held by kworker/1:1H/108:
3 locks held by klogd/2965:
2 locks held by getty/3290:
 #0: ffff88814ab7d098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x22/0x80 drivers/tty/tty_ldisc.c:244
 #1: ffffc90001c382e8 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xe50/0x13c0 drivers/tty/n_tty.c:2124
1 lock held by syz-executor274/3613:
 #0: ffff88814056a9c0 (mapping.invalidate_lock#2){++++}-{3:3}, at: filemap_invalidate_lock include/linux/fs.h:786 [inline]
 #0: ffff88814056a9c0 (mapping.invalidate_lock#2){++++}-{3:3}, at: blkdev_fallocate+0x1e2/0x410 block/fops.c:637
1 lock held by syz-executor274/3618:
 #0: ffff88814056a9c0 (mapping.invalidate_lock#2){++++}-{3:3}, at: filemap_invalidate_lock include/linux/fs.h:786 [inline]
 #0: ffff88814056a9c0 (mapping.invalidate_lock#2){++++}-{3:3}, at: blkdev_fallocate+0x1e2/0x410 block/fops.c:637
1 lock held by syz-executor274/3619:
 #0: ffff88814056a9c0 (mapping.invalidate_lock#2){++++}-{3:3}, at: filemap_invalidate_lock include/linux/fs.h:786 [inline]
 #0: ffff88814056a9c0 (mapping.invalidate_lock#2){++++}-{3:3}, at: blkdev_fallocate+0x1e2/0x410 block/fops.c:637
1 lock held by syz-executor274/3636:
 #0: ffff88814056a9c0 (mapping.invalidate_lock#2){++++}-{3:3}, at: filemap_invalidate_lock include/linux/fs.h:786 [inline]
 #0: ffff88814056a9c0 (mapping.invalidate_lock#2){++++}-{3:3}, at: blkdev_fallocate+0x1e2/0x410 block/fops.c:637
1 lock held by syz-executor274/3637:
 #0: ffff88814056a9c0 (mapping.invalidate_lock#2){++++}-{3:3}, at: filemap_invalidate_lock include/linux/fs.h:786 [inline]
 #0: ffff88814056a9c0 (mapping.invalidate_lock#2){++++}-{3:3}, at: blkdev_fallocate+0x1e2/0x410 block/fops.c:637
1 lock held by syz-executor274/3644:
 #0: ffff88814056a9c0 (mapping.invalidate_lock#2){++++}-{3:3}, at: filemap_invalidate_lock include/linux/fs.h:786 [inline]
 #0: ffff88814056a9c0 (mapping.invalidate_lock#2){++++}-{3:3}, at: blkdev_fallocate+0x1e2/0x410 block/fops.c:637

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

NMI backtrace for cpu 0
CPU: 0 PID: 27 Comm: khungtaskd Not tainted 5.19.0-rc5-syzkaller-00105-g9f09069cde34 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/29/2022
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106
 nmi_cpu_backtrace.cold+0x47/0x144 lib/nmi_backtrace.c:111
 nmi_trigger_cpumask_backtrace+0x1e6/0x230 lib/nmi_backtrace.c:62
 trigger_all_cpu_backtrace include/linux/nmi.h:146 [inline]
 check_hung_uninterruptible_tasks kernel/hung_task.c:212 [inline]
 watchdog+0xc1d/0xf50 kernel/hung_task.c:369
 kthread+0x2e9/0x3a0 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:302
 </TASK>
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 2965 Comm: klogd Not tainted 5.19.0-rc5-syzkaller-00105-g9f09069cde34 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/29/2022
RIP: 0010:lockdep_enabled kernel/locking/lockdep.c:121 [inline]
RIP: 0010:lock_release+0x124/0x780 kernel/locking/lockdep.c:5678
Code: 85 e8 02 00 00 65 4c 8b 34 25 80 6f 02 00 49 8d be 5c 0a 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 0f b6 14 02 <48> 89 f8 83 e0 07 83 c0 03 38 d0 7c 08 84 d2 0f 85 a4 05 00 00 45
RSP: 0018:ffffc9000306f6b8 EFLAGS: 00000807
RAX: dffffc0000000000 RBX: ffffffff8dbb264c RCX: 0000000000000001
RDX: 0000000000000000 RSI: 0000000000000001 RDI: ffff88807cd92bdc
RBP: 1ffff9200060ded9 R08: 0000000000000000 R09: ffffffff8dbaf297
R10: 0000000000000001 R11: 0000000000000001 R12: ffff8880b9b357a0
R13: 0000000000000001 R14: ffff88807cd92180 R15: 0000000000000000
FS:  00007fa832290800(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055a578ea0000 CR3: 000000007cc59000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 local_lock_release include/linux/local_lock_internal.h:38 [inline]
 free_unref_page+0x344/0x6a0 mm/page_alloc.c:3459
 slab_destroy mm/slab.c:1615 [inline]
 slabs_destroy+0x89/0xc0 mm/slab.c:1635
 cache_flusharray mm/slab.c:3397 [inline]
 ___cache_free+0x34e/0x670 mm/slab.c:3460
 qlink_free mm/kasan/quarantine.c:168 [inline]
 qlist_free_all+0x4f/0x1b0 mm/kasan/quarantine.c:187
 kasan_quarantine_reduce+0x180/0x200 mm/kasan/quarantine.c:294
 __kasan_slab_alloc+0x97/0xb0 mm/kasan/common.c:446
 kasan_slab_alloc include/linux/kasan.h:224 [inline]
 slab_post_alloc_hook mm/slab.h:750 [inline]
 slab_alloc_node mm/slab.c:3239 [inline]
 kmem_cache_alloc_node+0x2ea/0x590 mm/slab.c:3593
 __alloc_skb+0x215/0x340 net/core/skbuff.c:414
 alloc_skb include/linux/skbuff.h:1426 [inline]
 alloc_skb_with_frags+0x93/0x730 net/core/skbuff.c:5992
 sock_alloc_send_pskb+0x793/0x920 net/core/sock.c:2662
 unix_dgram_sendmsg+0x425/0x1ad0 net/unix/af_unix.c:1895
 sock_sendmsg_nosec net/socket.c:714 [inline]
 sock_sendmsg+0xcf/0x120 net/socket.c:734
 __sys_sendto+0x21a/0x320 net/socket.c:2119
 __do_sys_sendto net/socket.c:2131 [inline]
 __se_sys_sendto net/socket.c:2127 [inline]
 __x64_sys_sendto+0xdd/0x1b0 net/socket.c:2127
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x46/0xb0
RIP: 0033:0x7fa83242c0ac
Code: 89 02 48 c7 c0 ff ff ff ff eb b8 0f 1f 00 41 89 ca 64 8b 04 25 18 00 00 00 85 c0 75 19 45 31 c9 45 31 c0 b8 2c 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 64 c3 0f 1f 00 55 48 83 ec 20 48 89 54 24 10
RSP: 002b:00007ffdb6f6fbb8 EFLAGS: 00000246 ORIG_RAX: 000000000000002c
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fa83242c0ac
RDX: 000000000000004e RSI: 00005588c8440100 RDI: 0000000000000003
RBP: 00005588c843a2c0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000004000 R11: 0000000000000246 R12: 0000000000000014
R13: 0000000000000001 R14: 00007fa8325a777d R15: 00007ffdb6f6fcc8
 </TASK>
INFO: NMI handler (nmi_cpu_backtrace_handler) took too long to run: 1.129 msecs
----------------
Code disassembly (best guess):
   0:	85 e8                	test   %ebp,%eax
   2:	02 00                	add    (%rax),%al
   4:	00 65 4c             	add    %ah,0x4c(%rbp)
   7:	8b 34 25 80 6f 02 00 	mov    0x26f80,%esi
   e:	49 8d be 5c 0a 00 00 	lea    0xa5c(%r14),%rdi
  15:	48 b8 00 00 00 00 00 	movabs $0xdffffc0000000000,%rax
  1c:	fc ff df
  1f:	48 89 fa             	mov    %rdi,%rdx
  22:	48 c1 ea 03          	shr    $0x3,%rdx
  26:	0f b6 14 02          	movzbl (%rdx,%rax,1),%edx
* 2a:	48 89 f8             	mov    %rdi,%rax <-- trapping instruction
  2d:	83 e0 07             	and    $0x7,%eax
  30:	83 c0 03             	add    $0x3,%eax
  33:	38 d0                	cmp    %dl,%al
  35:	7c 08                	jl     0x3f
  37:	84 d2                	test   %dl,%dl
  39:	0f 85 a4 05 00 00    	jne    0x5e3
  3f:	45                   	rex.RB

Crashes (34):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce-selinux-root 2022/07/07 09:56 upstream 9f09069cde34 bff65f44 .config log report syz C INFO: task hung in blkdev_fallocate
ci-upstream-kasan-gce-smack-root 2022/06/03 09:16 upstream 50fd82b3a9a9 02dddea8 .config log report syz C INFO: task hung in blkdev_fallocate
ci-upstream-kasan-gce-root 2022/04/19 06:14 upstream b2d229d4ddb1 8bcc32a6 .config log report syz C INFO: task hung in blkdev_fallocate
ci-upstream-kasan-gce 2021/12/30 08:55 upstream eec4df26e24e 6cc879d4 .config log report syz C INFO: task hung in blkdev_fallocate
ci-upstream-linux-next-kasan-gce-root 2022/05/28 17:39 linux-next d3fde8ff50ab a46af346 .config log report syz C INFO: task hung in blkdev_fallocate
ci-upstream-kasan-gce-root 2022/07/07 10:48 upstream 9f09069cde34 bff65f44 .config log report info INFO: task hung in blkdev_fallocate
ci-upstream-kasan-gce-smack-root 2022/07/05 16:56 upstream c1084b6c5620 bff65f44 .config log report info INFO: task hung in blkdev_fallocate
ci-upstream-kasan-gce-selinux-root 2022/06/30 13:15 upstream d9b2ba67917c 1434eec0 .config log report info INFO: task hung in blkdev_fallocate
ci-upstream-kasan-gce-smack-root 2022/06/20 21:28 upstream 78ca55889a54 8d15e28d .config log report info INFO: task hung in blkdev_fallocate
ci-upstream-kasan-gce-smack-root 2022/06/14 13:31 upstream b13baccc3850 0f087040 .config log report info INFO: task hung in blkdev_fallocate
ci-upstream-kasan-gce-root 2022/06/14 13:25 upstream b13baccc3850 0f087040 .config log report info INFO: task hung in blkdev_fallocate
ci-upstream-kasan-gce-root 2022/04/29 13:00 upstream 38d741cb70b3 e9076525 .config log report info INFO: task hung in blkdev_fallocate
ci-upstream-kasan-gce-root 2022/04/15 16:16 upstream 028192fea1de 8bcc32a6 .config log report info INFO: task hung in blkdev_fallocate
ci-upstream-kasan-gce-smack-root 2022/04/12 15:29 upstream ce522ba9ef7e af01ee7d .config log report info INFO: task hung in blkdev_fallocate
ci-upstream-kasan-gce-selinux-root 2022/03/14 07:26 upstream f0e18b03fcaf 9e8eaa75 .config log report info INFO: task hung in blkdev_fallocate
ci-upstream-kasan-gce-root 2022/03/08 10:49 upstream ea4424be1688 7bdd8b2c .config log report info INFO: task hung in blkdev_fallocate
ci-upstream-kasan-gce-root 2022/01/16 20:45 upstream d0a231f01e5b 723cfaf0 .config log report info INFO: task hung in blkdev_fallocate
ci-upstream-kasan-gce-root 2022/01/01 18:47 upstream 800829388818 e1768e9c .config log report info INFO: task hung in blkdev_fallocate
ci-upstream-kasan-gce 2021/12/30 07:16 upstream eec4df26e24e 6cc879d4 .config log report info INFO: task hung in blkdev_fallocate
ci-upstream-kasan-gce-selinux-root 2021/12/19 05:25 upstream 3f667b5d4053 44068e19 .config log report info INFO: task hung in blkdev_fallocate
ci-upstream-kasan-gce-selinux-root 2021/12/06 18:53 upstream 0fcfb00b28c0 579a8754 .config log report info INFO: task hung in blkdev_fallocate
ci-upstream-kasan-gce-smack-root 2021/12/03 03:28 upstream a51e3ac43ddb 61f86278 .config log report info INFO: task hung in blkdev_fallocate
ci-upstream-kasan-gce 2021/12/03 02:09 upstream a51e3ac43ddb 61f86278 .config log report info INFO: task hung in blkdev_fallocate
ci-upstream-kasan-gce 2021/11/27 21:36 upstream 741392771338 63eeac02 .config log report info INFO: task hung in blkdev_fallocate
ci-upstream-kasan-gce 2021/11/26 23:32 upstream c5c17547b778 63eeac02 .config log report info INFO: task hung in blkdev_fallocate
ci-upstream-kasan-gce-root 2021/11/25 02:40 upstream 5f53fa508db0 545ab074 .config log report info INFO: task hung in blkdev_fallocate
ci-upstream-kasan-gce 2021/11/14 23:34 upstream c8c109546a19 83f5c9b5 .config log report info INFO: task hung in blkdev_fallocate
ci-upstream-kasan-gce-selinux-root 2021/11/12 15:23 upstream 5833291ab6de 75b04091 .config log report info INFO: task hung in blkdev_fallocate
ci-upstream-kasan-gce-root 2021/11/11 08:16 upstream 881007522c8f 75b04091 .config log report info INFO: task hung in blkdev_fallocate
ci-upstream-kasan-gce-root 2021/11/08 17:01 upstream 6b75d88fa81b d29682f1 .config log report info INFO: task hung in blkdev_fallocate
ci-upstream-kasan-gce-root 2021/10/28 21:23 upstream 1fc596a56b33 be531bb4 .config log report info INFO: task hung in blkdev_fallocate
ci-upstream-kasan-gce-386 2021/11/11 20:40 upstream debe436e77c7 75b04091 .config log report info INFO: task hung in blkdev_fallocate
ci-upstream-kasan-gce-386 2021/11/09 05:19 upstream e851dfae4371 8ab17e57 .config log report info INFO: task hung in blkdev_fallocate
ci-upstream-linux-next-kasan-gce-root 2021/11/30 06:01 linux-next f81e94e91878 d0830353 .config log report info INFO: task can't die in blkdev_fallocate