BUG: MAX_LOCKDEP_CHAIN_HLOCKS too low! turning off the locking correctness validator. CPU: 0 UID: 0 PID: 315 Comm: kworker/u8:5 Not tainted 6.11.0-rc7-syzkaller-00105-g5f5673607153 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 Workqueue: btrfs-qgroup-rescan btrfs_work_helper Call trace: dump_backtrace+0x1b8/0x1e4 arch/arm64/kernel/stacktrace.c:319 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:326 __dump_stack lib/dump_stack.c:93 [inline] dump_stack_lvl+0xe4/0x150 lib/dump_stack.c:119 dump_stack+0x1c/0x28 lib/dump_stack.c:128 lookup_chain_cache_add kernel/locking/lockdep.c:3815 [inline] validate_chain kernel/locking/lockdep.c:3836 [inline] __lock_acquire+0x1fa0/0x779c kernel/locking/lockdep.c:5142 reacquire_held_locks+0x234/0x454 kernel/locking/lockdep.c:5284 __lock_release kernel/locking/lockdep.c:5473 [inline] lock_release+0x35c/0x9e8 kernel/locking/lockdep.c:5780 up_write+0x88/0x760 kernel/locking/rwsem.c:1631 btrfs_tree_unlock+0xdc/0x2e0 fs/btrfs/locking.c:216 btrfs_force_cow_block+0xf24/0x1c9c fs/btrfs/ctree.c:658 btrfs_cow_block+0x318/0xa28 fs/btrfs/ctree.c:754 btrfs_search_slot+0xba0/0x2a08 btrfs_search_prev_slot fs/btrfs/free-space-tree.c:140 [inline] add_free_space_extent fs/btrfs/free-space-tree.c:910 [inline] __add_to_free_space_tree+0x474/0x1150 fs/btrfs/free-space-tree.c:1021 add_to_free_space_tree+0x120/0x2c0 fs/btrfs/free-space-tree.c:1050 do_free_extent_accounting fs/btrfs/extent-tree.c:2976 [inline] __btrfs_free_extent+0x14fc/0x31f8 fs/btrfs/extent-tree.c:3346 run_delayed_tree_ref fs/btrfs/extent-tree.c:1724 [inline] run_one_delayed_ref fs/btrfs/extent-tree.c:1750 [inline] btrfs_run_delayed_refs_for_head fs/btrfs/extent-tree.c:2015 [inline] __btrfs_run_delayed_refs+0xcb4/0x3c5c fs/btrfs/extent-tree.c:2085 btrfs_run_delayed_refs+0xc4/0x2bc fs/btrfs/extent-tree.c:2197 btrfs_commit_transaction+0x220/0x2ba4 fs/btrfs/transaction.c:2198 btrfs_qgroup_rescan_worker+0x1370/0x1750 fs/btrfs/qgroup.c:3854 btrfs_work_helper+0x340/0xd28 fs/btrfs/async-thread.c:314 process_one_work+0x79c/0x15b8 kernel/workqueue.c:3231 process_scheduled_works kernel/workqueue.c:3312 [inline] worker_thread+0x978/0xec4 kernel/workqueue.c:3389 kthread+0x288/0x310 kernel/kthread.c:389 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:860 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) 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)