BUG: MAX_LOCKDEP_CHAIN_HLOCKS too low! turning off the locking correctness validator. CPU: 0 UID: 0 PID: 4702 Comm: kworker/u8:9 Not tainted 6.17.0-rc1-syzkaller-g8f5ae30d69d7 #0 PREEMPT Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/30/2025 Workqueue: btrfs-worker 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:2092 activate_task kernel/sched/core.c:2132 [inline] ttwu_do_activate+0x1a4/0x764 kernel/sched/core.c:3741 ttwu_queue kernel/sched/core.c:4004 [inline] try_to_wake_up+0x4c4/0xe24 kernel/sched/core.c:4328 wake_up_process+0x18/0x24 kernel/sched/core.c:4459 kick_pool+0x3e0/0x58c kernel/workqueue.c:1283 __queue_work+0xdbc/0x1210 kernel/workqueue.c:2340 queue_work_on+0xdc/0x18c kernel/workqueue.c:2390 queue_work include/linux/workqueue.h:669 [inline] loop_queue_work drivers/block/loop.c:852 [inline] loop_queue_rq+0x944/0xaa8 drivers/block/loop.c:1878 __blk_mq_issue_directly block/blk-mq.c:2695 [inline] blk_mq_request_issue_directly+0x2c0/0x560 block/blk-mq.c:2782 blk_mq_issue_direct+0x254/0x558 block/blk-mq.c:2803 blk_mq_dispatch_queue_requests+0x568/0x674 block/blk-mq.c:2878 blk_mq_flush_plug_list+0x370/0x488 block/blk-mq.c:2961 __blk_flush_plug+0x330/0x408 block/blk-core.c:1220 blk_finish_plug block/blk-core.c:1247 [inline] __submit_bio+0x3f4/0x4d8 block/blk-core.c:649 __submit_bio_noacct_mq block/blk-core.c:722 [inline] submit_bio_noacct_nocheck+0x390/0xaac block/blk-core.c:751 submit_bio_noacct+0xc84/0x176c block/blk-core.c:874 submit_bio+0x3b4/0x550 block/blk-core.c:916 blkcg_punt_bio_submit+0xf8/0x110 block/blk-cgroup.c:252 btrfs_submit_dev_bio+0x430/0x8c4 fs/btrfs/bio.c:451 btrfs_submit_bio+0x520/0x5f0 fs/btrfs/bio.c:490 run_one_async_done+0xe8/0x164 fs/btrfs/bio.c:580 run_ordered_work fs/btrfs/async-thread.c:243 [inline] btrfs_work_helper+0x52c/0xca8 fs/btrfs/async-thread.c:322 process_one_work+0x7e8/0x155c kernel/workqueue.c:3236 process_scheduled_works kernel/workqueue.c:3319 [inline] worker_thread+0x958/0xed8 kernel/workqueue.c:3400 kthread+0x5fc/0x75c kernel/kthread.c:463 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:844