mirror of
https://github.com/torvalds/linux.git
synced 2026-07-28 10:09:10 +02:00
geneve: Remove synchronize_net() in geneve_sock_release().
vxlan previously had an issue where the fast path could access stale pointers, which was fixed by commitc6fcc4fc5f("vxlan: avoid using stale vxlan socket."). geneve later followed the same pattern, and commitfceb9c3e38("geneve: avoid using stale geneve socket.") copied synchronize_net() from vxlan_sock_release() into geneve_sock_release(). However, that change occurred after commitca065d0cf8("udp: no longer use SLAB_DESTROY_BY_RCU"), and geneve had already been using kfree_rcu() to free geneve_sock. Therefore, the synchronize_net() was never actually needed there. Let's remove the redundant synchronize_net() in geneve_sock_release(). Signed-off-by: Kuniyuki Iwashima <kuniyu@google.com> Link: https://patch.msgid.link/20260518050726.318824-3-kuniyu@google.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
425e30577f
commit
2f7f86db16
|
|
@ -1032,7 +1032,6 @@ static void geneve_sock_release(struct geneve_dev *geneve)
|
|||
#endif
|
||||
|
||||
rcu_assign_pointer(geneve->sock4, NULL);
|
||||
synchronize_net();
|
||||
|
||||
__geneve_sock_release(gs4);
|
||||
#if IS_ENABLED(CONFIG_IPV6)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user