BUG: MAX_LOCKDEP_CHAIN_HLOCKS too low! turning off the locking correctness validator. CPU: 1 PID: 6066 Comm: syz-executor.3 Not tainted 6.6.0-rc6-syzkaller-g78124b0c1d10 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/06/2023 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 do_write_seqcount_begin_nested include/linux/seqlock.h:515 [inline] do_write_seqcount_begin include/linux/seqlock.h:541 [inline] psi_group_change+0x224/0x12e4 kernel/sched/psi.c:798 psi_task_switch+0x180/0x618 kernel/sched/psi.c:949 psi_sched_switch kernel/sched/stats.h:185 [inline] __schedule+0x1d18/0x23b4 kernel/sched/core.c:6690 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 __daif_local_irq_restore arch/arm64/include/asm/irqflags.h:176 [inline] arch_local_irq_restore arch/arm64/include/asm/irqflags.h:196 [inline] lock_acquire+0x278/0x71c kernel/locking/lockdep.c:5756 fs_reclaim_acquire+0xb0/0x120 mm/page_alloc.c:3568 might_alloc include/linux/sched/mm.h:303 [inline] slab_pre_alloc_hook mm/slab.h:709 [inline] slab_alloc_node mm/slub.c:3460 [inline] slab_alloc mm/slub.c:3486 [inline] __kmem_cache_alloc_lru mm/slub.c:3493 [inline] kmem_cache_alloc+0x58/0x424 mm/slub.c:3502 btrfs_alloc_delayed_extent_op fs/btrfs/delayed-ref.h:329 [inline] btrfs_alloc_tree_block+0xb90/0x1444 fs/btrfs/extent-tree.c:4951 __btrfs_cow_block+0x3f4/0x1924 fs/btrfs/ctree.c:546 btrfs_cow_block+0x314/0xa0c fs/btrfs/ctree.c:724 btrfs_search_slot+0xb8c/0x29d8 btrfs_search_prev_slot fs/btrfs/free-space-tree.c:140 [inline] add_free_space_extent fs/btrfs/free-space-tree.c:909 [inline] __add_to_free_space_tree+0x474/0x1150 fs/btrfs/free-space-tree.c:1020 add_to_free_space_tree+0x120/0x2c0 fs/btrfs/free-space-tree.c:1049 do_free_extent_accounting fs/btrfs/extent-tree.c:2863 [inline] __btrfs_free_extent+0x1058/0x2c70 fs/btrfs/extent-tree.c:3212 run_delayed_tree_ref fs/btrfs/extent-tree.c:1718 [inline] run_one_delayed_ref fs/btrfs/extent-tree.c:1742 [inline] btrfs_run_delayed_refs_for_head fs/btrfs/extent-tree.c:1988 [inline] __btrfs_run_delayed_refs+0xd94/0x3868 fs/btrfs/extent-tree.c:2049 btrfs_run_delayed_refs+0x13c/0x4b0 fs/btrfs/extent-tree.c:2161 commit_cowonly_roots+0x574/0x750 fs/btrfs/transaction.c:1337 btrfs_commit_transaction+0x1130/0x2dd4 fs/btrfs/transaction.c:2435 btrfs_commit_super+0xb4/0xd0 fs/btrfs/disk-io.c:4202 close_ctree+0x38c/0xdec fs/btrfs/disk-io.c:4356 btrfs_put_super+0x40/0x50 fs/btrfs/super.c:82 generic_shutdown_super+0x130/0x2b8 fs/super.c:693 kill_anon_super+0x4c/0x7c fs/super.c:1292 btrfs_kill_super+0x40/0x58 fs/btrfs/super.c:2144 deactivate_locked_super+0xac/0x12c fs/super.c:481 deactivate_super+0xe0/0x100 fs/super.c:514 cleanup_mnt+0x34c/0x3dc fs/namespace.c:1254 __cleanup_mnt+0x20/0x30 fs/namespace.c:1261 task_work_run+0x230/0x2e0 kernel/task_work.c:180 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] do_notify_resume+0x214c/0x393c arch/arm64/kernel/signal.c:1305 exit_to_user_mode_prepare arch/arm64/kernel/entry-common.c:137 [inline] exit_to_user_mode arch/arm64/kernel/entry-common.c:144 [inline] el0_svc+0x9c/0x158 arch/arm64/kernel/entry-common.c:679 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:696 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:595