BUG: MAX_LOCKDEP_CHAIN_HLOCKS too low! turning off the locking correctness validator. CPU: 0 PID: 4383 Comm: kworker/u4:6 Not tainted 6.1.119-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Workqueue: btrfs-endio-write btrfs_work_helper Call trace: dump_backtrace+0x1c8/0x1f4 arch/arm64/kernel/stacktrace.c:158 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:165 __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x108/0x170 lib/dump_stack.c:106 dump_stack+0x1c/0x58 lib/dump_stack.c:113 lookup_chain_cache_add kernel/locking/lockdep.c:3772 [inline] validate_chain kernel/locking/lockdep.c:3793 [inline] __lock_acquire+0x1b88/0x7680 kernel/locking/lockdep.c:5049 lock_acquire+0x26c/0x7cc kernel/locking/lockdep.c:5662 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x6c/0xb4 kernel/locking/spinlock.c:162 percpu_counter_add_batch+0x160/0x2e4 lib/percpu_counter.c:90 btrfs_mark_buffer_dirty+0x1a8/0x220 fs/btrfs/disk-io.c:4815 __btrfs_cow_block+0xd0c/0x1824 fs/btrfs/ctree.c:524 btrfs_cow_block+0x314/0xaa4 fs/btrfs/ctree.c:613 btrfs_search_slot+0xb7c/0x2948 btrfs_lookup_csum+0x164/0x500 fs/btrfs/file-item.c:205 btrfs_csum_file_blocks+0x294/0x1554 fs/btrfs/file-item.c:1019 add_pending_csums fs/btrfs/inode.c:2784 [inline] btrfs_finish_ordered_io+0xc48/0x18b0 fs/btrfs/inode.c:3317 finish_ordered_fn+0x20/0x30 fs/btrfs/ordered-data.c:281 btrfs_work_helper+0x32c/0xdb4 fs/btrfs/async-thread.c:280 process_one_work+0x7ac/0x1404 kernel/workqueue.c:2292 worker_thread+0x8e4/0xfec kernel/workqueue.c:2439 kthread+0x250/0x2d8 kernel/kthread.c:376 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:864