From: Sechang Lim <rhkrqnwk98@gmail.com>
To: bpf@vger.kernel.org, netdev@vger.kernel.org
Cc: ast@kernel.org, daniel@iogearbox.net, andrii@kernel.org,
martin.lau@linux.dev, john.fastabend@gmail.com,
jakub@cloudflare.com, jiayuan.chen@linux.dev, sd@queasysnail.net,
kuba@kernel.org, edumazet@kernel.org, ncardwell@google.com,
kuniyu@google.com, pabeni@redhat.com, davem@davemloft.net,
horms@kernel.org, willemb@google.com, eddyz87@gmail.com,
memxor@gmail.com, song@kernel.org, yonghong.song@linux.dev,
jolsa@kernel.org, emil@etsalapatis.com, ihor.solodrai@linux.dev
Subject: [PATCH bpf v2 0/2] bpf, sockmap: Reject a ULP on a socket with a psock
Date: Fri, 4 Dec 2026 06:11:00 +0000 [thread overview]
Message-ID: <20261204061110.1929596-1-rhkrqnwk98@gmail.com> (raw)
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
next reply other threads:[~2026-12-04 6:12 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-04 6:11 Sechang Lim [this message]
2026-12-04 6:11 ` [PATCH bpf v2 1/2] bpf, sockmap: Reject a ULP on a socket with a psock 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261204061110.1929596-1-rhkrqnwk98@gmail.com \
--to=rhkrqnwk98@gmail.com \
--cc=andrii@kernel.org \
--cc=ast@kernel.org \
--cc=bpf@vger.kernel.org \
--cc=daniel@iogearbox.net \
--cc=davem@davemloft.net \
--cc=eddyz87@gmail.com \
--cc=edumazet@kernel.org \
--cc=emil@etsalapatis.com \
--cc=horms@kernel.org \
--cc=ihor.solodrai@linux.dev \
--cc=jakub@cloudflare.com \
--cc=jiayuan.chen@linux.dev \
--cc=john.fastabend@gmail.com \
--cc=jolsa@kernel.org \
--cc=kuba@kernel.org \
--cc=kuniyu@google.com \
--cc=martin.lau@linux.dev \
--cc=memxor@gmail.com \
--cc=ncardwell@google.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=sd@queasysnail.net \
--cc=song@kernel.org \
--cc=willemb@google.com \
--cc=yonghong.song@linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox