BUG: MAX_LOCKDEP_CHAIN_HLOCKS too low! turning off the locking correctness validator. CPU: 0 PID: 4307 Comm: kworker/0:5 Not tainted 6.1.114-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Workqueue: wg-kex-wg0 wg_packet_handshake_receive_worker 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 local_lock_acquire+0x3c/0x98 include/linux/local_lock_internal.h:29 put_cpu_partial+0x68/0x1fc mm/slub.c:2634 get_partial_node+0x154/0x3cc mm/slub.c:2234 get_partial mm/slub.c:2325 [inline] ___slab_alloc+0x684/0xee0 mm/slub.c:3175 __slab_alloc mm/slub.c:3279 [inline] slab_alloc_node mm/slub.c:3364 [inline] __kmem_cache_alloc_node+0x2c8/0x388 mm/slub.c:3437 kmalloc_trace+0x48/0x94 mm/slab_common.c:1026 kmalloc include/linux/slab.h:557 [inline] kzalloc include/linux/slab.h:693 [inline] ref_tracker_alloc+0x130/0x3dc lib/ref_tracker.c:85 __netdev_tracker_alloc include/linux/netdevice.h:4008 [inline] netdev_hold include/linux/netdevice.h:4037 [inline] dst_init+0xc0/0x3bc net/core/dst.c:52 dst_alloc+0x120/0x170 net/core/dst.c:92 ip6_dst_alloc net/ipv6/route.c:345 [inline] ip6_rt_pcpu_alloc net/ipv6/route.c:1375 [inline] rt6_make_pcpu_route net/ipv6/route.c:1424 [inline] ip6_pol_route+0xa90/0x12e0 net/ipv6/route.c:2261 ip6_pol_route_output+0x70/0x94 net/ipv6/route.c:2600 pol_lookup_func include/net/ip6_fib.h:579 [inline] fib6_rule_lookup+0x1f8/0x560 net/ipv6/fib6_rules.c:116 ip6_route_output_flags_noref+0x254/0x324 net/ipv6/route.c:2632 ip6_route_output_flags+0xe4/0x374 net/ipv6/route.c:2645 ip6_dst_lookup_tail+0x1f8/0x1330 net/ipv6/ip6_output.c:1152 ip6_dst_lookup_flow+0xb8/0x174 net/ipv6/ip6_output.c:1255 send6+0x480/0x930 drivers/net/wireguard/socket.c:139 wg_socket_send_skb_to_peer+0xfc/0x1a8 drivers/net/wireguard/socket.c:178 wg_socket_send_buffer_to_peer+0xec/0x144 drivers/net/wireguard/socket.c:200 wg_packet_send_handshake_response+0x164/0x254 drivers/net/wireguard/send.c:103 wg_receive_handshake_packet drivers/net/wireguard/receive.c:154 [inline] wg_packet_handshake_receive_worker+0x53c/0xc58 drivers/net/wireguard/receive.c:213 process_one_work+0x7ac/0x1404 kernel/workqueue.c:2292 worker_thread+0x8e4/0xfec kernel/workqueue.c:2439 kthread+0x250/0x2d8 kernel/kthread.c:376 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:864