BUG: MAX_LOCKDEP_CHAIN_HLOCKS too low! turning off the locking correctness validator. CPU: 0 PID: 41 Comm: kworker/u4:3 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 mod_delayed_work include/linux/workqueue.h:584 [inline] wb_queue_work+0x2e8/0x5d8 fs/fs-writeback.c:172 bdi_split_work_to_wbs+0x484/0x7c4 fs/fs-writeback.c:977 __writeback_inodes_sb_nr+0x23c/0x2d8 fs/fs-writeback.c:2654 try_to_writeback_inodes_sb+0xa0/0xc4 fs/fs-writeback.c:2703 btrfs_start_delalloc_flush fs/btrfs/transaction.c:2112 [inline] btrfs_commit_transaction+0x8c0/0x2dd4 fs/btrfs/transaction.c:2297 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 loop4): qgroup scan completed (inconsistency flag cleared) BTRFS info (device loop0): qgroup scan completed (inconsistency flag cleared)