Netdev List
 help / color / mirror / Atom feed
* [PATCH bpf v2 0/2] bpf, sockmap: Reject a ULP on a socket with a psock
@ 2026-12-04  6:11 Sechang Lim
  2026-12-04  6:11 ` [PATCH bpf v2 1/2] " Sechang Lim
  2026-12-04  6:11 ` [PATCH bpf v2 2/2] selftests/bpf: Expect TCP_ULP to fail on a socket in a sockmap Sechang Lim
  0 siblings, 2 replies; 4+ messages in thread
From: Sechang Lim @ 2026-12-04  6:11 UTC (permalink / raw)
  To: bpf, netdev
  Cc: ast, daniel, andrii, martin.lau, john.fastabend, jakub,
	jiayuan.chen, sd, kuba, edumazet, ncardwell, kuniyu, pabeni,
	davem, horms, willemb, eddyz87, memxor, song, yonghong.song,
	jolsa, emil, ihor.solodrai

A TLS ULP on a socket in a sockmap can make close() spin forever.
Reject the ULP on such sockets and update the selftest.

Changes in v2:
- Reject the ULP in __tcp_set_ulp() instead of keeping the TLS proto.
- Add the selftest patch.

v1: https://lore.kernel.org/bpf/20261130055650.686483-1-rhkrqnwk98@gmail.com/

Sechang Lim (2):
  bpf, sockmap: Reject a ULP on a socket with a psock
  selftests/bpf: Expect TCP_ULP to fail on a socket in a sockmap

 include/net/tcp.h                             |  5 ----
 net/ipv4/tcp_bpf.c                            | 16 ++--------
 net/ipv4/tcp_ulp.c                            | 29 +++++++++++-------
 net/tls/tls_main.c                            | 30 -------------------
 .../selftests/bpf/prog_tests/sockmap_ktls.c   | 14 +--------
 5 files changed, 22 insertions(+), 72 deletions(-)

-- 
2.56.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-12-04  6:45 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-04  6:11 [PATCH bpf v2 0/2] bpf, sockmap: Reject a ULP on a socket with a psock Sechang Lim
2026-12-04  6:11 ` [PATCH bpf v2 1/2] " Sechang Lim
2026-12-04  6:45   ` bot+bpf-ci
2026-12-04  6:11 ` [PATCH bpf v2 2/2] selftests/bpf: Expect TCP_ULP to fail on a socket in a sockmap Sechang Lim

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox