BUG: MAX_LOCKDEP_CHAIN_HLOCKS too low! turning off the locking correctness validator. CPU: 1 UID: 0 PID: 44 Comm: kworker/u8:3 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 lock_acquire+0x240/0x728 kernel/locking/lockdep.c:5825 folio_memcg_lock+0xd4/0x1d8 mm/memcontrol-v1.c:505 filemap_dirty_folio+0x38/0x1a8 mm/page-writeback.c:2825 folio_mark_dirty+0x118/0x198 mm/page-writeback.c:2909 btrfs_folio_set_dirty+0x20/0x30 fs/btrfs/subpage.c:734 set_extent_buffer_dirty+0x400/0x66c fs/btrfs/extent_io.c:3330 btrfs_mark_buffer_dirty+0x170/0x33c fs/btrfs/disk-io.c:4410 btrfs_force_cow_block+0xf38/0x1c9c fs/btrfs/ctree.c:660 btrfs_cow_block+0x318/0xa28 fs/btrfs/ctree.c:754 btrfs_search_slot+0xba0/0x2a08 btrfs_update_root+0xec/0xa90 fs/btrfs/root-tree.c:144 commit_fs_roots+0x430/0x69c fs/btrfs/transaction.c:1511 btrfs_commit_transaction+0x112c/0x2ba4 fs/btrfs/transaction.c:2430 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) BTRFS info (device loop0): qgroup scan completed (inconsistency flag cleared) BTRFS info (device loop0): qgroup scan completed (inconsistency flag cleared) _btrfs_printk: 33 callbacks suppressed BTRFS info (device loop0): qgroup scan completed (inconsistency flag cleared) BTRFS info (device loop0): qgroup scan completed (inconsistency flag cleared)