BUG: MAX_LOCKDEP_CHAIN_HLOCKS too low! turning off the locking correctness validator. CPU: 0 PID: 618 Comm: kworker/u4:12 Not tainted 6.6.0-rc6-syzkaller-g78124b0c1d10 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/06/2023 Workqueue: btrfs-qgroup-rescan btrfs_work_helper Call trace: dump_backtrace+0x1b8/0x1e4 arch/arm64/kernel/stacktrace.c:233 show_stack+0x2c/0x44 arch/arm64/kernel/stacktrace.c:240 __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd0/0x124 lib/dump_stack.c:106 dump_stack+0x1c/0x28 lib/dump_stack.c:113 lookup_chain_cache_add kernel/locking/lockdep.c:3815 [inline] validate_chain kernel/locking/lockdep.c:3836 [inline] __lock_acquire+0x1c60/0x75e8 kernel/locking/lockdep.c:5136 lock_acquire+0x23c/0x71c kernel/locking/lockdep.c:5753 do_write_seqcount_begin_nested include/linux/seqlock.h:515 [inline] do_write_seqcount_begin include/linux/seqlock.h:541 [inline] psi_account_irqtime+0x298/0x768 kernel/sched/psi.c:1024 update_rq_clock_task kernel/sched/core.c:725 [inline] update_rq_clock+0x1b8/0x634 kernel/sched/core.c:769 ttwu_queue kernel/sched/core.c:4028 [inline] try_to_wake_up+0x4e4/0xe80 kernel/sched/core.c:4346 wake_up_process+0x18/0x24 kernel/sched/core.c:4478 kick_pool+0x29c/0x36c kernel/workqueue.c:1142 __queue_work+0xcfc/0x1338 kernel/workqueue.c:1800 __queue_delayed_work kernel/workqueue.c:1950 [inline] mod_delayed_work_on+0x22c/0x360 kernel/workqueue.c:2024 kblockd_mod_delayed_work_on+0x3c/0x54 block/blk-core.c:1038 blk_mq_kick_requeue_list+0x28/0x38 block/blk-mq.c:1502 blk_kick_flush block/blk-flush.c:355 [inline] blk_flush_complete_seq+0x964/0xb5c block/blk-flush.c:213 blk_insert_flush+0x340/0x448 block/blk-flush.c:463 blk_mq_submit_bio+0xeec/0x1bd0 block/blk-mq.c:3008 __submit_bio+0x210/0x2b0 block/blk-core.c:599 __submit_bio_noacct_mq block/blk-core.c:678 [inline] submit_bio_noacct_nocheck+0x740/0xb48 block/blk-core.c:707 submit_bio_noacct+0xbe4/0x1758 block/blk-core.c:801 submit_bio+0x230/0x378 block/blk-core.c:834 write_dev_flush fs/btrfs/disk-io.c:3942 [inline] barrier_all_devices fs/btrfs/disk-io.c:3990 [inline] write_all_supers+0x167c/0x39b0 fs/btrfs/disk-io.c:4078 btrfs_commit_transaction+0x1abc/0x2dd4 fs/btrfs/transaction.c:2517 btrfs_qgroup_rescan_worker+0x15fc/0x1674 fs/btrfs/qgroup.c:3417 btrfs_work_helper+0x340/0x1504 fs/btrfs/async-thread.c:314 process_one_work+0x694/0x1204 kernel/workqueue.c:2630 process_scheduled_works kernel/workqueue.c:2703 [inline] worker_thread+0x938/0xef4 kernel/workqueue.c:2784 kthread+0x288/0x310 kernel/kthread.c:388 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:857 BTRFS info (device loop3): qgroup scan completed (inconsistency flag cleared)