BUG: MAX_LOCKDEP_CHAINS too low! turning off the locking correctness validator. CPU: 0 PID: 9003 Comm: kworker/u4:21 Not tainted 5.15.173-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/30/2024 Workqueue: btrfs-endio-write btrfs_work_helper Call trace: dump_backtrace+0x0/0x530 arch/arm64/kernel/stacktrace.c:152 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:216 __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x108/0x170 lib/dump_stack.c:106 dump_stack+0x1c/0x58 lib/dump_stack.c:113 lookup_chain_cache_add kernel/locking/lockdep.c:3735 [inline] validate_chain kernel/locking/lockdep.c:3756 [inline] __lock_acquire+0x1b64/0x7638 kernel/locking/lockdep.c:5012 lock_acquire+0x240/0x77c kernel/locking/lockdep.c:5623 __raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline] _raw_spin_lock+0xb0/0x10c kernel/locking/spinlock.c:154 rcu_note_context_switch+0x2a8/0xfe8 kernel/rcu/tree_plugin.h:322 __schedule+0x314/0x1e48 kernel/sched/core.c:6270 preempt_schedule_irq+0x90/0x274 kernel/sched/core.c:6777 arm64_preempt_schedule_irq+0x174/0x2c4 arch/arm64/kernel/entry-common.c:260 el1_interrupt+0x40/0x58 arch/arm64/kernel/entry-common.c:463 el1h_64_irq_handler+0x18/0x24 arch/arm64/kernel/entry-common.c:470 el1h_64_irq+0x78/0x7c arch/arm64/kernel/entry.S:522 rcu_preempt_read_exit kernel/rcu/tree_plugin.h:380 [inline] __rcu_read_unlock+0x44/0x13c kernel/rcu/tree_plugin.h:419 rcu_read_unlock include/linux/rcupdate.h:771 [inline] btrfs_root_node+0x3dc/0x404 fs/btrfs/ctree.c:139 btrfs_read_lock_root_node+0x68/0x344 fs/btrfs/locking.c:276 btrfs_search_slot_get_root fs/btrfs/ctree.c:1655 [inline] btrfs_search_slot+0x3d0/0x24d8 fs/btrfs/ctree.c:1813 btrfs_insert_empty_items+0x1e4/0x2ac fs/btrfs/ctree.c:4007 btrfs_insert_empty_item fs/btrfs/ctree.h:2950 [inline] insert_reserved_file_extent+0x500/0xa4c fs/btrfs/inode.c:2938 insert_ordered_extent_file_extent fs/btrfs/inode.c:3032 [inline] btrfs_finish_ordered_io+0xc74/0x1660 fs/btrfs/inode.c:3134 finish_ordered_fn+0x20/0x30 fs/btrfs/inode.c:3257 btrfs_work_helper+0x348/0x1554 fs/btrfs/async-thread.c:325 process_one_work+0x790/0x11b8 kernel/workqueue.c:2310 worker_thread+0x910/0x1034 kernel/workqueue.c:2457 kthread+0x37c/0x45c kernel/kthread.c:334 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:870