syzbot


INFO: task hung in f2fs_stop_gc_thread

Status: upstream: reported C repro on 2025/12/13 07:44
Reported-by: syzbot+279cf538f28759858216@syzkaller.appspotmail.com
First crash: 168d, last: 9d08h
Fix bisection: failed (error log, bisect log)
  
Bug presence (1)
Date Name Commit Repro Result
2026/05/14 upstream (ToT) e1914add2799 C Failed due to an error; will retry later
Similar bugs (2)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 INFO: task hung in f2fs_stop_gc_thread origin:lts-only 1 C error 13 4d15h 204d 0/3 upstream: reported C repro on 2025/11/07 22:55
upstream INFO: task hung in f2fs_stop_gc_thread f2fs 1 24 561d 675d 0/29 auto-obsoleted due to no activity on 2025/01/22 18:30

Sample crash report:
INFO: task syz.0.17:4457 blocked for more than 143 seconds.
      Not tainted syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.0.17        state:D stack:0     pid:4457  ppid:4435   flags:0x00000009
Call trace:
 __switch_to+0x2f4/0x550 arch/arm64/kernel/process.c:555
 context_switch kernel/sched/core.c:5245 [inline]
 __schedule+0xdd0/0x1b0c kernel/sched/core.c:6562
 schedule+0xc4/0x170 kernel/sched/core.c:6638
 schedule_timeout+0xc8/0x2f4 kernel/time/timer.c:2144
 do_wait_for_common+0x288/0x3f8 kernel/sched/completion.c:85
 __wait_for_common kernel/sched/completion.c:106 [inline]
 wait_for_common kernel/sched/completion.c:117 [inline]
 wait_for_completion+0x44/0x5c kernel/sched/completion.c:138
 kthread_stop+0x1d0/0x7f8 kernel/kthread.c:711
 f2fs_stop_gc_thread+0x70/0xc0 fs/f2fs/gc.c:209
 f2fs_ioc_shutdown fs/f2fs/file.c:2361 [inline]
 __f2fs_ioctl+0x78b4/0xb194 fs/f2fs/file.c:4373
 f2fs_ioctl+0x130/0x1a0 fs/f2fs/file.c:4454
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:870 [inline]
 __se_sys_ioctl fs/ioctl.c:856 [inline]
 __arm64_sys_ioctl+0x14c/0x1c8 fs/ioctl.c:856
 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
 invoke_syscall+0x98/0x2b4 arch/arm64/kernel/syscall.c:52
 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:140
 do_el0_svc+0x58/0x130 arch/arm64/kernel/syscall.c:204
 el0_svc+0x58/0x128 arch/arm64/kernel/entry-common.c:637
 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655
 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585

Showing all locks held in the system:
2 locks held by kworker/u4:0/9:
1 lock held by rcu_tasks_kthre/12:
 #0: ffff8000153f7c30 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x40/0xbb4 kernel/rcu/tasks.h:517
1 lock held by rcu_tasks_trace/13:
 #0: ffff8000153f8450 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x40/0xbb4 kernel/rcu/tasks.h:517
1 lock held by khungtaskd/28:
 #0: ffff8000153f72c0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0xc/0x44 include/linux/rcupdate.h:349
1 lock held by klogd/3923:
2 locks held by getty/4077:
 #0: ffff0000d89b8098 (&tty->ldisc_sem){++++}-{0:0}, at: ldsem_down_read+0x3c/0x4c drivers/tty/tty_ldsem.c:340
 #1: ffff8000208cb2f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x2ec/0xfa0 drivers/tty/n_tty.c:2198
1 lock held by syz.0.17/4457:
 #0: ffff0000d1ee6460 (sb_writers#12){++++}-{0:0}, at: mnt_want_write_file+0x64/0x1e8 fs/namespace.c:446
1 lock held by syz.1.31/4540:
 #0: ffff0000d06e6460 (sb_writers#12){++++}-{0:0}, at: mnt_want_write_file+0x64/0x1e8 fs/namespace.c:446
1 lock held by syz.2.54/4669:
 #0: ffff0000da160460 (sb_writers#12){++++}-{0:0}, at: mnt_want_write_file+0x64/0x1e8 fs/namespace.c:446
1 lock held by syz.3.72/4779:
 #0: ffff0000f113e460 (sb_writers#12){++++}-{0:0}, at: mnt_want_write_file+0x64/0x1e8 fs/namespace.c:446
1 lock held by syz.7.121/5127:
 #0: ffff000100920460 (sb_writers#12){++++}-{0:0}, at: mnt_want_write_file+0x64/0x1e8 fs/namespace.c:446

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


Crashes (6):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/05/21 21:32 linux-6.1.y c27210688955 e195359d .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-linux-6-1-kasan-arm64 INFO: task hung in f2fs_stop_gc_thread
2026/02/04 08:12 linux-6.1.y cd9b81672742 42b01fab .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-linux-6-1-kasan-arm64 INFO: task hung in f2fs_stop_gc_thread
2025/12/13 07:43 linux-6.1.y 50cbba13faa2 d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: task hung in f2fs_stop_gc_thread
2026/05/21 17:57 linux-6.1.y c27210688955 e195359d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 INFO: task hung in f2fs_stop_gc_thread
2026/04/14 18:10 linux-6.1.y 8e8fc038cad5 362d1323 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 INFO: task hung in f2fs_stop_gc_thread
2026/02/04 05:21 linux-6.1.y cd9b81672742 42b01fab .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 INFO: task hung in f2fs_stop_gc_thread
* Struck through repros no longer work on HEAD.