syzbot


INFO: task hung in xlog_grant_head_check (3)

Status: upstream: reported C repro on 2022/12/14 09:42
Subsystems: xfs
[Documentation on labels]
Reported-by: syzbot+147b5146470567897a7c@syzkaller.appspotmail.com
First crash: 546d, last: 464d
Similar bugs (6)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 INFO: task hung in xlog_grant_head_check xfs C inconclusive 10 510d 1584d 0/1 upstream: reported C repro on 2020/02/10 12:53
linux-6.1 INFO: task hung in xlog_grant_head_check origin:upstream C error 140 12h02m 437d 0/3 upstream: reported C repro on 2023/04/02 19:36
upstream INFO: task hung in xlog_grant_head_check no-reminders xfs C done error 945 1h13m 2214d 0/28 upstream: reported C repro on 2018/05/21 17:55
linux-5.15 INFO: task hung in xlog_grant_head_check origin:upstream C error 77 9h33m 445d 0/3 upstream: reported C repro on 2023/03/25 07:23
linux-4.19 INFO: task hung in xlog_grant_head_check 1 1813d 1813d 0/1 auto-closed as invalid on 2019/10/25 08:51
linux-4.19 INFO: task hung in xlog_grant_head_check (2) 3 1454d 1502d 0/1 auto-closed as invalid on 2020/10/17 16:39

Sample crash report:
XFS (loop0): Log size out of supported range.
XFS (loop0): Continuing onwards, but if log hangs are experienced then please report this message in the bug report.
XFS (loop0): Starting recovery (logdev: internal)
INFO: task syz-executor367:8113 blocked for more than 140 seconds.
      Not tainted 4.19.211-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syz-executor367 D26288  8113   8112 0x00000004
Call Trace:
 context_switch kernel/sched/core.c:2828 [inline]
 __schedule+0x887/0x2040 kernel/sched/core.c:3517
 schedule+0x8d/0x1b0 kernel/sched/core.c:3561
 xlog_grant_head_wait+0x13b/0xcd0 fs/xfs/xfs_log.c:263
 xlog_grant_head_check+0x3c8/0x420 fs/xfs/xfs_log.c:325
 xfs_log_reserve+0x347/0xa70 fs/xfs/xfs_log.c:454
 xfs_trans_reserve+0x63a/0x9c0 fs/xfs/xfs_trans.c:197
 xfs_trans_alloc+0x2f7/0x700 fs/xfs/xfs_trans.c:289
 xlog_finish_defer_ops fs/xfs/xfs_log_recover.c:4841 [inline]
 xlog_recover_process_intents+0x274/0x430 fs/xfs/xfs_log_recover.c:4947
 xlog_recover_finish+0x5f/0x230 fs/xfs/xfs_log_recover.c:5839
 xfs_log_mount_finish+0x135/0x450 fs/xfs/xfs_log.c:778
 xfs_mountfs+0x1032/0x1bf0 fs/xfs/xfs_mount.c:974
 xfs_fs_fill_super+0xd0e/0x1540 fs/xfs/xfs_super.c:1720
 mount_bdev+0x2fc/0x3b0 fs/super.c:1158
 mount_fs+0xa3/0x310 fs/super.c:1261
 vfs_kern_mount.part.0+0x68/0x470 fs/namespace.c:961
 vfs_kern_mount fs/namespace.c:951 [inline]
 do_new_mount fs/namespace.c:2492 [inline]
 do_mount+0x115c/0x2f50 fs/namespace.c:2822
 ksys_mount+0xcf/0x130 fs/namespace.c:3038
 __do_sys_mount fs/namespace.c:3052 [inline]
 __se_sys_mount fs/namespace.c:3049 [inline]
 __x64_sys_mount+0xba/0x150 fs/namespace.c:3049
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7fad732525ea
Code: Bad RIP value.
RSP: 002b:00007ffe6ccf5e78 EFLAGS: 00000206 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00646975756f6e2c RCX: 00007fad732525ea
RDX: 000000002000bb00 RSI: 0000000020000040 RDI: 00007ffe6ccf5e80
RBP: 00007ffe6ccf5e80 R08: 00007ffe6ccf5ec0 R09: 0000000000000002
R10: 0000000000000003 R11: 0000000000000206 R12: 0000000000000004
R13: 0000555556a9b2c0 R14: 00007ffe6ccf5ec0 R15: 0000000000000000

Showing all locks held in the system:
1 lock held by khungtaskd/1570:
 #0: 00000000a0fa3fbe (rcu_read_lock){....}, at: debug_show_all_locks+0x53/0x265 kernel/locking/lockdep.c:4441
2 locks held by syz-executor367/8113:
 #0: 00000000b1151a2a (&type->s_umount_key#46/1){+.+.}, at: alloc_super fs/super.c:226 [inline]
 #0: 00000000b1151a2a (&type->s_umount_key#46/1){+.+.}, at: sget_userns+0x20b/0xcd0 fs/super.c:519
 #1: 000000008c7c4855 (sb_internal#2){.+.+}, at: sb_start_intwrite include/linux/fs.h:1626 [inline]
 #1: 000000008c7c4855 (sb_internal#2){.+.+}, at: xfs_trans_alloc+0x4fc/0x700 fs/xfs/xfs_trans.c:271

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

NMI backtrace for cpu 0
CPU: 0 PID: 1570 Comm: khungtaskd Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x1fc/0x2ef lib/dump_stack.c:118
 nmi_cpu_backtrace.cold+0x63/0xa2 lib/nmi_backtrace.c:101
 nmi_trigger_cpumask_backtrace+0x1a6/0x1f0 lib/nmi_backtrace.c:62
 trigger_all_cpu_backtrace include/linux/nmi.h:146 [inline]
 check_hung_uninterruptible_tasks kernel/hung_task.c:203 [inline]
 watchdog+0x991/0xe60 kernel/hung_task.c:287
 kthread+0x33f/0x460 kernel/kthread.c:259
 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 4695 Comm: systemd-journal Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
RIP: 0010:get_reg+0x14/0x1f0 arch/x86/kernel/unwind_orc.c:377
Code: 6e 00 eb de 66 90 48 8b 07 48 89 06 c3 66 0f 1f 84 00 00 00 00 00 48 b8 00 00 00 00 00 fc ff df 41 55 49 89 d5 c1 ee 03 41 54 <55> 53 48 89 fb 48 83 c7 50 48 83 ec 68 48 c7 44 24 08 b3 8a b5 41
RSP: 0018:ffff8880a080f990 EFLAGS: 00000202
RAX: dffffc0000000000 RBX: 1ffff11014101f3e RCX: ffffffff8c11b3f7
RDX: ffff8880a080fa30 RSI: 0000000000000004 RDI: ffff8880a080fad8
RBP: 0000000000000001 R08: ffffffff8c11b3f6 R09: ffffffff8c11b3d4
R10: ffff8880a080fb37 R11: 0000000000074071 R12: ffff8880a080ff58
R13: ffff8880a080fa30 R14: ffff8880a080fad8 R15: ffffffff8c11b3f2
FS:  00007f6acf4148c0(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f6acc7e5000 CR3: 00000000a0e6b000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 unwind_next_frame+0xdfc/0x1400 arch/x86/kernel/unwind_orc.c:550
 __save_stack_trace+0x9f/0x190 arch/x86/kernel/stacktrace.c:44
 save_stack mm/kasan/kasan.c:448 [inline]
 set_track mm/kasan/kasan.c:460 [inline]
 kasan_kmalloc+0xeb/0x160 mm/kasan/kasan.c:553
 slab_post_alloc_hook mm/slab.h:445 [inline]
 slab_alloc mm/slab.c:3397 [inline]
 kmem_cache_alloc+0x110/0x370 mm/slab.c:3557
 getname_flags+0xce/0x590 fs/namei.c:140
 user_path_at_empty+0x2a/0x50 fs/namei.c:2609
 user_path_at include/linux/namei.h:57 [inline]
 do_faccessat+0x248/0x7a0 fs/open.c:397
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f6ace6cf9c7
Code: 83 c4 08 48 3d 01 f0 ff ff 73 01 c3 48 8b 0d c8 d4 2b 00 f7 d8 64 89 01 48 83 c8 ff c3 66 0f 1f 44 00 00 b8 15 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d a1 d4 2b 00 f7 d8 64 89 01 48
RSP: 002b:00007ffe2b6e6fd8 EFLAGS: 00000246 ORIG_RAX: 0000000000000015
RAX: ffffffffffffffda RBX: 00007ffe2b6ea000 RCX: 00007f6ace6cf9c7
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 000055ebbf4619a3
RBP: 00007ffe2b6e7120 R08: 000055ebbf4573e5 R09: 0000000000000018
R10: 0000000000000069 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 000055ebc0bda8a0 R15: 00007ffe2b6e7610

Crashes (88):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/01/06 03:35 linux-4.19.y 3f8a27f9e27b 1dac8c7a .config console log report syz C [disk image] [vmlinux] [mounted in repro] ci2-linux-4-19 INFO: task hung in xlog_grant_head_check
2023/01/02 12:11 linux-4.19.y 3f8a27f9e27b ab32d508 .config console log report syz C [disk image] [vmlinux] [mounted in repro] ci2-linux-4-19 INFO: task hung in xlog_grant_head_check
2022/12/22 18:24 linux-4.19.y 3f8a27f9e27b 9da18ae8 .config console log report syz C [disk image] [vmlinux] [mounted in repro] ci2-linux-4-19 INFO: task hung in xlog_grant_head_check
2023/03/06 06:58 linux-4.19.y 3f8a27f9e27b f8902b57 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in xlog_grant_head_check
2023/03/04 20:19 linux-4.19.y 3f8a27f9e27b f8902b57 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in xlog_grant_head_check
2023/03/04 06:57 linux-4.19.y 3f8a27f9e27b f8902b57 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in xlog_grant_head_check
2023/03/04 02:09 linux-4.19.y 3f8a27f9e27b f8902b57 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in xlog_grant_head_check
2023/03/02 03:24 linux-4.19.y 3f8a27f9e27b f8902b57 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in xlog_grant_head_check
2023/03/01 12:17 linux-4.19.y 3f8a27f9e27b ef65e6cb .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in xlog_grant_head_check
2023/03/01 04:59 linux-4.19.y 3f8a27f9e27b 95aee97a .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in xlog_grant_head_check
2023/02/26 04:48 linux-4.19.y 3f8a27f9e27b ee50e71c .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in xlog_grant_head_check
2023/02/24 17:20 linux-4.19.y 3f8a27f9e27b ee50e71c .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in xlog_grant_head_check
2023/02/24 13:43 linux-4.19.y 3f8a27f9e27b ee50e71c .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in xlog_grant_head_check
2023/02/23 13:02 linux-4.19.y 3f8a27f9e27b 9e2ebb3c .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in xlog_grant_head_check
2023/02/23 03:11 linux-4.19.y 3f8a27f9e27b 9f1e2cb3 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in xlog_grant_head_check
2023/02/22 00:38 linux-4.19.y 3f8a27f9e27b 42a4d508 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in xlog_grant_head_check
2023/02/21 18:23 linux-4.19.y 3f8a27f9e27b f949448d .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in xlog_grant_head_check
2023/02/21 10:47 linux-4.19.y 3f8a27f9e27b f949448d .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in xlog_grant_head_check
2023/02/21 00:55 linux-4.19.y 3f8a27f9e27b 2414209c .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in xlog_grant_head_check
2023/02/18 19:15 linux-4.19.y 3f8a27f9e27b d02e9a70 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in xlog_grant_head_check
2023/02/16 17:15 linux-4.19.y 3f8a27f9e27b 38b317a7 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in xlog_grant_head_check
2023/02/16 06:59 linux-4.19.y 3f8a27f9e27b 6be0f1f5 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in xlog_grant_head_check
2023/02/16 03:20 linux-4.19.y 3f8a27f9e27b 6be0f1f5 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in xlog_grant_head_check
2023/02/14 23:22 linux-4.19.y 3f8a27f9e27b e62ba3c1 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in xlog_grant_head_check
2023/02/12 12:46 linux-4.19.y 3f8a27f9e27b 93e26d60 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in xlog_grant_head_check
2023/02/10 07:30 linux-4.19.y 3f8a27f9e27b 07980f9d .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in xlog_grant_head_check
2023/02/08 00:33 linux-4.19.y 3f8a27f9e27b 15c3d445 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in xlog_grant_head_check
2023/02/06 21:22 linux-4.19.y 3f8a27f9e27b 0a9c11b6 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in xlog_grant_head_check
2023/02/05 23:48 linux-4.19.y 3f8a27f9e27b be607b78 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in xlog_grant_head_check
2023/02/05 18:20 linux-4.19.y 3f8a27f9e27b be607b78 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in xlog_grant_head_check
2023/02/05 03:56 linux-4.19.y 3f8a27f9e27b be607b78 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in xlog_grant_head_check
2023/02/04 00:59 linux-4.19.y 3f8a27f9e27b 1b2f701a .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in xlog_grant_head_check
2023/02/03 00:09 linux-4.19.y 3f8a27f9e27b 16d19e30 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in xlog_grant_head_check
2023/02/02 23:04 linux-4.19.y 3f8a27f9e27b 16d19e30 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in xlog_grant_head_check
2023/02/01 23:25 linux-4.19.y 3f8a27f9e27b 9a6f477c .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in xlog_grant_head_check
2023/02/01 15:25 linux-4.19.y 3f8a27f9e27b 9a6f477c .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in xlog_grant_head_check
2023/02/01 09:06 linux-4.19.y 3f8a27f9e27b b68fb8d6 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in xlog_grant_head_check
2023/02/01 02:54 linux-4.19.y 3f8a27f9e27b b68fb8d6 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in xlog_grant_head_check
2023/01/31 14:45 linux-4.19.y 3f8a27f9e27b b68fb8d6 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in xlog_grant_head_check
2023/01/31 04:24 linux-4.19.y 3f8a27f9e27b b68fb8d6 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in xlog_grant_head_check
2023/01/30 19:49 linux-4.19.y 3f8a27f9e27b b68fb8d6 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in xlog_grant_head_check
2023/01/30 14:20 linux-4.19.y 3f8a27f9e27b b68fb8d6 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in xlog_grant_head_check
2023/01/30 08:22 linux-4.19.y 3f8a27f9e27b 9dfcf09c .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in xlog_grant_head_check
2023/01/28 18:49 linux-4.19.y 3f8a27f9e27b 9dfcf09c .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in xlog_grant_head_check
2023/01/28 00:58 linux-4.19.y 3f8a27f9e27b 9dfcf09c .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in xlog_grant_head_check
2023/01/27 08:51 linux-4.19.y 3f8a27f9e27b 9dfcf09c .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in xlog_grant_head_check
2023/01/24 19:16 linux-4.19.y 3f8a27f9e27b 9dfcf09c .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in xlog_grant_head_check
2023/01/24 08:19 linux-4.19.y 3f8a27f9e27b 9dfcf09c .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in xlog_grant_head_check
2023/01/22 22:32 linux-4.19.y 3f8a27f9e27b cc0f9968 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in xlog_grant_head_check
2023/01/21 07:05 linux-4.19.y 3f8a27f9e27b cc0f9968 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in xlog_grant_head_check
2023/01/19 15:31 linux-4.19.y 3f8a27f9e27b 66fca3ae .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in xlog_grant_head_check
2023/01/18 16:36 linux-4.19.y 3f8a27f9e27b 4620c2d9 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in xlog_grant_head_check
2022/12/31 21:51 linux-4.19.y 3f8a27f9e27b ab32d508 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in xlog_grant_head_check
2022/12/30 02:26 linux-4.19.y 3f8a27f9e27b 44712fbc .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in xlog_grant_head_check
2022/12/28 10:12 linux-4.19.y 3f8a27f9e27b 44712fbc .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in xlog_grant_head_check
2022/12/25 05:26 linux-4.19.y 3f8a27f9e27b 9da18ae8 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in xlog_grant_head_check
2022/12/24 11:07 linux-4.19.y 3f8a27f9e27b 9da18ae8 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in xlog_grant_head_check
2022/12/23 15:37 linux-4.19.y 3f8a27f9e27b 9da18ae8 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in xlog_grant_head_check
2022/12/22 16:22 linux-4.19.y 3f8a27f9e27b 9da18ae8 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in xlog_grant_head_check
2022/12/14 09:42 linux-4.19.y 3f8a27f9e27b f6511626 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in xlog_grant_head_check
* Struck through repros no longer work on HEAD.