Skip to content

bpf: tcp: Reject TCP_NODELAY from BPF hdr opt callbacks

KaFai Wan bpf linux-kselftest lkml netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2bpf: tcp: Reject TCP_NODELAY from BPF hdr opt callbacksnet/ipv4/tcp.c+4 -12 replies
2/2selftests/bpf: Cover TCP_NODELAY in hdr opt callbacktools/testing/selftests/bpf/prog_tests/tcp_hdr_options.c tools/testing/selftests/bpf/progs/test_misc_tcp_hdr_options.c+52 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH bpf-next 0/2] bpf: tcp: Reject TCP_NODELAY from BPF hdr opt callbacks

This small patchset is about avoid infinite recursion in bpf_skops_hdr_opt_len() via TCP_NODELAY setsockopt.

---
KaFai Wan (2):
bpf: tcp: Reject TCP_NODELAY from BPF hdr opt callbacks selftests/bpf: Cover TCP_NODELAY in hdr opt callback

 net/ipv4/tcp.c                                |  5 ++-
 .../bpf/prog_tests/tcp_hdr_options.c          | 34 +++++++++++++++++++
 .../bpf/progs/test_misc_tcp_hdr_options.c     | 18 ++++++++++
 3 files changed, 56 insertions(+), 1 deletion(-)
Signature · 1 line
2.43.0