BUG: MAX_LOCKDEP_CHAINS too low! turning off the locking correctness validator. CPU: 0 PID: 8223 Comm: syz-executor Not tainted 6.1.148-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/30/2025 Call trace: dump_backtrace+0x1c8/0x1f4 arch/arm64/kernel/stacktrace.c:158 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:165 __dump_stack+0x30/0x40 lib/dump_stack.c:88 dump_stack_lvl+0xf8/0x160 lib/dump_stack.c:106 dump_stack+0x1c/0x5c lib/dump_stack.c:113 add_chain_cache kernel/locking/lockdep.c:-1 [inline] lookup_chain_cache_add kernel/locking/lockdep.c:3772 [inline] validate_chain kernel/locking/lockdep.c:3793 [inline] __lock_acquire+0x1b40/0x6544 kernel/locking/lockdep.c:5049 lock_acquire+0x20c/0x644 kernel/locking/lockdep.c:5662 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x6c/0xb4 kernel/locking/spinlock.c:162 percpu_counter_add_batch+0x150/0x29c lib/percpu_counter.c:90 lock_extent_buffer_for_io+0x364/0x7d8 fs/btrfs/extent_io.c:2408 submit_eb_page fs/btrfs/extent_io.c:2932 [inline] btree_write_cache_pages+0xd2c/0x1528 fs/btrfs/extent_io.c:3004 btree_writepages+0x6c/0x194 fs/btrfs/disk-io.c:822 do_writepages+0x2c0/0x4fc mm/page-writeback.c:2491 filemap_fdatawrite_wbc+0x124/0x174 mm/filemap.c:388 __filemap_fdatawrite_range mm/filemap.c:421 [inline] filemap_fdatawrite_range+0xbc/0x10c mm/filemap.c:439 btrfs_write_marked_extents+0x1b8/0x340 fs/btrfs/transaction.c:1100 btrfs_write_and_wait_transaction+0xec/0x200 fs/btrfs/transaction.c:1212 btrfs_commit_transaction+0x198c/0x29f0 fs/btrfs/transaction.c:2496 btrfs_sync_fs+0x530/0xa30 fs/btrfs/super.c:1535 sync_filesystem+0x1a0/0x218 fs/sync.c:66 generic_shutdown_super+0x70/0x324 fs/super.c:474 kill_anon_super+0x4c/0x80 fs/super.c:1128 btrfs_kill_super+0x40/0x58 fs/btrfs/super.c:2448 deactivate_locked_super+0xac/0x124 fs/super.c:332 deactivate_super+0xe8/0x108 fs/super.c:363 cleanup_mnt+0x37c/0x404 fs/namespace.c:1182 __cleanup_mnt+0x20/0x30 fs/namespace.c:1189 task_work_run+0x1ec/0x270 kernel/task_work.c:203 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] do_notify_resume+0x1f70/0x2b0c arch/arm64/kernel/signal.c:1137 prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:137 [inline] exit_to_user_mode arch/arm64/kernel/entry-common.c:142 [inline] el0_svc+0x98/0x138 arch/arm64/kernel/entry-common.c:638 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585 BTRFS info (device loop0): last unmount of filesystem 395ef67a-297e-477c-816d-cd80a5b93e5d