From: gang.yan@linux.dev
To: "Paolo Abeni" <pabeni@redhat.com>, "MPTCP Linux" <mptcp@lists.linux.dev>
Cc: "Gang Yan" <yangang@kylinos.cn>
Subject: Re: [PATCH mptcp-next v5 4/6] mptcp: reject sockopt requiring ssks' lock in BPF context
Date: Mon, 25 May 2026 09:01:45 +0000 [thread overview]
Message-ID: <ab405d42521cb862e62d652ce0f400a5ab73d7b7@linux.dev> (raw)
In-Reply-To: <0887aa80-13c0-47eb-9178-a7f1cf9ba5e5@redhat.com>
May 25, 2026 at 4:32 PM, "Paolo Abeni" <pabeni@redhat.com mailto:pabeni@redhat.com?to=%22Paolo%20Abeni%22%20%3Cpabeni%40redhat.com%3E > wrote:
>
> On 5/22/26 11:12 AM, Gang Yan wrote:
>
> >
> > @@ -600,6 +609,9 @@ static int mptcp_setsockopt_sol_tcp_congestion(struct mptcp_sock *msk, sockptr_t
> >
> > cap_net_admin = sockopt_ns_capable(sock_net(sk)->user_ns, CAP_NET_ADMIN);
> >
> > + if (has_current_bpf_ctx())
> > + return -EOPNOTSUPP;
> >
> I think it would be better to move the check earlier and drop the
> previous patch.
>
> Possibly it would be considered avoiding touching in patch 2 the other
> functions where EBPF support is disabled here, but I have mixed feeling
> WRT this later option, due to code consistency. Not a big deal either way.
>
> /P
>
Hi Paolo,
Thanks for your review.
Would you mind reviewing patch 1 separately? I noticed that patch 1 is doing
something different from the rest. Patches 2–6 focus on MPTCP sockopt issues
in BPF context — they should really be a separate series, and I'll iterate on
a new version for them later.
My current idea is to build on patch 5 and patch 6 to try supporting a subset
of setsockopt operations in BPF environment. For operations that need to take
the subflow lock (including the first subflow), we can use has_current_bpf_ctx
to return -EOPNOTSUPP.
WDYT?
Thanks,
Gang
next prev parent reply other threads:[~2026-05-25 9:01 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-22 9:12 [PATCH mptcp-next v5 0/6] mptcp: convert to sockopt_lock_sock Gang Yan
2026-05-22 9:12 ` [PATCH mptcp-next v5 1/6] mptcp: replace lock_sock_fast with lock_sock in sockopt Gang Yan
2026-05-27 5:43 ` gang.yan
2026-05-27 9:50 ` Paolo Abeni
2026-05-22 9:12 ` [PATCH mptcp-next v5 2/6] mptcp: use sockopt_lock/release_sock " Gang Yan
2026-05-22 9:12 ` [PATCH mptcp-next v5 3/6] mptcp: use sockopt_ns_capable in congestion control Gang Yan
2026-05-22 9:12 ` [PATCH mptcp-next v5 4/6] mptcp: reject sockopt requiring ssks' lock in BPF context Gang Yan
2026-05-25 8:32 ` Paolo Abeni
2026-05-25 9:01 ` gang.yan [this message]
2026-05-27 9:53 ` Paolo Abeni
2026-05-22 9:12 ` [PATCH mptcp-next v5 5/6] DO-NOT-MERGE: mptcp: allow set some sockopt " Gang Yan
2026-05-22 9:12 ` [PATCH mptcp-next v5 6/6] DO-NOT-MERGE: selftest: bpf: set mptcp " Gang Yan
2026-05-22 10:50 ` [PATCH mptcp-next v5 0/6] mptcp: convert to sockopt_lock_sock MPTCP CI
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=ab405d42521cb862e62d652ce0f400a5ab73d7b7@linux.dev \
--to=gang.yan@linux.dev \
--cc=mptcp@lists.linux.dev \
--cc=pabeni@redhat.com \
--cc=yangang@kylinos.cn \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.