mbox series

[net,0/4] a few corrections for SOCK_SUPPORT_ZC

Message ID cover.1666825799.git.asml.silence@gmail.com (mailing list archive)
Headers show
Series a few corrections for SOCK_SUPPORT_ZC | expand

Message

Pavel Begunkov Oct. 26, 2022, 11:25 p.m. UTC
There are several places/cases that got overlooked in regards to
SOCK_SUPPORT_ZC. We're lacking the flag for IPv6 UDP sockets and
accepted TCP sockets. We also should clear the flag when someone
tries to hijack a socket by replacing the ->sk_prot callbacks.

Pavel Begunkov (3):
  udp: advertise ipv6 udp support for msghdr::ubuf_info
  net: remove SOCK_SUPPORT_ZC from sockmap
  net/ulp: remove SOCK_SUPPORT_ZC from tls sockets

Stefan Metzmacher (1):
  net: also flag accepted sockets supporting msghdr originated zerocopy

 include/net/sock.h  | 7 +++++++
 net/ipv4/af_inet.c  | 2 ++
 net/ipv4/tcp_bpf.c  | 4 ++--
 net/ipv4/tcp_ulp.c  | 3 +++
 net/ipv4/udp_bpf.c  | 4 ++--
 net/ipv6/udp.c      | 1 +
 net/unix/unix_bpf.c | 8 ++++----
 7 files changed, 21 insertions(+), 8 deletions(-)

Comments

patchwork-bot+netdevbpf@kernel.org Oct. 29, 2022, 4:50 a.m. UTC | #1
Hello:

This series was applied to netdev/net.git (master)
by Jakub Kicinski <kuba@kernel.org>:

On Thu, 27 Oct 2022 00:25:55 +0100 you wrote:
> There are several places/cases that got overlooked in regards to
> SOCK_SUPPORT_ZC. We're lacking the flag for IPv6 UDP sockets and
> accepted TCP sockets. We also should clear the flag when someone
> tries to hijack a socket by replacing the ->sk_prot callbacks.
> 
> Pavel Begunkov (3):
>   udp: advertise ipv6 udp support for msghdr::ubuf_info
>   net: remove SOCK_SUPPORT_ZC from sockmap
>   net/ulp: remove SOCK_SUPPORT_ZC from tls sockets
> 
> [...]

Here is the summary with links:
  - [net,1/4] udp: advertise ipv6 udp support for msghdr::ubuf_info
    https://git.kernel.org/netdev/net/c/8f279fb00bb2
  - [net,2/4] net: remove SOCK_SUPPORT_ZC from sockmap
    https://git.kernel.org/netdev/net/c/fee9ac06647e
  - [net,3/4] net/ulp: remove SOCK_SUPPORT_ZC from tls sockets
    https://git.kernel.org/netdev/net/c/e276d62dcfde
  - [net,4/4] net: also flag accepted sockets supporting msghdr originated zerocopy
    https://git.kernel.org/netdev/net/c/71b7786ea478

You are awesome, thank you!