BUG: MAX_LOCKDEP_CHAINS too low! turning off the locking correctness validator. CPU: 0 PID: 29778 Comm: syz-executor.1 Not tainted 6.9.0-rc7-syzkaller-00183-gcf87f46fd34d #0 Hardware name: linux,dummy-virt (DT) Call trace: dump_backtrace+0x9c/0x11c arch/arm64/kernel/stacktrace.c:317 show_stack+0x18/0x24 arch/arm64/kernel/stacktrace.c:324 __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xa4/0xf4 lib/dump_stack.c:114 dump_stack+0x1c/0x28 lib/dump_stack.c:123 add_chain_cache kernel/locking/lockdep.c:3735 [inline] lookup_chain_cache_add kernel/locking/lockdep.c:3816 [inline] validate_chain kernel/locking/lockdep.c:3837 [inline] __lock_acquire+0x42d4/0x6b74 kernel/locking/lockdep.c:5137 lock_acquire kernel/locking/lockdep.c:5754 [inline] lock_acquire+0x4a8/0x7f0 kernel/locking/lockdep.c:5719 local_lock_acquire include/linux/local_lock_internal.h:29 [inline] refill_stock+0xa8/0x374 mm/memcontrol.c:2400 obj_cgroup_uncharge_pages mm/memcontrol.c:3281 [inline] __memcg_kmem_uncharge_page+0x174/0x2f0 mm/memcontrol.c:3354 free_pages_prepare mm/page_alloc.c:1098 [inline] free_unref_page_prepare+0x330/0x998 mm/page_alloc.c:2347 free_unref_page+0x64/0x40c mm/page_alloc.c:2487 free_the_page mm/page_alloc.c:564 [inline] __free_pages+0x1b4/0x20c mm/page_alloc.c:4661 free_pages.part.0+0xc0/0x100 mm/page_alloc.c:4672 free_pages+0x14/0x24 mm/page_alloc.c:4669 pgd_free+0x24/0x4c arch/arm64/mm/pgd.c:44 mm_free_pgd kernel/fork.c:804 [inline] __mmdrop+0xa4/0x354 kernel/fork.c:920 mmdrop include/linux/sched/mm.h:54 [inline] mmdrop_sched include/linux/sched/mm.h:82 [inline] mmdrop_lazy_tlb_sched include/linux/sched/mm.h:109 [inline] finish_task_switch.isra.0+0x538/0x8e8 kernel/sched/core.c:5308 context_switch kernel/sched/core.c:5412 [inline] __schedule+0xad8/0x2b18 kernel/sched/core.c:6746 preempt_schedule_irq+0x80/0x1a4 kernel/sched/core.c:7068 arm64_preempt_schedule_irq+0x3c/0x54 arch/arm64/kernel/entry-common.c:301 __el1_irq arch/arm64/kernel/entry-common.c:539 [inline] el1_interrupt+0x3c/0x54 arch/arm64/kernel/entry-common.c:551 el1h_64_irq_handler+0x18/0x24 arch/arm64/kernel/entry-common.c:556 el1h_64_irq+0x64/0x68 arch/arm64/kernel/entry.S:594 __daif_local_irq_restore arch/arm64/include/asm/irqflags.h:176 [inline] arch_local_irq_restore arch/arm64/include/asm/irqflags.h:196 [inline] lock_acquire kernel/locking/lockdep.c:5757 [inline] lock_acquire+0x4fc/0x7f0 kernel/locking/lockdep.c:5719 __might_fault mm/memory.c:6220 [inline] __might_fault+0xcc/0x138 mm/memory.c:6213 _copy_to_user include/linux/uaccess.h:165 [inline] copy_to_user include/linux/uaccess.h:191 [inline] copy_entries_to_user net/ipv6/netfilter/ip6_tables.c:851 [inline] get_entries net/ipv6/netfilter/ip6_tables.c:1039 [inline] do_ip6t_get_ctl+0x584/0x9b0 net/ipv6/netfilter/ip6_tables.c:1677 nf_getsockopt+0x78/0xec net/netfilter/nf_sockopt.c:116 ipv6_getsockopt+0x210/0x34c net/ipv6/ipv6_sockglue.c:1494 tcp_getsockopt+0x7c/0xd0 net/ipv4/tcp.c:4375 sock_common_getsockopt+0x70/0xc8 net/core/sock.c:3700 do_sock_getsockopt+0x20c/0x5a4 net/socket.c:2373 __sys_getsockopt+0xdc/0x178 net/socket.c:2402 __do_sys_getsockopt net/socket.c:2412 [inline] __se_sys_getsockopt net/socket.c:2409 [inline] __arm64_sys_getsockopt+0xa4/0x100 net/socket.c:2409 __invoke_syscall arch/arm64/kernel/syscall.c:34 [inline] invoke_syscall+0x6c/0x25c arch/arm64/kernel/syscall.c:48 el0_svc_common.constprop.0+0xac/0x230 arch/arm64/kernel/syscall.c:133 do_el0_svc+0x40/0x58 arch/arm64/kernel/syscall.c:152 el0_svc+0x50/0x180 arch/arm64/kernel/entry-common.c:712 el0t_64_sync_handler+0x100/0x12c arch/arm64/kernel/entry-common.c:730 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:598