[PATCH v2 net-next 0/5] inet6: Remove inet6_destroy_sock() calls.
From: Kuniyuki Iwashima <hidden>
Date: 2022-10-19 22:36:28
This is a follow-up series for commit d38afeec26ed ("tcp/udp: Call
inet6_destroy_sock() in IPv6 sk->sk_destruct().").
This series cleans up unnecessary inet6_destory_sock() calls in
sk->sk_prot->destroy() and call it from sk->sk_destruct() to make
sure we do not leak memory related to IPv6 specific-resources.
Changes:
v2:
* patch 1
* Fix build failure for CONFIG_MPTCP_IPV6=y
v1: https://lore.kernel.org/netdev/20221018190956.1308-1-kuniyu@amazon.com/ (local)
Kuniyuki Iwashima (5):
inet6: Remove inet6_destroy_sock() in sk->sk_prot->destroy().
dccp: Call inet6_destroy_sock() via sk->sk_destruct().
sctp: Call inet6_destroy_sock() via sk->sk_destruct().
inet6: Remove inet6_destroy_sock().
inet6: Clean up failure path in do_ipv6_setsockopt().
include/net/transp_v6.h | 2 --
net/dccp/dccp.h | 1 +
net/dccp/ipv6.c | 15 ++++++++-------
net/dccp/proto.c | 8 +++++++-
net/ipv6/af_inet6.c | 9 ++-------
net/ipv6/ipv6_sockglue.c | 6 ++----
net/ipv6/ping.c | 6 ------
net/ipv6/raw.c | 2 --
net/ipv6/tcp_ipv6.c | 8 +-------
net/ipv6/udp.c | 2 --
net/l2tp/l2tp_ip6.c | 2 --
net/mptcp/protocol.c | 7 -------
net/sctp/socket.c | 29 +++++++++++++++++++++--------
13 files changed, 42 insertions(+), 55 deletions(-)
--
2.30.2