BUG: MAX_LOCKDEP_CHAINS too low! turning off the locking correctness validator. CPU: 1 UID: 0 PID: 16120 Comm: syz.1.3204 Not tainted 6.13.0-rc3-syzkaller-g573067a5a685 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Call trace: show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:466 (C) __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0xe4/0x150 lib/dump_stack.c:120 dump_stack+0x1c/0x28 lib/dump_stack.c:129 lookup_chain_cache_add kernel/locking/lockdep.c:3851 [inline] validate_chain kernel/locking/lockdep.c:3872 [inline] __lock_acquire+0x2070/0x7904 kernel/locking/lockdep.c:5226 lock_acquire+0x23c/0x724 kernel/locking/lockdep.c:5849 __mutex_lock_common+0x218/0x28f4 kernel/locking/mutex.c:585 __mutex_lock kernel/locking/mutex.c:735 [inline] mutex_lock_nested+0x2c/0x38 kernel/locking/mutex.c:787 bch2_btree_update_start+0x86c/0x15ac fs/bcachefs/btree_update_interior.c:1224 bch2_btree_split_leaf+0x118/0x7b0 fs/bcachefs/btree_update_interior.c:1856 bch2_trans_commit_error+0x2a8/0x1130 fs/bcachefs/btree_trans_commit.c:942 __bch2_trans_commit+0x2a80/0x6604 fs/bcachefs/btree_trans_commit.c:1140 bch2_trans_commit fs/bcachefs/btree_update.h:184 [inline] bch2_extent_update+0x3d0/0x9b4 fs/bcachefs/io_write.c:325 bch2_write_index_default fs/bcachefs/io_write.c:373 [inline] __bch2_write_index+0x6b0/0x1320 fs/bcachefs/io_write.c:526 bch2_write_data_inline fs/bcachefs/io_write.c:1556 [inline] bch2_write+0xddc/0x15c8 fs/bcachefs/io_write.c:1627 closure_queue include/linux/closure.h:270 [inline] closure_call include/linux/closure.h:432 [inline] bch2_writepage_do_io fs/bcachefs/fs-io-buffered.c:449 [inline] bch2_writepages+0x22c/0x310 fs/bcachefs/fs-io-buffered.c:641 do_writepages+0x304/0x7d0 mm/page-writeback.c:2702 filemap_fdatawrite_wbc mm/filemap.c:397 [inline] __filemap_fdatawrite_range mm/filemap.c:430 [inline] filemap_write_and_wait_range+0x200/0x314 mm/filemap.c:684 bchfs_truncate+0x600/0xa88 bch2_setattr+0x1a0/0x214 fs/bcachefs/fs.c:1163 notify_change+0x9f0/0xca0 fs/attr.c:552 do_truncate+0x1c0/0x28c fs/open.c:65 vfs_truncate+0x2b8/0x360 fs/open.c:111 do_sys_truncate+0xe8/0x1ac fs/open.c:134 __do_sys_truncate fs/open.c:146 [inline] __se_sys_truncate fs/open.c:144 [inline] __arm64_sys_truncate+0x5c/0x70 fs/open.c:144 __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+0x54/0x168 arch/arm64/kernel/entry-common.c:744 el0t_64_sync_handler+0x84/0x108 arch/arm64/kernel/entry-common.c:762 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:600 bcachefs (loop1): bch2_btree_update_start(): error EIO bcachefs (loop1 inum 4099 offset 4096): user write error while doing btree update: EIO