BUG: MAX_LOCKDEP_CHAINS too low! turning off the locking correctness validator. CPU: 0 PID: 10870 Comm: syz.1.1210 Not tainted 6.1.118-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/0x5c 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_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x6c/0xb4 kernel/locking/spinlock.c:162 __debug_check_no_obj_freed lib/debugobjects.c:968 [inline] debug_check_no_obj_freed+0x14c/0x478 lib/debugobjects.c:1009 free_pages_prepare mm/page_alloc.c:1450 [inline] free_pcp_prepare mm/page_alloc.c:1494 [inline] free_unref_page_prepare+0x450/0x1070 mm/page_alloc.c:3369 free_unref_page+0x80/0x420 mm/page_alloc.c:3464 free_the_page mm/page_alloc.c:754 [inline] __free_pages+0x1a0/0x1cc mm/page_alloc.c:5678 free_pages+0xa0/0xb8 mm/page_alloc.c:5689 pgd_free+0x24/0x34 arch/arm64/mm/pgd.c:33 mm_free_pgd kernel/fork.c:742 [inline] __mmdrop+0xac/0x3d8 kernel/fork.c:793 mmdrop include/linux/sched/mm.h:50 [inline] mmdrop_sched include/linux/sched/mm.h:78 [inline] finish_task_switch+0x568/0x624 kernel/sched/core.c:5145 context_switch kernel/sched/core.c:5244 [inline] __schedule+0xef8/0x1d44 kernel/sched/core.c:6558 preempt_schedule_irq+0x8c/0x1b8 kernel/sched/core.c:6870 arm64_preempt_schedule_irq arch/arm64/kernel/entry-common.c:265 [inline] __el1_irq arch/arm64/kernel/entry-common.c:474 [inline] el1_interrupt+0x4c/0x68 arch/arm64/kernel/entry-common.c:486 el1h_64_irq_handler+0x18/0x24 arch/arm64/kernel/entry-common.c:491 el1h_64_irq+0x64/0x68 arch/arm64/kernel/entry.S:581 arch_local_irq_restore arch/arm64/include/asm/irqflags.h:122 [inline] folio_memcg_lock+0x108/0x20c mm/memcontrol.c:2110 lock_page_memcg+0x44/0x5c mm/memcontrol.c:2134 mark_buffer_dirty+0x1bc/0x624 fs/buffer.c:1101 __block_write_begin_int+0x784/0x13b4 fs/buffer.c:2003 __block_write_begin fs/buffer.c:2041 [inline] block_page_mkwrite+0x290/0x340 fs/buffer.c:2510 ext4_page_mkwrite+0x980/0x1120 fs/ext4/inode.c:6228 do_page_mkwrite+0x144/0x37c mm/memory.c:3009 do_shared_fault mm/memory.c:4694 [inline] do_fault mm/memory.c:4762 [inline] handle_pte_fault mm/memory.c:5029 [inline] __handle_mm_fault mm/memory.c:5171 [inline] handle_mm_fault+0x1824/0x3d38 mm/memory.c:5292 __do_page_fault arch/arm64/mm/fault.c:499 [inline] do_page_fault+0x330/0x890 arch/arm64/mm/fault.c:583 do_translation_fault+0x94/0xc8 arch/arm64/mm/fault.c:667 do_mem_abort+0x74/0x200 arch/arm64/mm/fault.c:803 el0_da+0x70/0x184 arch/arm64/kernel/entry-common.c:515 el0t_64_sync_handler+0xcc/0xf0 arch/arm64/kernel/entry-common.c:658 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585