BUG: MAX_LOCKDEP_CHAIN_HLOCKS too low! turning off the locking correctness validator. CPU: 0 PID: 2595 Comm: kworker/u4:2 Not tainted 6.6.0-rc4-syzkaller-g19af4a4ed414 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/06/2023 Workqueue: events_unbound btrfs_async_reclaim_metadata_space Call trace: dump_backtrace+0x1b8/0x1e4 arch/arm64/kernel/stacktrace.c:233 show_stack+0x2c/0x44 arch/arm64/kernel/stacktrace.c:240 __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd0/0x124 lib/dump_stack.c:106 dump_stack+0x1c/0x28 lib/dump_stack.c:113 lookup_chain_cache_add kernel/locking/lockdep.c:3815 [inline] validate_chain kernel/locking/lockdep.c:3836 [inline] __lock_acquire+0x1c60/0x75e8 kernel/locking/lockdep.c:5136 lock_acquire+0x23c/0x71c kernel/locking/lockdep.c:5753 _raw_spin_lock_nested+0x50/0x6c kernel/locking/spinlock.c:378 raw_spin_rq_lock_nested kernel/sched/core.c:558 [inline] raw_spin_rq_lock kernel/sched/sched.h:1372 [inline] rq_lock kernel/sched/sched.h:1681 [inline] __schedule+0x2d8/0x23b4 kernel/sched/core.c:6612 preempt_schedule_irq+0x80/0x188 kernel/sched/core.c:7007 arm64_preempt_schedule_irq arch/arm64/kernel/entry-common.c:267 [inline] __el1_irq arch/arm64/kernel/entry-common.c:505 [inline] el1_interrupt+0x4c/0x68 arch/arm64/kernel/entry-common.c:517 el1h_64_irq_handler+0x18/0x24 arch/arm64/kernel/entry-common.c:522 el1h_64_irq+0x64/0x68 arch/arm64/kernel/entry.S:591 trace_lock_acquire include/trace/events/lock.h:24 [inline] lock_acquire+0xb8/0x71c kernel/locking/lockdep.c:5724 down_read+0x58/0x2fc kernel/locking/rwsem.c:1520 find_free_extent+0xa98/0x4eb4 fs/btrfs/extent-tree.c:4254 btrfs_reserve_extent+0x35c/0x674 fs/btrfs/extent-tree.c:4516 btrfs_alloc_tree_block+0x1b0/0x1444 fs/btrfs/extent-tree.c:4931 split_leaf+0x8d0/0x119c fs/btrfs/ctree.c:3853 search_leaf fs/btrfs/ctree.c:2043 [inline] btrfs_search_slot+0x220c/0x29d8 fs/btrfs/ctree.c:2230 btrfs_insert_empty_items+0xa4/0x178 fs/btrfs/ctree.c:4376 btrfs_insert_empty_item fs/btrfs/ctree.h:636 [inline] alloc_reserved_file_extent+0x1b8/0x52c fs/btrfs/extent-tree.c:4632 run_delayed_data_ref fs/btrfs/extent-tree.c:1558 [inline] run_one_delayed_ref fs/btrfs/extent-tree.c:1746 [inline] btrfs_run_delayed_refs_for_head fs/btrfs/extent-tree.c:1988 [inline] __btrfs_run_delayed_refs+0x1068/0x3890 fs/btrfs/extent-tree.c:2049 btrfs_run_delayed_refs+0x13c/0x4c0 fs/btrfs/extent-tree.c:2161 flush_space+0x8ec/0xd04 fs/btrfs/space-info.c:755 btrfs_async_reclaim_metadata_space+0x260/0x30c fs/btrfs/space-info.c:1069 process_one_work+0x694/0x1204 kernel/workqueue.c:2630 process_scheduled_works kernel/workqueue.c:2703 [inline] worker_thread+0x938/0xef4 kernel/workqueue.c:2784 kthread+0x288/0x310 kernel/kthread.c:388 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:857