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: 2198d, last: 18h37m
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 493d 1567d 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 101 17h42m 420d 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 448d 530d 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 66 18h34m 429d 0/3 upstream: reported C repro on 2023/03/25 07:23
linux-4.19 INFO: task hung in xlog_grant_head_check 1 1796d 1796d 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 1437d 1486d 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 (834):
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/05/26 16:08 upstream c13320499ba0 a10a183e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root INFO: task hung in xlog_grant_head_check
2024/05/23 21:03 upstream 8f6a15f095a6 8f98448e .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/05/23 18:53 upstream 8f6a15f095a6 8f98448e .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/05/22 23:09 upstream 8f6a15f095a6 4d098039 .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/05/22 14:58 upstream 8f6a15f095a6 4d098039 .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/05/21 17:34 upstream 8f6a15f095a6 1014eca7 .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/05/21 16:30 upstream 8f6a15f095a6 1014eca7 .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/05/21 14:53 upstream 8f6a15f095a6 c0f1611a .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/05/21 14:44 upstream 8f6a15f095a6 c0f1611a .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/05/21 12:50 upstream 8f6a15f095a6 c0f1611a .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/05/21 11:22 upstream 72ece20127a3 c0f1611a .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/05/21 09:59 upstream 72ece20127a3 c0f1611a .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/05/21 08:01 upstream 72ece20127a3 c0f1611a .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/05/21 01:48 upstream 72ece20127a3 c0f1611a .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/05/20 21:52 upstream eb6a9339efeb c0f1611a .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/05/20 18:47 upstream eb6a9339efeb c0f1611a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root INFO: task hung in xlog_grant_head_check
2024/05/09 14:01 upstream 45db3ab70092 20bf80e1 .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/05/09 11:36 upstream 6d7ddd805123 20bf80e1 .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/30 16:24 upstream 98369dccd2f8 9e0e6af1 .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/30 14:37 upstream 98369dccd2f8 27e33c58 .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/30 08:25 upstream 98369dccd2f8 27e33c58 .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/29 18:45 upstream b947cc5bf6d7 27e33c58 .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/29 12:19 upstream e67572cd2204 27e33c58 .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/29 12:17 upstream e67572cd2204 27e33c58 .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/28 10:04 upstream 5d12ed4bea43 07b455f9 .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/28 04:48 upstream 5d12ed4bea43 07b455f9 .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/27 16:31 upstream 5eb4573ea63d 07b455f9 .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/27 16:30 upstream 5eb4573ea63d 07b455f9 .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/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 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
2024/05/21 05:39 linux-next 124cfbcd6d18 c0f1611a .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/05/20 22:26 linux-next 632483ea8004 c0f1611a .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/05/08 12:49 linux-next e7b4ef8fffac 4cf3f9b3 .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/05/08 11:36 linux-next e7b4ef8fffac 4cf3f9b3 .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/05/08 11:35 linux-next e7b4ef8fffac 4cf3f9b3 .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/28 02:34 linux-next bb7a2467e6be 07b455f9 .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/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/05/09 17:32 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci c4d6737dc9da de979bc2 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 INFO: task hung in xlog_grant_head_check
2024/04/30 11:52 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 6a71d2909427 27e33c58 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 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
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.