BUG: MAX_LOCKDEP_CHAIN_HLOCKS too low! turning off the locking correctness validator. CPU: 0 UID: 0 PID: 791 Comm: kworker/u8:5 Not tainted syzkaller #0 PREEMPT Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/03/2025 Workqueue: btrfs-qgroup-rescan btrfs_work_helper Call trace: show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:499 (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:3855 [inline] validate_chain kernel/locking/lockdep.c:3876 [inline] __lock_acquire+0xf9c/0x30a4 kernel/locking/lockdep.c:5237 lock_acquire+0x14c/0x2e0 kernel/locking/lockdep.c:5868 do_write_seqcount_begin_nested include/linux/seqlock.h:477 [inline] do_write_seqcount_begin include/linux/seqlock.h:503 [inline] psi_write_begin+0x1b0/0x320 kernel/sched/psi.c:183 psi_task_change+0xd8/0x318 kernel/sched/psi.c:919 psi_enqueue kernel/sched/stats.h:166 [inline] enqueue_task+0x250/0x2f4 kernel/sched/core.c:2094 activate_task kernel/sched/core.c:2134 [inline] ttwu_do_activate+0x1a4/0x764 kernel/sched/core.c:3706 ttwu_queue kernel/sched/core.c:3969 [inline] try_to_wake_up+0x4c4/0xe24 kernel/sched/core.c:4293 default_wake_function+0x58/0x74 kernel/sched/core.c:7268 autoremove_wake_function+0x24/0xf8 kernel/sched/wait.c:403 __wake_up_common kernel/sched/wait.c:108 [inline] __wake_up_common_lock kernel/sched/wait.c:125 [inline] __wake_up+0x10c/0x1a8 kernel/sched/wait.c:146 btrfs_commit_transaction+0x196c/0x2ce4 fs/btrfs/transaction.c:2525 btrfs_qgroup_rescan_worker+0x12c8/0x19f8 fs/btrfs/qgroup.c:3834 btrfs_work_helper+0x380/0xca8 fs/btrfs/async-thread.c:312 process_one_work+0x7e8/0x155c kernel/workqueue.c:3263 process_scheduled_works kernel/workqueue.c:3346 [inline] worker_thread+0x958/0xed8 kernel/workqueue.c:3427 kthread+0x5fc/0x75c kernel/kthread.c:463 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:844 BTRFS info (device loop0): qgroup scan completed (inconsistency flag cleared) BTRFS info (device loop2): qgroup scan completed (inconsistency flag cleared) BTRFS info (device loop3): qgroup scan completed (inconsistency flag cleared) BTRFS info (device loop2): qgroup scan completed (inconsistency flag cleared) BTRFS info (device loop3): qgroup scan completed (inconsistency flag cleared) BTRFS info (device loop1): 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 loop4): qgroup scan completed (inconsistency flag cleared)