]> git.hungrycats.org Git - linux/commit
vxlan: Free vxlan_sock with kfree_rcu().
authorKuniyuki Iwashima <kuniyu@google.com>
Sat, 2 May 2026 03:13:01 +0000 (03:13 +0000)
committerJakub Kicinski <kuba@kernel.org>
Wed, 6 May 2026 00:47:05 +0000 (17:47 -0700)
commit4f71dd1b421d1300237adf546aa14521cdf46355
tree578b30191f9961775649e8c74008bbdb8c7fdf04
parent027bffa1ad19f5da59ee7923464dd248b0a9930f
vxlan: Free vxlan_sock with kfree_rcu().

We will remove synchronize_rcu() in udp_tunnel_sock_release().

We must ensure that vxlan_sock is freed after inflight RX fast path.

Let's free vxlan_sock with kfree_rcu().

Note that vxlan_sock.vni_list[] is 8K and struct rcu_head must
be placed before it.

Signed-off-by: Kuniyuki Iwashima <kuniyu@google.com>
Link: https://patch.msgid.link/20260502031401.3557229-9-kuniyu@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/vxlan/vxlan_core.c
include/net/vxlan.h