BUG: MAX_LOCKDEP_CHAIN_HLOCKS too low! turning off the locking correctness validator. CPU: 0 PID: 5779 Comm: kworker/u4:10 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/02/2026 Workqueue: btrfs-qgroup-rescan btrfs_work_helper Call trace: dump_backtrace+0x1c0/0x1ec arch/arm64/kernel/stacktrace.c:158 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:165 __dump_stack+0x30/0x40 lib/dump_stack.c:88 dump_stack_lvl+0xf4/0x15c lib/dump_stack.c:106 dump_stack+0x1c/0x5c lib/dump_stack.c:113 add_chain_cache kernel/locking/lockdep.c:-1 [inline] lookup_chain_cache_add kernel/locking/lockdep.c:3772 [inline] validate_chain kernel/locking/lockdep.c:3793 [inline] __lock_acquire+0x1864/0x6800 kernel/locking/lockdep.c:5049 lock_acquire+0x20c/0x63c kernel/locking/lockdep.c:5662 do_write_seqcount_begin_nested include/linux/seqlock.h:515 [inline] do_write_seqcount_begin include/linux/seqlock.h:541 [inline] psi_account_irqtime+0x320/0x7b4 kernel/sched/psi.c:1035 __schedule+0x784/0x1b0c kernel/sched/core.c:6556 schedule+0xc4/0x170 kernel/sched/core.c:6638 schedule_timeout+0xc8/0x2f4 kernel/time/timer.c:2144 io_schedule_timeout+0x8c/0xf4 kernel/sched/core.c:8786 do_wait_for_common+0x288/0x3f8 kernel/sched/completion.c:85 __wait_for_common kernel/sched/completion.c:106 [inline] wait_for_common_io kernel/sched/completion.c:123 [inline] wait_for_completion_io+0x44/0x5c kernel/sched/completion.c:171 wait_dev_flush fs/btrfs/disk-io.c:4215 [inline] barrier_all_devices fs/btrfs/disk-io.c:4266 [inline] write_all_supers+0x1588/0x35e8 fs/btrfs/disk-io.c:4345 btrfs_commit_transaction+0x1890/0x2884 fs/btrfs/transaction.c:2521 btrfs_qgroup_rescan_worker+0x14b8/0x152c fs/btrfs/qgroup.c:3423 btrfs_work_helper+0x324/0xcb0 fs/btrfs/async-thread.c:280 process_one_work+0x7f8/0x13a4 kernel/workqueue.c:2292 worker_thread+0x8c4/0xfec kernel/workqueue.c:2439 kthread+0x250/0x2d8 kernel/kthread.c:376 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:850 BTRFS info (device loop1): qgroup scan completed (inconsistency flag cleared)