BUG: MAX_LOCKDEP_CHAIN_HLOCKS too low! turning off the locking correctness validator. CPU: 1 UID: 0 PID: 1925 Comm: kworker/u8:6 Not tainted 6.12.0-rc7-syzkaller-g887407160d72 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Workqueue: btrfs-qgroup-rescan btrfs_work_helper Call trace: show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:484 (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+0x1fb8/0x77c8 kernel/locking/lockdep.c:5202 reacquire_held_locks+0x234/0x454 kernel/locking/lockdep.c:5350 __lock_release kernel/locking/lockdep.c:5539 [inline] lock_release+0x35c/0x9e8 kernel/locking/lockdep.c:5846 up_write+0x88/0x760 kernel/locking/rwsem.c:1629 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 lookup_inline_extent_backref+0x318/0x11cc fs/btrfs/extent-tree.c:812 lookup_extent_backref fs/btrfs/extent-tree.c:1044 [inline] __btrfs_free_extent+0x378/0x31f8 fs/btrfs/extent-tree.c:3119 run_delayed_tree_ref fs/btrfs/extent-tree.c:1740 [inline] run_one_delayed_ref fs/btrfs/extent-tree.c:1766 [inline] btrfs_run_delayed_refs_for_head fs/btrfs/extent-tree.c:2031 [inline] __btrfs_run_delayed_refs+0xcb4/0x3c5c fs/btrfs/extent-tree.c:2101 btrfs_run_delayed_refs+0xc4/0x2bc fs/btrfs/extent-tree.c:2213 commit_cowonly_roots+0x574/0x750 fs/btrfs/transaction.c:1374 btrfs_commit_transaction+0x1170/0x2ba4 fs/btrfs/transaction.c:2447 btrfs_qgroup_rescan_worker+0x1370/0x1750 fs/btrfs/qgroup.c:3865 btrfs_work_helper+0x340/0xd28 fs/btrfs/async-thread.c:314 process_one_work+0x7bc/0x1600 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 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) 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)