BUG: MAX_LOCKDEP_CHAINS too low! turning off the locking correctness validator. CPU: 0 PID: 7355 Comm: kworker/u4:16 Not tainted 6.1.148-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/30/2025 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+0x30/0x40 lib/dump_stack.c:88 dump_stack_lvl+0xf8/0x160 lib/dump_stack.c:106 dump_stack+0x1c/0x5c lib/dump_stack.c:113 add_chain_cache kernel/locking/lockdep.c:-1 [inline] lookup_chain_cache_add kernel/locking/lockdep.c:3772 [inline] validate_chain kernel/locking/lockdep.c:3793 [inline] __lock_acquire+0x1b40/0x6544 kernel/locking/lockdep.c:5049 lock_acquire+0x20c/0x644 kernel/locking/lockdep.c:5662 fs_reclaim_acquire+0xc4/0x124 mm/page_alloc.c:4736 might_alloc include/linux/sched/mm.h:271 [inline] slab_pre_alloc_hook mm/slab.h:710 [inline] slab_alloc_node mm/slub.c:3318 [inline] slab_alloc mm/slub.c:3406 [inline] __kmem_cache_alloc_lru mm/slub.c:3413 [inline] kmem_cache_alloc+0x60/0x318 mm/slub.c:3422 kmem_cache_zalloc include/linux/slab.h:689 [inline] __alloc_extent_buffer+0x40/0x1d4 fs/btrfs/extent_io.c:4273 alloc_extent_buffer+0x154/0x10bc fs/btrfs/extent_io.c:4596 btrfs_find_create_tree_block+0x3c/0x50 fs/btrfs/disk-io.c:915 btrfs_init_new_buffer fs/btrfs/extent-tree.c:4918 [inline] btrfs_alloc_tree_block+0x1dc/0x1158 fs/btrfs/extent-tree.c:5037 btrfs_force_cow_block+0x3a0/0x187c fs/btrfs/ctree.c:443 btrfs_cow_block+0x2d0/0x710 fs/btrfs/ctree.c:616 btrfs_search_slot+0xa54/0x2364 fs/btrfs/ctree.c:2080 btrfs_lookup_file_extent+0xd8/0x128 fs/btrfs/file-item.c:253 btrfs_drop_extents+0x348/0x2268 fs/btrfs/file.c:243 insert_reserved_file_extent+0x254/0x7ac fs/btrfs/inode.c:3087 insert_ordered_extent_file_extent fs/btrfs/inode.c:3194 [inline] btrfs_finish_ordered_io+0x984/0x162c fs/btrfs/inode.c:3306 finish_ordered_fn+0x20/0x30 fs/btrfs/ordered-data.c:281 btrfs_work_helper+0x30c/0xccc fs/btrfs/async-thread.c:280 process_one_work+0x7f4/0x13a8 kernel/workqueue.c:2292 worker_thread+0x8c8/0xfbc kernel/workqueue.c:2439 kthread+0x250/0x2d8 kernel/kthread.c:376 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:849