syzbot


INFO: task hung in xlog_grant_head_check

Status: upstream: reported C repro on 2018/05/21 17:55
Subsystems: xfs
Labels: no-reminders
[Documentation on labels]
Reported-by: syzbot+568245b88fbaedcb1959@syzkaller.appspotmail.com
First crash: 2166d, last: 2d08h
Cause bisection: the issue happens on the oldest tested release (bisect log)
Crash: INFO: task hung in xlog_grant_head_check (log)
Repro: C syz .config
  
Fix bisection: failed (error log, bisect log)
  
Discussions (3)
Title Replies (including bot) Last reply
[syzbot] Monthly xfs report (May 2023) 1 (2) 2023/05/05 13:59
[syzbot] Monthly xfs report 3 (4) 2023/04/12 21:54
INFO: task hung in xlog_grant_head_check 23 (24) 2018/06/15 09:32
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 461d 1535d 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 58 14h14m 388d 0/3 upstream: reported C repro on 2023/04/02 19:36
linux-4.19 INFO: task hung in xlog_grant_head_check (3) xfs C 88 416d 498d 0/1 upstream: reported C repro on 2022/12/14 09:42
linux-5.15 INFO: task hung in xlog_grant_head_check origin:upstream C error 43 7h39m 397d 0/3 upstream: reported C repro on 2023/03/25 07:23
linux-4.19 INFO: task hung in xlog_grant_head_check 1 1764d 1764d 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 1405d 1454d 0/1 auto-closed as invalid on 2020/10/17 16:39
Last patch testing requests (10)
Created Duration User Patch Repo Result
2024/04/01 13:59 23m retest repro upstream error OK
2024/01/22 06:15 27m retest repro upstream error OK
2023/11/12 13:49 28m retest repro upstream error OK
2023/09/03 13:10 52m retest repro upstream OK log
2023/09/03 13:10 49m retest repro upstream OK log
2023/09/03 13:10 26m retest repro upstream error OK
2023/09/03 08:45 25m retest repro git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci OK log
2023/09/03 08:45 25m retest repro git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci OK log
2023/09/03 08:45 25m retest repro git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci OK log
2023/09/03 08:45 21m retest repro linux-next OK log
Fix bisection attempts (6)
Created Duration User Patch Repo Result
2020/05/10 12:17 0m bisect fix upstream error job log (0)
2020/04/10 11:52 24m bisect fix upstream job log (0) log
2020/02/12 01:16 23m bisect fix upstream job log (0) log
2020/01/13 00:43 23m bisect fix upstream job log (0) log
2019/12/11 05:22 24m bisect fix upstream job log (0) log
2019/08/13 01:16 24m bisect fix upstream job log (0) log

Sample crash report:
INFO: task syz-executor135:6259 blocked for more than 143 seconds.
      Not tainted 6.9.0-rc3-syzkaller-gb5d2afe8745b #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor135 state:D stack:0     pid:6259  tgid:6259  ppid:6258   flags:0x0000000d
Call trace:
 __switch_to+0x314/0x560 arch/arm64/kernel/process.c:553
 context_switch kernel/sched/core.c:5409 [inline]
 __schedule+0x14bc/0x24ec kernel/sched/core.c:6746
 __schedule_loop kernel/sched/core.c:6823 [inline]
 schedule+0xbc/0x238 kernel/sched/core.c:6838
 xlog_grant_head_wait+0x3a8/0xaf0 fs/xfs/xfs_log.c:307
 xlog_grant_head_check+0x218/0x3d8
 xfs_log_reserve+0x39c/0xc28 fs/xfs/xfs_log.c:486
 xfs_trans_reserve+0x1f4/0x5e0 fs/xfs/xfs_trans.c:195
 xfs_trans_alloc+0x410/0x950 fs/xfs/xfs_trans.c:284
 xfs_trans_alloc_inode+0x170/0x4f4 fs/xfs/xfs_trans.c:1203
 xfs_attr_set+0x8e8/0x13d0 fs/xfs/libxfs/xfs_attr.c:983
 xfs_attr_change fs/xfs/xfs_xattr.c:117 [inline]
 xfs_xattr_set+0x1a8/0x30c fs/xfs/xfs_xattr.c:165
 __vfs_setxattr+0x3d8/0x400 fs/xattr.c:200
 __vfs_setxattr_noperm+0x110/0x528 fs/xattr.c:234
 __vfs_setxattr_locked+0x1ec/0x218 fs/xattr.c:295
 vfs_setxattr+0x1a8/0x344 fs/xattr.c:321
 do_setxattr fs/xattr.c:629 [inline]
 setxattr+0x208/0x29c fs/xattr.c:652
 path_setxattr+0x17c/0x258 fs/xattr.c:671
 __do_sys_lsetxattr fs/xattr.c:694 [inline]
 __se_sys_lsetxattr fs/xattr.c:690 [inline]
 __arm64_sys_lsetxattr+0xbc/0xd8 fs/xattr.c:690
 __invoke_syscall arch/arm64/kernel/syscall.c:34 [inline]
 invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:48
 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:133
 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:152
 el0_svc+0x54/0x168 arch/arm64/kernel/entry-common.c:712
 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:730
 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:598

Showing all locks held in the system:
1 lock held by khungtaskd/30:
 #0: ffff80008f057880 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0xc/0x44 include/linux/rcupdate.h:328
2 locks held by getty/6007:
 #0: ffff0000d27d10a0 (&tty->ldisc_sem){++++}-{0:0}, at: ldsem_down_read+0x3c/0x4c drivers/tty/tty_ldsem.c:340
 #1: ffff800097b9b2f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x41c/0x1228 drivers/tty/n_tty.c:2201
3 locks held by syz-executor135/6259:
 #0: ffff0000d8830420 (sb_writers#8){.+.+}-{0:0}, at: mnt_want_write+0x44/0x9c fs/namespace.c:409
 #1: ffff0000dbb81a78 (&inode->i_sb->s_type->i_mutex_dir_key){++++}-{3:3}, at: inode_lock include/linux/fs.h:795 [inline]
 #1: ffff0000dbb81a78 (&inode->i_sb->s_type->i_mutex_dir_key){++++}-{3:3}, at: vfs_setxattr+0x17c/0x344 fs/xattr.c:320
 #2: ffff0000d8830610 (sb_internal#2){.+.+}-{0:0}, at: xfs_trans_alloc_inode+0x170/0x4f4 fs/xfs/xfs_trans.c:1203

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


Crashes (718):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/04/15 01:15 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci b5d2afe8745b c8349e48 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-gce-arm64 INFO: task hung in xlog_grant_head_check
2018/05/20 18:12 upstream 203ec2fed17a f48c20b8 .config console log report syz C ci-upstream-kasan-gce-root
2023/06/25 03:46 upstream a92b7d26c743 09ffe269 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-gce-root INFO: task hung in xlog_grant_head_check
2023/06/17 04:52 upstream 40f71e7cd3c6 f3921d4d .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-gce-smack-root INFO: task hung in xlog_grant_head_check
2023/06/14 18:09 upstream b6dad5178cea d2ee9228 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-gce-smack-root INFO: task hung in xlog_grant_head_check
2023/05/21 12:55 upstream 0dd2a6fb1e34 4bce1a3e .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs INFO: task hung in xlog_grant_head_check
2023/02/06 23:45 upstream d2d11f342b17 0a9c11b6 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-gce-root INFO: task hung in xlog_grant_head_check
2023/02/02 02:36 upstream c0b67534c95c 9dfcf09c .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-gce-root INFO: task hung in xlog_grant_head_check
2022/12/25 00:44 upstream 72a85e2b0a1e 9da18ae8 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs INFO: task hung in xlog_grant_head_check
2022/12/22 21:22 upstream 0a924817d2ed 9da18ae8 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs INFO: task hung in xlog_grant_head_check
2023/02/26 10:24 linux-next 8232539f864c ee50e71c .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-linux-next-kasan-gce-root INFO: task hung in xlog_grant_head_check
2023/05/21 12:49 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci f1fcbaa18b28 4bce1a3e .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-gce-arm64 INFO: task hung in xlog_grant_head_check
2022/12/24 05:43 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a5541c0811a0 9da18ae8 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-gce-arm64 INFO: task hung in xlog_grant_head_check
2022/12/22 19:11 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a5541c0811a0 c692fab1 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-gce-arm64 INFO: task hung in xlog_grant_head_check
2020/03/11 06:50 upstream f35111a94654 35f53e45 .config console log report syz C ci-upstream-kasan-gce-selinux-root
2020/03/08 12:10 upstream c20037652700 2e9971bb .config console log report syz C ci-upstream-kasan-gce-root
2020/03/05 15:55 upstream 63623fd44972 c88c7b75 .config console log report syz C ci-upstream-kasan-gce-smack-root
2024/04/23 03:31 upstream 4d2008430ce8 21339d7b .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root INFO: task hung in xlog_grant_head_check
2024/04/12 14:41 upstream fe46a7dd189e 27de0a5c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root INFO: task hung in xlog_grant_head_check
2023/06/28 15:35 upstream e8f75c0270d9 8064cb02 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root INFO: task hung in xlog_grant_head_check
2023/06/28 14:28 upstream b19edac5992d 4cd5bb25 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in xlog_grant_head_check
2023/06/27 23:20 upstream b19edac5992d 4cd5bb25 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in xlog_grant_head_check
2023/06/27 21:32 upstream b19edac5992d 4cd5bb25 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in xlog_grant_head_check
2023/06/26 13:31 upstream 6995e2de6891 79782afc .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in xlog_grant_head_check
2023/06/25 13:22 upstream a92b7d26c743 09ffe269 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root INFO: task hung in xlog_grant_head_check
2023/06/23 14:29 upstream 8a28a0b6f1a1 79782afc .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in xlog_grant_head_check
2023/06/22 20:34 upstream dad9774deaf1 79782afc .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in xlog_grant_head_check
2023/06/22 14:52 upstream dad9774deaf1 79782afc .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in xlog_grant_head_check
2023/06/21 16:34 upstream e660abd551f1 79782afc .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in xlog_grant_head_check
2023/06/21 01:44 upstream 99ec1ed7c2ed 79782afc .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in xlog_grant_head_check
2023/06/19 23:51 upstream 45a3e24f65e9 d521bc56 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in xlog_grant_head_check
2023/06/19 22:30 upstream 45a3e24f65e9 d521bc56 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in xlog_grant_head_check
2023/06/19 03:31 upstream 8c1f0c38b310 f3921d4d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in xlog_grant_head_check
2023/06/19 02:08 upstream 8c1f0c38b310 f3921d4d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in xlog_grant_head_check
2023/06/18 19:32 upstream 8c1f0c38b310 f3921d4d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in xlog_grant_head_check
2023/06/18 16:57 upstream 1b29d271614a f3921d4d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root INFO: task hung in xlog_grant_head_check
2023/06/17 07:57 upstream 1639fae5132b f3921d4d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in xlog_grant_head_check
2023/06/16 09:50 upstream 62d8779610bb f3921d4d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in xlog_grant_head_check
2023/06/15 04:37 upstream b6dad5178cea 76decb82 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in xlog_grant_head_check
2023/06/12 12:41 upstream 858fd168a95c 49519f06 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in xlog_grant_head_check
2023/06/10 09:41 upstream 64569520920a 9018a337 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in xlog_grant_head_check
2023/06/09 20:12 upstream 33f2b5785a2b 9018a337 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in xlog_grant_head_check
2023/06/08 20:05 upstream 5f63595ebd82 058b3a5a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in xlog_grant_head_check
2024/04/23 01:39 linux-next 7b4f2bc91c15 21339d7b .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root INFO: task hung in xlog_grant_head_check
2024/04/17 05:23 linux-next 66e4190e92ce 18f6e127 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root INFO: task hung in xlog_grant_head_check
2024/04/17 02:27 linux-next 66e4190e92ce 18f6e127 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root INFO: task hung in xlog_grant_head_check
2024/04/16 16:07 linux-next 66e4190e92ce 0d592ce4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root INFO: task hung in xlog_grant_head_check
2024/04/16 16:06 linux-next 66e4190e92ce 0d592ce4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root INFO: task hung in xlog_grant_head_check
2024/04/16 10:48 linux-next 66e4190e92ce 0d592ce4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root INFO: task hung in xlog_grant_head_check
2024/04/15 18:33 linux-next 6bd343537461 c8349e48 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root INFO: task hung in xlog_grant_head_check
2024/04/15 12:31 linux-next 6bd343537461 c8349e48 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root INFO: task hung in xlog_grant_head_check
2024/04/15 09:16 linux-next 6bd343537461 c8349e48 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root INFO: task hung in xlog_grant_head_check
2024/04/16 07:02 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci b5d2afe8745b 0d592ce4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 INFO: task hung in xlog_grant_head_check
2024/04/14 22:57 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci b5d2afe8745b c8349e48 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 INFO: task hung in xlog_grant_head_check
2024/04/14 14:49 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci b5d2afe8745b c8349e48 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 INFO: task hung in xlog_grant_head_check
2024/04/14 03:36 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci b5d2afe8745b c8349e48 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 INFO: task hung in xlog_grant_head_check
2024/04/13 14:34 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci b5d2afe8745b c8349e48 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 INFO: task hung in xlog_grant_head_check
2024/01/22 10:46 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 0802e17d9aca 9bd8dcda .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 INFO: task hung in xlog_grant_head_check
2023/06/30 06:14 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci e40939bbfc68 7b33cf8f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 INFO: task hung in xlog_grant_head_check
2023/06/30 00:25 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci e40939bbfc68 7b33cf8f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 INFO: task hung in xlog_grant_head_check
2023/06/27 20:09 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci e40939bbfc68 4cd5bb25 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 INFO: task hung in xlog_grant_head_check
2023/06/24 05:21 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci e40939bbfc68 09ffe269 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 INFO: task hung in xlog_grant_head_check
2023/06/23 01:53 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 42234a752679 09ffe269 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 INFO: task hung in xlog_grant_head_check
2023/06/22 08:17 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 42234a752679 09ffe269 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 INFO: task hung in xlog_grant_head_check
2023/06/20 02:27 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 177239177378 d521bc56 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 INFO: task hung in xlog_grant_head_check
2023/06/13 12:33 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci d8b213732169 749afb64 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 INFO: task hung in xlog_grant_head_check
2023/06/11 08:17 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci d8b213732169 7086cdb9 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 INFO: task hung in xlog_grant_head_check
2020/07/16 08:56 linux-next ca0e494af5ed f3bec699 .config console log report ci-upstream-linux-next-kasan-gce-root
* Struck through repros no longer work on HEAD.