BUG: MAX_LOCKDEP_CHAIN_HLOCKS too low! turning off the locking correctness validator. CPU: 1 PID: 6512 Comm: syz.0.357 Not tainted 6.1.119-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 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 create_snapshot+0x458/0x768 fs/btrfs/ioctl.c:838 btrfs_mksubvol+0x5f4/0x718 fs/btrfs/ioctl.c:988 btrfs_mksnapshot+0xc8/0x158 fs/btrfs/ioctl.c:1034 __btrfs_ioctl_snap_create+0x314/0x3fc fs/btrfs/ioctl.c:2198 btrfs_ioctl_snap_create_v2+0x1a4/0x38c fs/btrfs/ioctl.c:2285 btrfs_ioctl+0x9b4/0xb08 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:870 [inline] __se_sys_ioctl fs/ioctl.c:856 [inline] __arm64_sys_ioctl+0x14c/0x1c8 fs/ioctl.c:856 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2bc arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:140 do_el0_svc+0x58/0x13c arch/arm64/kernel/syscall.c:204 el0_svc+0x58/0x168 arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585