BUG: MAX_LOCKDEP_CHAIN_HLOCKS too low! turning off the locking correctness validator. CPU: 0 UID: 0 PID: 2691 Comm: kworker/u8:10 Not tainted 6.16.0-rc2-syzkaller-00009-g9aa9b43d689e #0 PREEMPT Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 Workqueue: btrfs-endio-write btrfs_work_helper Call trace: show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:501 (C) __dump_stack+0x30/0x40 lib/dump_stack.c:94 dump_stack_lvl+0xd8/0x12c lib/dump_stack.c:120 dump_stack+0x1c/0x28 lib/dump_stack.c:129 add_chain_cache kernel/locking/lockdep.c:-1 [inline] lookup_chain_cache_add kernel/locking/lockdep.c:3858 [inline] validate_chain kernel/locking/lockdep.c:3879 [inline] __lock_acquire+0xf9c/0x30a4 kernel/locking/lockdep.c:5240 lock_acquire+0x14c/0x2e0 kernel/locking/lockdep.c:5871 down_write_nested+0x58/0xcc kernel/locking/rwsem.c:1693 btrfs_tree_lock_nested+0x44/0x2f4 fs/btrfs/locking.c:188 btrfs_tree_lock fs/btrfs/locking.h:179 [inline] btrfs_search_slot+0x1070/0x221c fs/btrfs/ctree.c:2186 btrfs_lookup_file_extent+0xd8/0x128 fs/btrfs/file-item.c:265 btrfs_drop_extents+0x348/0x21e4 fs/btrfs/file.c:188 insert_reserved_file_extent+0x254/0x7a4 fs/btrfs/inode.c:2959 insert_ordered_extent_file_extent fs/btrfs/inode.c:3061 [inline] btrfs_finish_one_ordered+0x914/0x17b4 fs/btrfs/inode.c:3181 btrfs_finish_ordered_io+0x120/0x134 fs/btrfs/inode.c:3323 finish_ordered_fn+0x20/0x30 fs/btrfs/ordered-data.c:347 btrfs_work_helper+0x380/0xca8 fs/btrfs/async-thread.c:312 process_one_work+0x7e8/0x155c kernel/workqueue.c:3238 process_scheduled_works kernel/workqueue.c:3321 [inline] worker_thread+0x958/0xed8 kernel/workqueue.c:3402 kthread+0x5fc/0x75c kernel/kthread.c:464 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:847 BTRFS info (device loop0): qgroup scan completed (inconsistency flag cleared) BTRFS info (device loop0): qgroup scan completed (inconsistency flag cleared) BTRFS info (device loop0): qgroup scan completed (inconsistency flag cleared) BTRFS info (device loop0): qgroup scan completed (inconsistency flag cleared) BTRFS info (device loop0): qgroup scan completed (inconsistency flag cleared) BTRFS info (device loop0): qgroup scan completed (inconsistency flag cleared) BTRFS info (device loop0): qgroup scan completed (inconsistency flag cleared) BTRFS info (device loop0): qgroup scan completed (inconsistency flag cleared)