BUG: MAX_LOCKDEP_CHAINS too low! turning off the locking correctness validator. CPU: 0 PID: 4422 Comm: kworker/u4:6 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/30/2025 Workqueue: btrfs-delalloc 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 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x6c/0xb4 kernel/locking/spinlock.c:162 __stack_depot_save+0x1c4/0x4b8 lib/stackdepot.c:479 kasan_save_stack mm/kasan/common.c:46 [inline] kasan_set_track+0x64/0x80 mm/kasan/common.c:52 kasan_save_free_info+0x3c/0x60 mm/kasan/generic.c:516 ____kasan_slab_free+0x148/0x1b0 mm/kasan/common.c:236 __kasan_slab_free+0x18/0x28 mm/kasan/common.c:244 kasan_slab_free include/linux/kasan.h:177 [inline] slab_free_hook mm/slub.c:1724 [inline] slab_free_freelist_hook+0x16c/0x1ec mm/slub.c:1750 slab_free mm/slub.c:3661 [inline] kmem_cache_free+0x11c/0x324 mm/slub.c:3683 free_extent_state+0x1a8/0x410 fs/btrfs/extent-io-tree.c:174 clear_state_bit+0x254/0x2d0 fs/btrfs/extent-io-tree.c:526 __clear_extent_bit+0x534/0xdc8 fs/btrfs/extent-io-tree.c:676 clear_extent_bit fs/btrfs/extent-io-tree.h:131 [inline] extent_clear_unlock_delalloc+0x54/0xa8 fs/btrfs/extent_io.c:488 submit_one_async_extent fs/btrfs/inode.c:1033 [inline] submit_compressed_extents+0x700/0xa84 fs/btrfs/inode.c:1095 async_cow_submit+0xa0/0x170 fs/btrfs/inode.c:1487 run_ordered_work fs/btrfs/async-thread.c:211 [inline] btrfs_work_helper+0x4d4/0xccc fs/btrfs/async-thread.c:290 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:850