bpf, net: fix assigned socket mismatches
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 4 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | bpf, net: validate assigned socket on receiveinclude/ include/ include/ +3 more | +68 | 3 replies | |
| 2/2 | selftests/bpf: test assigning a TCP listener to a UDP datagramtools/ tools/ | +37 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH bpf 0/2] bpf, net: fix assigned socket mismatches
Hi,
Patch 01 fixes various mismatches (protocol, netns etc) that can happen with assigned sockets which can lead to different corruptions. Patch 02 exercises such mismatches for IPv4 and IPv6. For more information please check the commit messages. The problem was found during LLM review of the sk assign egress patch-set.
Cheers,
Nik
CC David S. Miller <[email protected]>
CC Eric Dumazet <[email protected]>
CC Jakub Kicinski <[email protected]>
CC Paolo Abeni <[email protected]>
CC Simon Horman <[email protected]>
CC Kuniyuki Iwashima <[email protected]>
CC Willem de Bruijn <[email protected]>
CC Martin KaFai Lau <[email protected]>
CC Alexei Starovoitov <[email protected]>
CC Daniel Borkmann <[email protected]>
CC John Fastabend <[email protected]>
Nikolay Aleksandrov (2):
bpf, net: validate assigned socket on receive selftests/bpf: Test assigning a TCP listener to a UDP datagram
include/net/inet6_hashtables.h | 33 ++++++++++++----- include/net/inet_hashtables.h | 34 +++++++++++++----- include/net/inet_sock.h | 2 ++ net/ipv4/inet_hashtables.c | 13 +++++++ net/ipv4/udp.c | 2 +- net/ipv6/udp.c | 2 +- .../selftests/bpf/prog_tests/sk_assign.c | 36 +++++++++++++++++++ .../selftests/bpf/progs/test_sk_assign.c | 2 +- 8 files changed, 105 insertions(+), 19 deletions(-)
Signature · 1 line
2.47.3