[PATCH bpf v3 0/2] bpf: Reject TCP_NODELAY in TCP header option callbacks

KaFai Wan posted 2 patches 1 month, 4 weeks ago
net/core/filter.c                                 |  6 ++++++
.../selftests/bpf/prog_tests/tcp_hdr_options.c    | 12 +++++++++++-
.../bpf/progs/test_misc_tcp_hdr_options.c         | 15 ++++++++++++++-
3 files changed, 31 insertions(+), 2 deletions(-)
[PATCH bpf v3 0/2] bpf: Reject TCP_NODELAY in TCP header option callbacks
Posted by KaFai Wan 1 month, 4 weeks ago
This small patchset is about avoid infinite recursion in TCP header option
callbacks via TCP_NODELAY setsockopt.

v3:
 - Remove CONFIG_INET check and add comment (Martin and Jiayuan)
 - Fix the test case (Martin)

v2:
 - Reject TCP_NODELAY in bpf_sock_ops_setsockopt() (AI and Martin)
 https://lore.kernel.org/bpf/20260416112308.1820332-1-kafai.wan@linux.dev/

v1:
 https://lore.kernel.org/bpf/20260414112310.1285783-1-kafai.wan@linux.dev/

---
KaFai Wan (2):
  bpf: Reject TCP_NODELAY in TCP header option callbacks
  selftests/bpf: Test TCP_NODELAY in TCP hdr opt callbacks

 net/core/filter.c                                 |  6 ++++++
 .../selftests/bpf/prog_tests/tcp_hdr_options.c    | 12 +++++++++++-
 .../bpf/progs/test_misc_tcp_hdr_options.c         | 15 ++++++++++++++-
 3 files changed, 31 insertions(+), 2 deletions(-)

-- 
2.43.0