bcachefs (loop6): bucket 0:45 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing bcachefs (loop6): bucket 0:46 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing Ratelimiting new instances of previous error BUG: MAX_LOCKDEP_CHAIN_HLOCKS too low! turning off the locking correctness validator. CPU: 1 UID: 0 PID: 10065 Comm: syz.6.202 Not tainted 6.17.0-rc1-syzkaller-g8f5ae30d69d7 #0 PREEMPT Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/30/2025 Call trace: show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:499 (C) __dump_stack+0x30/0x40 lib/dump_stack.c:94 dump_stack_lvl+0xd8/0x12c lib/dump_stack.c:120 dump_stack+0x1c/0x28 lib/dump_stack.c:129 add_chain_cache kernel/locking/lockdep.c:-1 [inline] lookup_chain_cache_add kernel/locking/lockdep.c:3855 [inline] validate_chain kernel/locking/lockdep.c:3876 [inline] __lock_acquire+0xf9c/0x30a4 kernel/locking/lockdep.c:5237 lock_acquire+0x14c/0x2e0 kernel/locking/lockdep.c:5868 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x5c/0x7c kernel/locking/spinlock.c:162 __debug_check_no_obj_freed lib/debugobjects.c:1088 [inline] debug_check_no_obj_freed+0x148/0x470 lib/debugobjects.c:1129 slab_free_hook mm/slub.c:2348 [inline] slab_free mm/slub.c:4680 [inline] kfree+0x11c/0x474 mm/slub.c:4879 krealloc_noprof+0x214/0x2f0 mm/slub.c:-1 bch2_printbuf_make_room+0x19c/0x2e0 fs/bcachefs/printbuf.c:59 prt_bytes fs/bcachefs/printbuf.h:227 [inline] prt_str+0x50/0x440 fs/bcachefs/printbuf.h:239 bch2_gc_accounting_done+0xb58/0x1914 fs/bcachefs/disk_accounting.c:614 bch2_check_allocations+0x3a38/0x3c34 fs/bcachefs/btree_gc.c:1101 bch2_run_recovery_pass fs/bcachefs/recovery_passes.c:484 [inline] __bch2_run_recovery_passes+0x2b8/0xd54 fs/bcachefs/recovery_passes.c:539 bch2_run_recovery_passes+0x174/0x1f4 fs/bcachefs/recovery_passes.c:610 bch2_fs_recovery+0x1c34/0x2fb4 fs/bcachefs/recovery.c:1016 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:3805 path_mount+0x5b4/0xde0 fs/namespace.c:4120 do_mount fs/namespace.c:4133 [inline] __do_sys_mount fs/namespace.c:4344 [inline] __se_sys_mount fs/namespace.c:4321 [inline] __arm64_sys_mount+0x3e8/0x468 fs/namespace.c:4321 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x2b8 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+0x58/0x180 arch/arm64/kernel/entry-common.c:879 el0t_64_sync_handler+0x84/0x12c arch/arm64/kernel/entry-common.c:898 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:596 done bcachefs (loop6): going read-write bcachefs (loop6): journal_replay... bcachefs (loop6): u64s 13 type alloc_v4 0:25:0 len 0 ver 0: gen 0 oldest_gen 0 data_type journal journal_seq_nonempty 0 journal_seq_empty 0 need_discard 0 need_inc_gen 0 dirty_sectors 256 stripe_sectors 0 cached_sectors 0 stripe 0 stripe_redundancy 0 io_time[READ] 0 io_time[WRITE] 0 fragmentation 0 bp_start 8 incorrectly set at freespace:0:25:0 (free 0, genbits 0 should be 0), fixing bcachefs (loop6): u64s 13 type alloc_v4 0:30:0 len 0 ver 0: gen 0 oldest_gen 0 data_type journal journal_seq_nonempty 0 journal_seq_empty 0 need_discard 0 need_inc_gen 0 dirty_sectors 256 stripe_sectors 0 cached_sectors 0 stripe 0 stripe_redundancy 0 io_time[READ] 0 io_time[WRITE] 0 fragmentation 0 bp_start 8 incorrectly set at freespace:0:30:0 (free 0, genbits 0 should be 0), fixing bcachefs (loop6): u64s 13 type alloc_v4 0:33:0 len 0 ver 0: gen 0 oldest_gen 0 data_type journal journal_seq_nonempty 0 journal_seq_empty 0 need_discard 0 need_inc_gen 0 dirty_sectors 256 stripe_sectors 0 cached_sectors 0 stripe 0 stripe_redundancy 0 io_time[READ] 0 io_time[WRITE] 0 fragmentation 0 bp_start 8 incorrectly set at freespace:0:33:0 (free 0, genbits 0 should be 0), fixing bcachefs (loop6): u64s 13 type alloc_v4 0:36:0 len 0 ver 0: gen 0 oldest_gen 0 data_type journal journal_seq_nonempty 0 journal_seq_empty 0 need_discard 0 need_inc_gen 0 dirty_sectors 256 stripe_sectors 0 cached_sectors 0 stripe 0 stripe_redundancy 0 io_time[READ] 0 io_time[WRITE] 0 fragmentation 0 bp_start 8 incorrectly set at freespace:0:36:0 (free 0, genbits 0 should be 0), fixing bcachefs (loop6): u64s 13 type alloc_v4 0:39:0 len 0 ver 0: gen 0 oldest_gen 0 data_type journal journal_seq_nonempty 0 journal_seq_empty 0 need_discard 0 need_inc_gen 0 dirty_sectors 256 stripe_sectors 0 cached_sectors 0 stripe 0 stripe_redundancy 0 io_time[READ] 0 io_time[WRITE] 0 fragmentation 0 bp_start 8 incorrectly set at freespace:0:39:0 (free 0, genbits 0 should be 0), fixing bcachefs (loop6): u64s 13 type alloc_v4 0:40:0 len 0 ver 0: gen 0 oldest_gen 0 data_type journal journal_seq_nonempty 0 journal_seq_empty 0 need_discard 0 need_inc_gen 0 dirty_sectors 256 stripe_sectors 0 cached_sectors 0 stripe 0 stripe_redundancy 0 io_time[READ] 0 io_time[WRITE] 0 fragmentation 0 bp_start 8 incorrectly set at freespace:0:40:0 (free 0, genbits 0 should be 0), fixing bcachefs (loop6): u64s 13 type alloc_v4 0:43:0 len 0 ver 0: gen 0 oldest_gen 0 data_type journal journal_seq_nonempty 0 journal_seq_empty 0 need_discard 0 need_inc_gen 0 dirty_sectors 256 stripe_sectors 0 cached_sectors 0 stripe 0 stripe_redundancy 0 io_time[READ] 0 io_time[WRITE] 0 fragmentation 0 bp_start 8 incorrectly set at freespace:0:43:0 (free 0, genbits 0 should be 0), fixing bcachefs (loop6): u64s 13 type alloc_v4 0:44:0 len 0 ver 0: gen 0 oldest_gen 0 data_type journal journal_seq_nonempty 0 journal_seq_empty 0 need_discard 0 need_inc_gen 0 dirty_sectors 256 stripe_sectors 0 cached_sectors 0 stripe 0 stripe_redundancy 0 io_time[READ] 0 io_time[WRITE] 0 fragmentation 0 bp_start 8 incorrectly set at freespace:0:44:0 (free 0, genbits 0 should be 0), fixing bcachefs (loop6): u64s 13 type alloc_v4 0:45:0 len 0 ver 0: gen 0 oldest_gen 0 data_type journal journal_seq_nonempty 0 journal_seq_empty 0 need_discard 0 need_inc_gen 0 dirty_sectors 256 stripe_sectors 0 cached_sectors 0 stripe 0 stripe_redundancy 0 io_time[READ] 0 io_time[WRITE] 0 fragmentation 0 bp_start 8 incorrectly set at freespace:0:45:0 (free 0, genbits 0 should be 0), fixing bcachefs (loop6): u64s 13 type alloc_v4 0:46:0 len 0 ver 0: gen 0 oldest_gen 0 data_type journal journal_seq_nonempty 0 journal_seq_empty 0 need_discard 0 need_inc_gen 0 dirty_sectors 256 stripe_sectors 0 cached_sectors 0 stripe 0 stripe_redundancy 0 io_time[READ] 0 io_time[WRITE] 0 fragmentation 0 bp_start 8 incorrectly set at freespace:0:46:0 (free 0, genbits 0 should be 0), fixing bcachefs (loop6): u64s 13 type alloc_v4 0:47:0 len 0 ver 0: gen 0 oldest_gen 0 data_type journal journal_seq_nonempty 0 journal_seq_empty 0 need_discard 0 need_inc_gen 0 dirty_sectors 256 stripe_sectors 0 cached_sectors 0 stripe 0 stripe_redundancy 0 io_time[READ] 0 io_time[WRITE] 0 fragmentation 0 bp_start 8 incorrectly set at freespace:0:47:0 (free 0, genbits 0 should be 0), fixing Ratelimiting new instances of previous error done bcachefs (loop6): check_extents_to_backpointers... bcachefs (loop6): scanning for missing backpointers in 6/128 buckets done bcachefs (loop6): check_inodes... bcachefs (loop6): inode 4096:4294967295 points to subvol 1, but subvol points to 9895604654080:4294967295, fixing bcachefs (loop6): inode points to missing dirent inum: 4097:4294967295 mode=40700 flags=(15300000) journal_seq=1 hash_seed=a9fcff247692d1ca hash_type=siphash bi_size=0 bi_sectors=0 bi_version=0 bi_atime=200535484 bi_ctime=200535484 bi_mtime=200535484 bi_otime=200535484 bi_uid=0 bi_gid=0 bi_nlink=0 bi_generation=0 bi_dev=0 bi_data_checksum=0 bi_compression=0 bi_project=0 bi_background_compression=0 bi_data_replicas=0 bi_promote_target=0 bi_foreground_target=0 bi_background_target=0 bi_erasure_code=0 bi_fields_set=0 bi_dir=4096 bi_dir_offset=8130059955150870709 bi_subvol=0 bi_parent_subvol=0 bi_nocow=0 bi_depth=0 bi_inodes_32bit=0 bi_casefold=0, fixing bcachefs (loop6): inode points to missing dirent inum: 4098:4294967295 mode=40755 flags=(15300000) journal_seq=4 hash_seed=ece93825deac2443 hash_type=siphash bi_size=0 bi_sectors=0 bi_version=0 bi_atime=2770562249 bi_ctime=2780562352 bi_mtime=2780562352 bi_otime=2770562249 bi_uid=0 bi_gid=0 bi_nlink=0 bi_generation=0 bi_dev=0 bi_data_checksum=0 bi_compression=0 bi_project=0 bi_background_compression=0 bi_data_replicas=0 bi_promote_target=0 bi_foreground_target=0 bi_background_target=0 bi_erasure_code=0 bi_fields_set=0 bi_dir=4096 bi_dir_offset=189491840996961599 bi_subvol=0 bi_parent_subvol=0 bi_nocow=0 bi_depth=0 bi_inodes_32bit=0 bi_casefold=0, fixing bcachefs (loop6): inode points to missing dirent inum: 4099:4294967295 mode=100755 flags=(15300000) journal_seq=5 hash_seed=fc917866faeb7b5b hash_type=siphash bi_size=1050 bi_sectors=8 bi_version=0 bi_atime=2770562249 bi_ctime=2770562249 bi_mtime=2770562249 bi_otime=2770562249 bi_uid=0 bi_gid=0 bi_nlink=0 bi_generation=0 bi_dev=0 bi_data_checksum=0 bi_compression=0 bi_project=0 bi_background_compression=0 bi_data_replicas=0 bi_promote_target=0 bi_foreground_target=0 bi_background_target=0 bi_erasure_code=0 bi_fields_set=0 bi_dir=4098 bi_dir_offset=8977922886548783724 bi_subvol=0 bi_parent_subvol=0 bi_nocow=0 bi_depth=0 bi_inodes_32bit=0 bi_casefold=0, fixing bcachefs (loop6): inode points to missing dirent inum: 4100:4294967295 mode=120777 flags=(15300000) journal_seq=4 hash_seed=f4891abdd5c0cd85 hash_type=siphash bi_size=38 bi_sectors=8 bi_version=0 bi_atime=2770562249 bi_ctime=2780562352 bi_mtime=2770562249 bi_otime=2770562249 bi_uid=0 bi_gid=0 bi_nlink=0 bi_generation=0 bi_dev=0 bi_data_checksum=0 bi_compression=0 bi_project=0 bi_background_compression=0 bi_data_replicas=0 bi_promote_target=0 bi_foreground_target=0 bi_background_target=0 bi_erasure_code=0 bi_fields_set=0 bi_dir=4098 bi_dir_offset=5675548428000973578 bi_subvol=0 bi_parent_subvol=0 bi_nocow=0 bi_depth=0 bi_inodes_32bit=0 bi_casefold=0, fixing bcachefs (loop6): inode points to missing dirent inum: 536870912:4294967295 mode=100755 flags=(15300000) journal_seq=4 hash_seed=8469d717004af4ef hash_type=siphash bi_size=10 bi_sectors=8 bi_version=0 bi_atime=2780562352 bi_ctime=2780562352 bi_mtime=2780562352 bi_otime=2780562352 bi_uid=0 bi_gid=0 bi_nlink=0 bi_generation=0 bi_dev=0 bi_data_checksum=0 bi_compression=0 bi_project=0 bi_background_compression=0 bi_data_replicas=0 bi_promote_target=0 bi_foreground_target=0 bi_background_target=0 bi_erasure_code=0 bi_fields_set=0 bi_dir=4096 bi_dir_offset=4330382808765833931 bi_subvol=0 bi_parent_subvol=0 bi_nocow=0 bi_depth=0 bi_inodes_32bit=0 bi_casefold=0, fixing bcachefs (loop6): inode points to missing dirent inum: 536870913:4294967295 mode=100755 flags=(15300000) journal_seq=5 hash_seed=b68791a594a6d5ae hash_type=siphash bi_size=9000 bi_sectors=24 bi_version=0 bi_atime=2780562352 bi_ctime=2780562352 bi_mtime=2780562352 bi_otime=2780562352 bi_uid=0 bi_gid=0 bi_nlink=1 bi_generation=0 bi_dev=0 bi_data_checksum=0 bi_compression=0 bi_project=0 bi_background_compression=0 bi_data_replicas=0 bi_promote_target=0 bi_foreground_target=0 bi_background_target=0 bi_erasure_code=0 bi_fields_set=0 bi_dir=4096 bi_dir_offset=1896155912177158345 bi_subvol=0 bi_parent_subvol=0 bi_nocow=0 bi_depth=0 bi_inodes_32bit=0 bi_casefold=0, fixing bcachefs (loop6): inode points to missing dirent inum: 536870914:4294967295 mode=100755 flags=(15300000) journal_seq=4 hash_seed=d483206f1ed95abf hash_type=siphash bi_size=100 bi_sectors=8 bi_version=0 bi_atime=2780562352 bi_ctime=2780562352 bi_mtime=2780562352 bi_otime=2780562352 bi_uid=0 bi_gid=0 bi_nlink=0 bi_generation=0 bi_dev=0 bi_data_checksum=0 bi_compression=0 bi_project=0 bi_background_compression=0 bi_data_replicas=0 bi_promote_target=0 bi_foreground_target=0 bi_background_target=0 bi_erasure_code=0 bi_fields_set=0 bi_dir=4096 bi_dir_offset=9097378837824744618 bi_subvol=0 bi_parent_subvol=0 bi_nocow=0 bi_depth=0 bi_inodes_32bit=0 bi_casefold=0, fixing done bcachefs (loop6): resume_logged_ops... done bcachefs (loop6): delete_dead_inodes... done bcachefs (loop6): Fixed errors, running fsck a second time to verify fs is clean bcachefs (loop6): check_extents_to_backpointers... done bcachefs (loop6): check_inodes... done bcachefs (loop6): resume_logged_ops... done bcachefs (loop6): delete_dead_inodes... done bcachefs (loop6): done starting filesystem