syzbot


INFO: task hung in xlog_grant_head_check

Status: upstream: reported C repro on 2018/05/21 17:55
Subsystems: xfs (incorrect?)
Reported-by: syzbot+568245b88fbaedcb1959@syzkaller.appspotmail.com
First crash: 1774d, last: 4h17m

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)
similar bugs (5):
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 69d 1143d 0/1 upstream: reported C repro on 2020/02/10 12:53
linux-4.19 INFO: task hung in xlog_grant_head_check (3) xfs C 88 24d 106d 0/1 upstream: reported C repro on 2022/12/14 09:42
linux-5.15 INFO: task hung in xlog_grant_head_check 1 5d03h 5d03h 0/3 upstream: reported on 2023/03/25 07:23
linux-4.19 INFO: task hung in xlog_grant_head_check 1 1372d 1372d 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 1013d 1062d 0/1 auto-closed as invalid on 2020/10/17 16:39
Last patch testing requests:
Created Duration User Patch Repo Result
2022/09/18 04:29 14m retest repro upstream report log

Sample crash report:
INFO: task syz-executor297:5064 blocked for more than 143 seconds.
      Not tainted 6.2.0-rc7-syzkaller-00002-gd2d11f342b17 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor297 state:D stack:26552 pid:5064  ppid:5061   flags:0x00004002
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5293 [inline]
 __schedule+0xb8a/0x5450 kernel/sched/core.c:6606
 schedule+0xde/0x1b0 kernel/sched/core.c:6682
 xlog_grant_head_wait+0x159/0xe00 fs/xfs/xfs_log.c:307
 xlog_grant_head_check+0x3d9/0x420 fs/xfs/xfs_log.c:369
 xfs_log_reserve+0x39d/0xb50 fs/xfs/xfs_log.c:486
 xfs_trans_reserve+0x479/0x670 fs/xfs/xfs_trans.c:194
 xfs_trans_alloc+0x336/0x9b0 fs/xfs/xfs_trans.c:283
 xfs_sync_sb+0x83/0x140 fs/xfs/libxfs/xfs_sb.c:1005
 xfs_log_cover fs/xfs/xfs_log.c:1300 [inline]
 xfs_log_quiesce+0x24d/0x320 fs/xfs/xfs_log.c:1109
 xfs_log_clean fs/xfs/xfs_log.c:1116 [inline]
 xfs_log_unmount+0x22/0x270 fs/xfs/xfs_log.c:1131
 xfs_unmountfs+0x151/0x290 fs/xfs/xfs_mount.c:1096
 xfs_fs_put_super+0x7b/0x3b0 fs/xfs/xfs_super.c:1115
 generic_shutdown_super+0x158/0x410 fs/super.c:492
 kill_block_super+0x9b/0xf0 fs/super.c:1386
 deactivate_locked_super+0x98/0x160 fs/super.c:332
 deactivate_super+0xb1/0xd0 fs/super.c:363
 cleanup_mnt+0x2ae/0x3d0 fs/namespace.c:1291
 task_work_run+0x16f/0x270 kernel/task_work.c:179
 ptrace_notify+0x118/0x140 kernel/signal.c:2354
 ptrace_report_syscall include/linux/ptrace.h:411 [inline]
 ptrace_report_syscall_exit include/linux/ptrace.h:473 [inline]
 syscall_exit_work kernel/entry/common.c:251 [inline]
 syscall_exit_to_user_mode_prepare+0x129/0x280 kernel/entry/common.c:278
 __syscall_exit_to_user_mode_work kernel/entry/common.c:283 [inline]
 syscall_exit_to_user_mode+0xd/0x50 kernel/entry/common.c:296
 do_syscall_64+0x46/0xb0 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fcf43980c47
RSP: 002b:00007ffde0b82d28 EFLAGS: 00000206 ORIG_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007fcf43980c47
RDX: 00007ffde0b82de9 RSI: 000000000000000a RDI: 00007ffde0b82de0
RBP: 00007ffde0b82de0 R08: 00000000ffffffff R09: 00007ffde0b82bc0
R10: 0000555556cff653 R11: 0000000000000206 R12: 00007ffde0b83e40
R13: 0000555556cff5f0 R14: 00007ffde0b82d50 R15: 0000000000000001
 </TASK>

Showing all locks held in the system:
1 lock held by rcu_tasks_kthre/12:
 #0: ffffffff8c78f7b0 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x26/0xc70 kernel/rcu/tasks.h:507
1 lock held by rcu_tasks_trace/13:
 #0: ffffffff8c78f4b0 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x26/0xc70 kernel/rcu/tasks.h:507
1 lock held by khungtaskd/27:
 #0: ffffffff8c790300 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x57/0x264 kernel/locking/lockdep.c:6494
2 locks held by getty/4748:
 #0: ffff88802c15b098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x26/0x80 drivers/tty/tty_ldisc.c:244
 #1: ffffc900015902f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xef4/0x13e0 drivers/tty/n_tty.c:2177
1 lock held by syz-executor297/5064:
 #0: ffff88802a9080e0 (&type->s_umount_key#42){+.+.}-{3:3}, at: deactivate_super+0xa9/0xd0 fs/super.c:362

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

NMI backtrace for cpu 1
CPU: 1 PID: 27 Comm: khungtaskd Not tainted 6.2.0-rc7-syzkaller-00002-gd2d11f342b17 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0xd1/0x138 lib/dump_stack.c:106
 nmi_cpu_backtrace.cold+0x24/0x18a lib/nmi_backtrace.c:111
 nmi_trigger_cpumask_backtrace+0x333/0x3c0 lib/nmi_backtrace.c:62
 trigger_all_cpu_backtrace include/linux/nmi.h:148 [inline]
 check_hung_uninterruptible_tasks kernel/hung_task.c:220 [inline]
 watchdog+0xc75/0xfc0 kernel/hung_task.c:377
 kthread+0x2e8/0x3a0 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308
 </TASK>
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 2805 Comm: kworker/u4:5 Not tainted 6.2.0-rc7-syzkaller-00002-gd2d11f342b17 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023
Workqueue:  0x0 (events_unbound)
RIP: 0010:detach_tasks kernel/sched/fair.c:8373 [inline]
RIP: 0010:load_balance+0x167f/0x2e30 kernel/sched/fair.c:10574
Code: 9d a0 00 00 00 e9 b5 f9 ff ff 83 a4 24 48 01 00 00 fe c7 84 24 c0 00 00 00 00 00 00 00 e9 9d f9 ff ff 4c 8b ac 24 10 01 00 00 <e9> 62 f6 ff ff 49 8d 7c 24 50 48 89 f8 48 c1 e8 03 42 80 3c 30 00
RSP: 0018:ffffc9000b687930 EFLAGS: 00000002
RAX: 0000000000000001 RBX: ffff8880b993b580 RCX: 0000000000000001
RDX: 0000000000000000 RSI: 0000000000000002 RDI: 0000000000000000
RBP: ffffc9000b687b10 R08: ffff8880b993bfc8 R09: ffff8880b993c000
R10: fffffbfff1ce6772 R11: ffff8880b993c158 R12: ffff8880b993b580
R13: ffff8880b993b580 R14: dffffc0000000000 R15: ffff8880126bea20
FS:  0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055d9772caa40 CR3: 000000000c48e000 CR4: 0000000000350ef0
Call Trace:
 <TASK>
 newidle_balance+0x72b/0x11d0 kernel/sched/fair.c:11584
 pick_next_task_fair+0x9a/0x12e0 kernel/sched/fair.c:7821
 __pick_next_task kernel/sched/core.c:5916 [inline]
 pick_next_task kernel/sched/core.c:5991 [inline]
 __schedule+0x405/0x5450 kernel/sched/core.c:6570
 schedule+0xde/0x1b0 kernel/sched/core.c:6682
 worker_thread+0x160/0x1090 kernel/workqueue.c:2457
 kthread+0x2e8/0x3a0 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308
 </TASK>

Crashes (327):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Title
ci-upstream-kasan-gce-root 2023/02/06 23:45 upstream d2d11f342b17 0a9c11b6 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] INFO: task hung in xlog_grant_head_check
ci-upstream-kasan-gce-root 2023/02/02 02:36 upstream c0b67534c95c 9dfcf09c .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] INFO: task hung in xlog_grant_head_check
ci2-upstream-fs 2022/12/25 00:44 upstream 72a85e2b0a1e 9da18ae8 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] INFO: task hung in xlog_grant_head_check
ci2-upstream-fs 2022/12/22 21:22 upstream 0a924817d2ed 9da18ae8 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] INFO: task hung in xlog_grant_head_check
ci-upstream-linux-next-kasan-gce-root 2023/02/26 10:24 linux-next 8232539f864c ee50e71c .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] INFO: task hung in xlog_grant_head_check
ci-upstream-gce-arm64 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] INFO: task hung in xlog_grant_head_check
ci-upstream-gce-arm64 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] INFO: task hung in xlog_grant_head_check
ci-upstream-kasan-gce-selinux-root 2020/03/11 06:50 upstream f35111a94654 35f53e45 .config console log report syz C
ci-upstream-kasan-gce-root 2020/03/08 12:10 upstream c20037652700 2e9971bb .config console log report syz C
ci-upstream-kasan-gce-smack-root 2020/03/05 15:55 upstream 63623fd44972 c88c7b75 .config console log report syz C
ci-upstream-kasan-gce-root 2018/05/20 18:12 upstream 203ec2fed17a f48c20b8 .config console log report syz C
ci2-upstream-fs 2023/03/30 07:00 upstream ffe78bbd5121 f325deb0 .config console log report info [disk image] [vmlinux] [kernel image] INFO: task hung in xlog_grant_head_check
ci2-upstream-fs 2023/03/29 13:58 upstream fcd476ea6a88 f325deb0 .config console log report info [disk image] [vmlinux] [kernel image] INFO: task hung in xlog_grant_head_check
ci2-upstream-fs 2023/03/29 12:16 upstream fcd476ea6a88 f325deb0 .config console log report info [disk image] [vmlinux] [kernel image] INFO: task hung in xlog_grant_head_check
ci-upstream-kasan-gce-root 2023/03/28 21:25 upstream 3a93e40326c8 48c74771 .config console log report info [disk image] [vmlinux] [kernel image] INFO: task hung in xlog_grant_head_check
ci2-upstream-fs 2023/03/27 10:26 upstream 197b6b60ae7b f8f96aa9 .config console log report info [disk image] [vmlinux] [kernel image] INFO: task hung in xlog_grant_head_check
ci2-upstream-fs 2023/03/26 21:32 upstream 18940c888c85 fbf0499a .config console log report info [disk image] [vmlinux] [kernel image] INFO: task hung in xlog_grant_head_check
ci-upstream-kasan-gce-selinux-root 2023/03/26 06:29 upstream 4bdec23f971b fbf0499a .config console log report info [disk image] [vmlinux] [kernel image] INFO: task hung in xlog_grant_head_check
ci2-upstream-fs 2023/03/26 05:15 upstream da8e7da11e4b fbf0499a .config console log report info [disk image] [vmlinux] [kernel image] INFO: task hung in xlog_grant_head_check
ci2-upstream-fs 2023/03/25 15:53 upstream 65aca32efdcb fbf0499a .config console log report info [disk image] [vmlinux] [kernel image] INFO: task hung in xlog_grant_head_check
ci2-upstream-fs 2023/03/25 05:53 upstream 65aca32efdcb 9700afae .config console log report info [disk image] [vmlinux] [kernel image] INFO: task hung in xlog_grant_head_check
ci2-upstream-fs 2023/03/24 01:07 upstream 9fd6ba5420ba f94b4a29 .config console log report info [disk image] [vmlinux] [kernel image] INFO: task hung in xlog_grant_head_check
ci2-upstream-fs 2023/03/23 11:38 upstream fff5a5e7f528 f94b4a29 .config console log report info [disk image] [vmlinux] [kernel image] INFO: task hung in xlog_grant_head_check
ci2-upstream-fs 2023/03/23 06:34 upstream fff5a5e7f528 f94b4a29 .config console log report info [disk image] [vmlinux] [kernel image] INFO: task hung in xlog_grant_head_check
ci2-upstream-fs 2023/03/22 02:58 upstream 2faac9a98f01 8b4eb097 .config console log report info [disk image] [vmlinux] [kernel image] INFO: task hung in xlog_grant_head_check
ci2-upstream-fs 2023/03/21 18:14 upstream 17214b70a159 8b4eb097 .config console log report info [disk image] [vmlinux] [kernel image] INFO: task hung in xlog_grant_head_check
ci2-upstream-fs 2023/03/20 09:04 upstream e8d018dd0257 7939252e .config console log report info [disk image] [vmlinux] [kernel image] INFO: task hung in xlog_grant_head_check
ci2-upstream-fs 2023/03/20 06:58 upstream e8d018dd0257 7939252e .config console log report info [disk image] [vmlinux] [kernel image] INFO: task hung in xlog_grant_head_check
ci2-upstream-fs 2023/03/20 03:25 upstream e8d018dd0257 7939252e .config console log report info [disk image] [vmlinux] [kernel image] INFO: task hung in xlog_grant_head_check
ci2-upstream-fs 2023/03/19 16:38 upstream a3671bd86a97 7939252e .config console log report info [disk image] [vmlinux] [kernel image] INFO: task hung in xlog_grant_head_check
ci2-upstream-fs 2023/03/19 11:53 upstream a3671bd86a97 7939252e .config console log report info [disk image] [vmlinux] [kernel image] INFO: task hung in xlog_grant_head_check
ci2-upstream-fs 2023/03/17 21:47 upstream 38e04b3e4240 7939252e .config console log report info [disk image] [vmlinux] [kernel image] INFO: task hung in xlog_grant_head_check
ci2-upstream-fs 2023/03/16 07:54 upstream 9c1bec9c0b08 18b58603 .config console log report info [disk image] [vmlinux] [kernel image] INFO: task hung in xlog_grant_head_check
ci2-upstream-fs 2023/03/15 03:04 upstream 4979bf866825 0d5c4377 .config console log report info [disk image] [vmlinux] [kernel image] INFO: task hung in xlog_grant_head_check
ci2-upstream-fs 2023/03/14 05:33 upstream fc89d7fb499b 026e2200 .config console log report info [disk image] [vmlinux] [kernel image] INFO: task hung in xlog_grant_head_check
ci2-upstream-fs 2023/03/06 02:05 upstream f915322fe014 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] INFO: task hung in xlog_grant_head_check
ci2-upstream-fs 2023/03/05 22:23 upstream f915322fe014 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] INFO: task hung in xlog_grant_head_check
ci2-upstream-fs 2023/03/04 23:37 upstream 0988a0ea7919 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] INFO: task hung in xlog_grant_head_check
ci2-upstream-fs 2023/03/04 06:39 upstream 0a3f9a6b0265 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] INFO: task hung in xlog_grant_head_check
ci2-upstream-fs 2023/03/03 14:48 upstream 2eb29d59ddf0 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] INFO: task hung in xlog_grant_head_check
ci2-upstream-fs 2023/03/03 03:42 upstream 04a357b1f6f0 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] INFO: task hung in xlog_grant_head_check
ci2-upstream-fs 2023/03/02 18:23 upstream ee3f96b16468 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] INFO: task hung in xlog_grant_head_check
ci2-upstream-fs 2023/03/01 15:08 upstream c0927a7a5391 ef65e6cb .config console log report info [disk image] [vmlinux] [kernel image] INFO: task hung in xlog_grant_head_check
ci2-upstream-fs 2023/03/01 14:01 upstream c0927a7a5391 ef65e6cb .config console log report info [disk image] [vmlinux] [kernel image] INFO: task hung in xlog_grant_head_check
ci2-upstream-fs 2023/02/28 17:59 upstream ae3419fbac84 95aee97a .config console log report info [disk image] [vmlinux] [kernel image] INFO: task hung in xlog_grant_head_check
ci2-upstream-fs 2023/02/28 15:23 upstream ae3419fbac84 95aee97a .config console log report info [disk image] [vmlinux] [kernel image] INFO: task hung in xlog_grant_head_check
ci2-upstream-fs 2023/02/28 10:25 upstream 982818426a0f 95aee97a .config console log report info [disk image] [vmlinux] [kernel image] INFO: task hung in xlog_grant_head_check
ci2-upstream-fs 2023/02/28 00:41 upstream 982818426a0f 95aee97a .config console log report info [disk image] [vmlinux] [kernel image] INFO: task hung in xlog_grant_head_check
ci-upstream-kasan-gce-root 2023/02/27 02:56 upstream 2fcd07b7ccd5 ee50e71c .config console log report info [disk image] [vmlinux] [kernel image] INFO: task hung in xlog_grant_head_check
ci2-upstream-fs 2023/02/26 00:24 upstream 489fa31ea873 ee50e71c .config console log report info [disk image] [vmlinux] [kernel image] INFO: task hung in xlog_grant_head_check
ci2-upstream-fs 2023/02/25 23:11 upstream 489fa31ea873 ee50e71c .config console log report info [disk image] [vmlinux] [kernel image] INFO: task hung in xlog_grant_head_check
ci-upstream-kasan-gce-smack-root 2023/02/23 13:49 upstream d8ca6dbb8de7 9e2ebb3c .config console log report info [disk image] [vmlinux] [kernel image] INFO: task hung in xlog_grant_head_check
ci-upstream-gce-arm64 2023/03/30 01:31 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 59caa87f9dfb f325deb0 .config console log report info [disk image] [vmlinux] [kernel image] INFO: task hung in xlog_grant_head_check
ci-upstream-gce-arm64 2023/03/26 22:41 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci e8d018dd0257 fbf0499a .config console log report info [disk image] [vmlinux] [kernel image] INFO: task hung in xlog_grant_head_check
ci-upstream-gce-arm64 2023/03/22 19:32 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci fe15c26ee26e d846e076 .config console log report info [disk image] [vmlinux] [kernel image] INFO: task hung in xlog_grant_head_check
ci-upstream-gce-arm64 2023/03/08 12:44 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci fe15c26ee26e d2b00170 .config console log report info [disk image] [vmlinux] [kernel image] INFO: task hung in xlog_grant_head_check
ci-upstream-gce-arm64 2023/03/05 17:21 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 596b6b709632 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] INFO: task hung in xlog_grant_head_check
ci-upstream-gce-arm64 2023/03/02 09:55 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 2ebd1fbb946d f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] INFO: task hung in xlog_grant_head_check
ci-upstream-gce-arm64 2023/03/01 22:07 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 2ebd1fbb946d f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] INFO: task hung in xlog_grant_head_check
ci-upstream-gce-arm64 2023/02/28 16:28 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 2ebd1fbb946d 95aee97a .config console log report info [disk image] [vmlinux] [kernel image] INFO: task hung in xlog_grant_head_check
ci-upstream-gce-arm64 2023/02/28 13:38 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 2ebd1fbb946d 95aee97a .config console log report info [disk image] [vmlinux] [kernel image] INFO: task hung in xlog_grant_head_check
ci-upstream-gce-arm64 2023/02/28 09:22 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 2ebd1fbb946d 95aee97a .config console log report info [disk image] [vmlinux] [kernel image] INFO: task hung in xlog_grant_head_check
ci-upstream-gce-arm64 2023/02/26 20:09 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 2ebd1fbb946d ee50e71c .config console log report info [disk image] [vmlinux] [kernel image] INFO: task hung in xlog_grant_head_check
ci-upstream-linux-next-kasan-gce-root 2020/07/16 08:56 linux-next ca0e494af5ed f3bec699 .config console log report
* Struck through repros no longer work on HEAD.