syzbot


INFO: task hung in bch2_run_recovery_passes

Status: upstream: reported C repro on 2025/07/18 01:27
Subsystems: bcachefs
[Documentation on labels]
Reported-by: syzbot+c2294ae43bae606e3c7d@syzkaller.appspotmail.com
First crash: 119d, last: 26d
Cause bisection: introduced by (bisect log) :
commit 39cea302f13a0a9dc4cf39248529a42e79d06842
Author: Kent Overstreet <kent.overstreet@linux.dev>
Date: Fri May 9 21:01:05 2025 +0000

  bcachefs: bch2_check_bucket_backpointer_mismatch()

Crash: INFO: task hung in bch2_copygc_stop (log)
Repro: C syz .config
  
Discussions (2)
Title Replies (including bot) Last reply
[syzbot] Monthly bcachefs report (Oct 2025) 0 (1) 2025/10/27 12:50
[syzbot] [bcachefs?] INFO: task hung in bch2_run_recovery_passes 0 (3) 2025/07/30 04:17
Last patch testing requests (6)
Created Duration User Patch Repo Result
2025/11/01 15:05 37m retest repro git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci OK log
2025/11/01 12:18 21m retest repro upstream OK log
2025/11/01 12:18 20m retest repro upstream OK log
2025/10/14 23:43 44m retest repro git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci report log
2025/09/18 20:47 23m retest repro git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci report log
2025/08/14 09:22 22m retest repro git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci report log

Sample crash report:
INFO: task syz.0.102:7684 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.102       state:D stack:0     pid:7684  tgid:7684  ppid:6671   task_flags:0x400140 flags:0x00800019
Call trace:
 __switch_to+0x418/0x87c arch/arm64/kernel/process.c:741 (T)
 context_switch kernel/sched/core.c:5357 [inline]
 __schedule+0x13b0/0x2864 kernel/sched/core.c:6961
 __schedule_loop kernel/sched/core.c:7043 [inline]
 schedule+0xb4/0x230 kernel/sched/core.c:7058
 schedule_timeout+0xac/0x270 kernel/time/sleep_timeout.c:75
 ___down_common+0x23c/0x374 kernel/locking/semaphore.c:268
 __down_common+0xc0/0x3a4 kernel/locking/semaphore.c:293
 __down+0x18/0x24 kernel/locking/semaphore.c:303
 down+0x94/0xe8 kernel/locking/semaphore.c:100
 bch2_run_recovery_passes+0x164/0x1f4 fs/bcachefs/recovery_passes.c:609
 bch2_fs_recovery+0x1df4/0x2fb4 fs/bcachefs/recovery.c:1050
 bch2_fs_start+0x940/0xbec fs/bcachefs/super.c:1213
 bch2_fs_get_tree+0x880/0x107c fs/bcachefs/fs.c:2488
 vfs_get_tree+0x90/0x28c fs/super.c:1815
 do_new_mount+0x278/0x7f4 fs/namespace.c:3808
 path_mount+0x5b4/0xde0 fs/namespace.c:4123
 do_mount fs/namespace.c:4136 [inline]
 __do_sys_mount fs/namespace.c:4347 [inline]
 __se_sys_mount fs/namespace.c:4324 [inline]
 __arm64_sys_mount+0x3e8/0x468 fs/namespace.c:4324
 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline]
 invoke_syscall+0x98/0x254 arch/arm64/kernel/syscall.c:49
 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:132
 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:151
 el0_svc+0x5c/0x254 arch/arm64/kernel/entry-common.c:744
 el0t_64_sync_handler+0x84/0x12c arch/arm64/kernel/entry-common.c:763
 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:596

Showing all locks held in the system:
1 lock held by khungtaskd/32:
 #0: ffff80008f9d9620 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire+0x4/0x48 include/linux/rcupdate.h:330
1 lock held by pr/ttyAMA-1/43:
2 locks held by getty/6312:
 #0: ffff0000d7cfa0a0 (&tty->ldisc_sem){++++}-{0:0}, at: ldsem_down_read+0x3c/0x4c drivers/tty/tty_ldsem.c:340
 #1: ffff800099e8e2f0 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x34c/0xfa4 drivers/tty/n_tty.c:2222
2 locks held by kworker/u8:1/6746:
 #0: ffff00019bcb1818 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested kernel/sched/core.c:636 [inline]
 #0: ffff00019bcb1818 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock kernel/sched/sched.h:1519 [inline]
 #0: ffff00019bcb1818 (&rq->__lock){-.-.}-{2:2}, at: rq_lock kernel/sched/sched.h:1841 [inline]
 #0: ffff00019bcb1818 (&rq->__lock){-.-.}-{2:2}, at: __schedule+0x338/0x2864 kernel/sched/core.c:6865
 #1: ffff00019bc9c548 (psi_seq){-.-.}-{0:0}, at: psi_task_switch+0x6c/0x6dc kernel/sched/psi.c:933
1 lock held by syz.1.544/12579:

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


Crashes (40):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/09/27 14:06 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 2213e57a69f0 001c9061 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-gce-arm64 INFO: task hung in bch2_run_recovery_passes
2025/09/02 11:36 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8f5ae30d69d7 807a3b61 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-gce-arm64 INFO: task hung in bch2_run_recovery_passes
2025/09/25 11:55 upstream bf40f4b87761 0abd0691 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in bch2_run_recovery_passes
2025/08/27 20:56 upstream 39f90c196721 e12e5ba4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in bch2_run_recovery_passes
2025/08/21 13:10 upstream 068a56e56fa8 0b9605c8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in bch2_run_recovery_passes
2025/08/21 12:26 upstream 068a56e56fa8 0b9605c8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in bch2_run_recovery_passes
2025/08/21 07:21 upstream 41cd3fd15263 0b9605c8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in bch2_run_recovery_passes
2025/08/21 05:18 upstream 41cd3fd15263 0b9605c8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in bch2_run_recovery_passes
2025/08/20 06:22 upstream b19a97d57c15 79512909 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in bch2_run_recovery_passes
2025/08/19 15:27 upstream be48bcf004f9 254a27c1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in bch2_run_recovery_passes
2025/08/18 18:09 upstream c17b750b3ad9 1804e95e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in bch2_run_recovery_passes
2025/08/18 04:18 upstream 8d561baae505 1804e95e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in bch2_run_recovery_passes
2025/08/17 18:15 upstream 99bade344cfa 1804e95e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in bch2_run_recovery_passes
2025/08/17 16:57 upstream 99bade344cfa 1804e95e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in bch2_run_recovery_passes
2025/08/17 08:57 upstream 99bade344cfa 1804e95e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in bch2_run_recovery_passes
2025/08/17 08:30 upstream 90d970cade8e 1804e95e .config strace log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs INFO: task hung in bch2_run_recovery_passes
2025/08/17 05:12 upstream 90d970cade8e 1804e95e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in bch2_run_recovery_passes
2025/08/17 05:08 upstream 90d970cade8e 1804e95e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root INFO: task hung in bch2_run_recovery_passes
2025/08/17 00:02 upstream 90d970cade8e 1804e95e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in bch2_run_recovery_passes
2025/08/16 15:26 upstream dfd4b508c8c6 1804e95e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in bch2_run_recovery_passes
2025/08/16 12:52 upstream dfd4b508c8c6 1804e95e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in bch2_run_recovery_passes
2025/08/16 07:38 upstream dfd4b508c8c6 1804e95e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root INFO: task hung in bch2_run_recovery_passes
2025/08/16 01:55 upstream ee94b00c1a64 1804e95e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in bch2_run_recovery_passes
2025/07/31 08:33 upstream e8d780dcd957 f8f2b4da .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in bch2_run_recovery_passes
2025/07/29 18:19 upstream ae388edd4a8f c4a95487 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs INFO: task hung in bch2_run_recovery_passes
2025/07/29 07:59 upstream ae388edd4a8f c4a95487 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in bch2_run_recovery_passes
2025/07/29 07:57 upstream ae388edd4a8f c4a95487 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in bch2_run_recovery_passes
2025/07/29 05:46 upstream ae388edd4a8f c4a95487 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in bch2_run_recovery_passes
2025/07/29 04:07 upstream ae388edd4a8f 6654ea9c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in bch2_run_recovery_passes
2025/09/04 19:33 linux-next 4ac65880ebca d291dd2d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root INFO: task hung in bch2_run_recovery_passes
2025/10/18 12:07 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bf45a62baffc 1c8c8cd8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 INFO: task hung in bch2_run_recovery_passes
2025/09/30 21:29 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 2213e57a69f0 65a0eece .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 INFO: task hung in bch2_run_recovery_passes
2025/09/20 06:11 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 506ba4ea4cf5 67c37560 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 INFO: task hung in bch2_run_recovery_passes
2025/08/30 06:25 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8f5ae30d69d7 807a3b61 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 INFO: task hung in bch2_run_recovery_passes
2025/08/20 09:04 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8f5ae30d69d7 79512909 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 INFO: task hung in bch2_run_recovery_passes
2025/08/16 20:45 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8f5ae30d69d7 1804e95e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 INFO: task hung in bch2_run_recovery_passes
2025/07/25 04:55 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 82af5ea7c611 fb8f743d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 INFO: task hung in bch2_run_recovery_passes
2025/07/20 09:12 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci aaef6f251176 7117feec .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 INFO: task hung in bch2_run_recovery_passes
2025/07/17 22:56 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci aaef6f251176 0d1223f1 .config console log report syz / log [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-gce-arm64 INFO: task hung in bch2_run_recovery_passes
2025/07/17 12:06 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci aaef6f251176 0d1223f1 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 INFO: task hung in bch2_run_recovery_passes
* Struck through repros no longer work on HEAD.