BUG: MAX_LOCKDEP_CHAIN_HLOCKS too low! turning off the locking correctness validator. CPU: 1 UID: 0 PID: 8372 Comm: syz.6.266 Not tainted 6.12.0-syzkaller-g7b1d1d4cfac0 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Call trace: show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:484 (C) __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0xe4/0x150 lib/dump_stack.c:120 dump_stack+0x1c/0x28 lib/dump_stack.c:129 lookup_chain_cache_add kernel/locking/lockdep.c:3851 [inline] validate_chain kernel/locking/lockdep.c:3872 [inline] __lock_acquire+0x1fb8/0x77c8 kernel/locking/lockdep.c:5202 lock_acquire+0x240/0x728 kernel/locking/lockdep.c:5825 __raw_spin_lock include/linux/spinlock_api_smp.h:133 [inline] _raw_spin_lock+0x48/0x60 kernel/locking/spinlock.c:154 spin_lock include/linux/spinlock.h:351 [inline] ptr_ring_produce include/linux/ptr_ring.h:128 [inline] tun_net_xmit+0xb50/0x13c4 drivers/net/tun.c:1128 __netdev_start_xmit include/linux/netdevice.h:4928 [inline] netdev_start_xmit include/linux/netdevice.h:4937 [inline] xmit_one net/core/dev.c:3588 [inline] dev_hard_start_xmit+0x260/0x904 net/core/dev.c:3604 sch_direct_xmit+0x250/0x588 net/sched/sch_generic.c:343 __dev_xmit_skb net/core/dev.c:3825 [inline] __dev_queue_xmit+0x145c/0x3548 net/core/dev.c:4398 dev_queue_xmit include/linux/netdevice.h:3094 [inline] neigh_resolve_output+0x558/0x65c net/core/neighbour.c:1565 neigh_output include/net/neighbour.h:542 [inline] ip6_finish_output2+0x10b4/0x20ac net/ipv6/ip6_output.c:141 ip6_finish_output+0x428/0x7a8 net/ipv6/ip6_output.c:226 NF_HOOK_COND include/linux/netfilter.h:303 [inline] ip6_output+0x274/0x598 net/ipv6/ip6_output.c:247 dst_output include/net/dst.h:450 [inline] NF_HOOK include/linux/netfilter.h:314 [inline] ndisc_send_skb+0xaac/0x14f4 net/ipv6/ndisc.c:511 ndisc_solicit+0x3b0/0x594 neigh_probe+0xc4/0x128 net/core/neighbour.c:1077 __neigh_event_send+0xe0c/0x1584 net/core/neighbour.c:1244 neigh_event_send_probe include/net/neighbour.h:466 [inline] neigh_event_send include/net/neighbour.h:472 [inline] neigh_resolve_output+0x184/0x65c net/core/neighbour.c:1549 neigh_output include/net/neighbour.h:542 [inline] ip6_finish_output2+0x10b4/0x20ac net/ipv6/ip6_output.c:141 ip6_finish_output+0x428/0x7a8 net/ipv6/ip6_output.c:226 NF_HOOK_COND include/linux/netfilter.h:303 [inline] ip6_output+0x274/0x598 net/ipv6/ip6_output.c:247 dst_output include/net/dst.h:450 [inline] NF_HOOK include/linux/netfilter.h:314 [inline] ip6_xmit+0xbf4/0x1b1c net/ipv6/ip6_output.c:366 tcp_v6_send_synack+0x67c/0xbe8 net/ipv6/tcp_ipv6.c:565 tcp_conn_request+0x1990/0x2b94 net/ipv4/tcp_input.c:7335 tcp_v6_conn_request+0x264/0x380 net/ipv6/tcp_ipv6.c:1325 tcp_rcv_state_process+0x17d0/0x3e30 net/ipv4/tcp_input.c:6757 tcp_v6_do_rcv+0x834/0x1280 net/ipv6/tcp_ipv6.c:1664 tcp_v6_rcv+0x19f8/0x25dc net/ipv6/tcp_ipv6.c:1901 ip6_protocol_deliver_rcu+0x988/0x12a8 net/ipv6/ip6_input.c:436 ip6_input_finish+0x16c/0x2a4 net/ipv6/ip6_input.c:481 NF_HOOK+0x328/0x3d4 include/linux/netfilter.h:314 ip6_input+0x90/0xa8 net/ipv6/ip6_input.c:490 dst_input include/net/dst.h:460 [inline] ip6_rcv_finish+0x1f0/0x21c net/ipv6/ip6_input.c:79 NF_HOOK+0x328/0x3d4 include/linux/netfilter.h:314 ipv6_rcv+0x9c/0xbc net/ipv6/ip6_input.c:309 __netif_receive_skb_one_core net/core/dev.c:5670 [inline] __netif_receive_skb+0x18c/0x3c8 net/core/dev.c:5783 netif_receive_skb_internal net/core/dev.c:5869 [inline] netif_receive_skb+0x1f0/0x93c net/core/dev.c:5928 tun_rx_batched+0x568/0x6e4 tun_get_user+0x26d0/0x3b64 drivers/net/tun.c:2007 tun_chr_write_iter+0xfc/0x204 drivers/net/tun.c:2053 new_sync_write fs/read_write.c:590 [inline] vfs_write+0x920/0xcf4 fs/read_write.c:683 ksys_write+0x15c/0x26c fs/read_write.c:736 __do_sys_write fs/read_write.c:748 [inline] __se_sys_write fs/read_write.c:745 [inline] __arm64_sys_write+0x7c/0x90 fs/read_write.c:745 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:49 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:132 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:151 el0_svc+0x54/0x168 arch/arm64/kernel/entry-common.c:744 el0t_64_sync_handler+0x84/0x108 arch/arm64/kernel/entry-common.c:762 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:600