BUG: MAX_LOCKDEP_CHAIN_HLOCKS too low! turning off the locking correctness validator. CPU: 0 UID: 0 PID: 2058 Comm: kworker/u8:8 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 include/linux/spinlock_api_smp.h:133 [inline] _raw_spin_lock+0x48/0x60 kernel/locking/spinlock.c:154 spin_lock include/linux/spinlock.h:351 [inline] xa_cmpxchg include/linux/xarray.h:698 [inline] xa_reserve include/linux/xarray.h:1082 [inline] add_delayed_ref+0xbb4/0x1ad8 fs/btrfs/delayed-ref.c:1005 btrfs_add_delayed_data_ref+0x9c/0x110 fs/btrfs/delayed-ref.c:1088 btrfs_alloc_reserved_file_extent+0x2d0/0x438 fs/btrfs/extent-tree.c:4932 insert_reserved_file_extent+0x76c/0xa6c fs/btrfs/inode.c:2954 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 wlan1: Created IBSS using preconfigured BSSID 50:50:50:50:50:50 wlan1: Creating new IBSS network, BSSID 50:50:50:50:50:50