BUG: MAX_LOCKDEP_CHAIN_HLOCKS too low! turning off the locking correctness validator. CPU: 1 PID: 181 Comm: kworker/u4:4 Not tainted 6.1.119-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Workqueue: btrfs-qgroup-rescan btrfs_work_helper Call trace: dump_backtrace+0x1c8/0x1f4 arch/arm64/kernel/stacktrace.c:158 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:165 __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x108/0x170 lib/dump_stack.c:106 dump_stack+0x1c/0x58 lib/dump_stack.c:113 lookup_chain_cache_add kernel/locking/lockdep.c:3772 [inline] validate_chain kernel/locking/lockdep.c:3793 [inline] __lock_acquire+0x1b88/0x7680 kernel/locking/lockdep.c:5049 lock_acquire+0x26c/0x7cc kernel/locking/lockdep.c:5662 _raw_spin_lock_nested+0x5c/0x78 kernel/locking/spinlock.c:378 raw_spin_rq_lock_nested kernel/sched/core.c:537 [inline] raw_spin_rq_lock kernel/sched/sched.h:1355 [inline] rq_lock kernel/sched/sched.h:1645 [inline] ttwu_queue kernel/sched/core.c:3899 [inline] try_to_wake_up+0x4c8/0xe60 kernel/sched/core.c:4224 wake_up_process+0x18/0x24 kernel/sched/core.c:4358 wake_up_worker kernel/workqueue.c:859 [inline] insert_work+0x2ac/0x384 kernel/workqueue.c:1369 __queue_work+0xd48/0x136c kernel/workqueue.c:1520 queue_work_on+0xc0/0x16c kernel/workqueue.c:1548 queue_work include/linux/workqueue.h:512 [inline] loop_queue_work drivers/block/loop.c:892 [inline] loop_queue_rq+0x978/0xae0 drivers/block/loop.c:1873 __blk_mq_issue_directly block/blk-mq.c:2625 [inline] __blk_mq_try_issue_directly+0x42c/0x684 block/blk-mq.c:2678 blk_mq_request_issue_directly block/blk-mq.c:2712 [inline] blk_mq_plug_issue_direct+0x1fc/0x56c block/blk-mq.c:2732 blk_mq_flush_plug_list+0x53c/0xa1c block/blk-mq.c:2832 __blk_flush_plug+0x388/0x408 block/blk-core.c:1163 blk_finish_plug+0x68/0x90 block/blk-core.c:1187 btrfs_write_and_wait_transaction+0xfc/0x200 fs/btrfs/transaction.c:1211 btrfs_commit_transaction+0x1b20/0x2cd4 fs/btrfs/transaction.c:2494 btrfs_qgroup_rescan_worker+0x15a8/0x161c fs/btrfs/qgroup.c:3410 btrfs_work_helper+0x32c/0xdb4 fs/btrfs/async-thread.c:280 process_one_work+0x7ac/0x1404 kernel/workqueue.c:2292 worker_thread+0x8e4/0xfec kernel/workqueue.c:2439 kthread+0x250/0x2d8 kernel/kthread.c:376 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:864 BTRFS info (device loop8): qgroup scan completed (inconsistency flag cleared)