BUG: MAX_LOCKDEP_CHAINS too low! turning off the locking correctness validator. CPU: 1 UID: 0 PID: 8736 Comm: kworker/u8:20 Not tainted 6.13.0-rc3-syzkaller-g573067a5a685 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Workqueue: btrfs-endio-write btrfs_work_helper 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 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x5c/0x7c kernel/locking/spinlock.c:162 stack_depot_save_flags+0x214/0x8b4 lib/stackdepot.c:640 kasan_save_stack mm/kasan/common.c:48 [inline] kasan_save_track+0x54/0x78 mm/kasan/common.c:68 kasan_save_free_info+0x54/0x6c mm/kasan/generic.c:582 poison_slab_object mm/kasan/common.c:247 [inline] __kasan_slab_free+0x64/0x8c mm/kasan/common.c:264 kasan_slab_free include/linux/kasan.h:233 [inline] slab_free_hook mm/slub.c:2353 [inline] slab_free mm/slub.c:4613 [inline] kmem_cache_free+0x198/0x554 mm/slub.c:4715 btrfs_put_delayed_ref fs/btrfs/delayed-ref.c:1146 [inline] drop_delayed_ref+0x288/0x3c8 fs/btrfs/delayed-ref.c:389 insert_delayed_ref fs/btrfs/delayed-ref.c:608 [inline] add_delayed_ref+0x1398/0x1ad8 fs/btrfs/delayed-ref.c:1039 btrfs_add_delayed_tree_ref+0x9c/0x110 fs/btrfs/delayed-ref.c:1077 btrfs_free_tree_block+0x338/0xb78 fs/btrfs/extent-tree.c:3432 btrfs_force_cow_block+0xc30/0x19d4 fs/btrfs/ctree.c:622 btrfs_cow_block+0x33c/0xad4 fs/btrfs/ctree.c:754 btrfs_search_slot+0xa74/0x272c fs/btrfs/ctree.c:2156 btrfs_lookup_file_extent+0x124/0x1bc fs/btrfs/file-item.c:267 btrfs_drop_extents+0x370/0x2764 fs/btrfs/file.c:233 insert_reserved_file_extent+0x2b4/0xa6c fs/btrfs/inode.c:2904 insert_ordered_extent_file_extent fs/btrfs/inode.c:3009 [inline] btrfs_finish_one_ordered+0xa00/0x1910 fs/btrfs/inode.c:3127 btrfs_finish_ordered_io+0x120/0x134 fs/btrfs/inode.c:3269 finish_ordered_fn+0x20/0x30 fs/btrfs/ordered-data.c:331 btrfs_work_helper+0x374/0xd5c fs/btrfs/async-thread.c:314 process_one_work+0x7a8/0x15cc kernel/workqueue.c:3229 process_scheduled_works kernel/workqueue.c:3310 [inline] worker_thread+0x97c/0xeec kernel/workqueue.c:3391 kthread+0x288/0x310 kernel/kthread.c:389 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:862