summaryrefslogtreecommitdiff
path: root/rust/helpers/platform.c
diff options
context:
space:
mode:
authorDmitry Safonov <dima@arista.com>2025-09-09 02:18:51 +0100
committerJakub Kicinski <kuba@kernel.org>2025-09-11 19:05:56 -0700
commit51e547e8c89c661f6fbede4a28b1d33b13625683 (patch)
tree969fce1577d9063dd7d33d657677702afa7ff41f /rust/helpers/platform.c
parent9e472d9e84b11e9f3c429eba97c2a9e74461a884 (diff)
tcp: Free TCP-AO/TCP-MD5 info/keys without RCU
Now that the destruction of info/keys is delayed until the socket destructor, it's safe to use kfree() without an RCU callback. The socket is in TCP_CLOSE state either because it never left it, or it's already closed and the refcounter is zero. In any way, no one can discover it anymore, it's safe to release memory straight away. Similar thing was possible for twsk already. Reviewed-by: Kuniyuki Iwashima <kuniyu@google.com> Signed-off-by: Dmitry Safonov <dima@arista.com> Link: https://patch.msgid.link/20250909-b4-tcp-ao-md5-rst-finwait2-v5-2-9ffaaaf8b236@arista.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'rust/helpers/platform.c')
0 files changed, 0 insertions, 0 deletions