From: sashiko-bot@kernel.org
To: "Sechang Lim" <rhkrqnwk98@gmail.com>
Cc: linux-rdma@vger.kernel.org, linux-s390@vger.kernel.org,
"Heiko Carstens" <hca@linux.ibm.com>,
"Vasily Gorbik" <gor@linux.ibm.com>,
"Alexander Gordeev" <agordeev@linux.ibm.com>,
"Christian Borntraeger" <borntraeger@linux.ibm.com>
Subject: Re: [PATCH bpf-next v2] bpf: Reject sleepable struct_ops programs without check_member
Date: Wed, 25 Nov 2026 04:58:00 +0000 [thread overview]
Message-ID: <sashiko-outbox-232599@kernel.org> (raw)
In-Reply-To: <20261125045105.2326120-1-rhkrqnwk98@gmail.com>
> Any struct_ops program can be loaded as sleepable, and it is up to each
> struct_ops to reject that in check_member. tcp_congestion_ops, Qdisc_ops
> and smc_hs_ctrl have no check_member, although the kernel calls most of
> their members in softirq, under a spinlock or under rcu_read_lock(). A
> sleepable program attached there is entered through
> __bpf_prog_enter_sleepable(), and lockdep reports "BUG: Invalid wait
> context".
>
> Reject sleepable programs in the verifier when the struct_ops has no
> check_member, and drop the check in bpf_tcp_ops that is now the
> default. Qdisc_ops init and destroy run under rtnl and can sleep, so
> give bpf qdisc a check_member that still allows sleepable programs
> there.
>
> Suggested-by: Alexei Starovoitov <ast@kernel.org>
> Signed-off-by: Sechang Lim <rhkrqnwk98@gmail.com>
Sashiko has reviewed this patch and found no issues.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261125045105.2326120-1-rhkrqnwk98@gmail.com?part=1
next prev parent reply other threads:[~2026-11-25 4:58 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-25 4:50 [PATCH bpf-next v2] bpf: Reject sleepable struct_ops programs without check_member Sechang Lim
2026-11-25 4:58 ` sashiko-bot [this message]
2026-11-29 2:00 ` patchwork-bot+netdevbpf
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=sashiko-outbox-232599@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=agordeev@linux.ibm.com \
--cc=borntraeger@linux.ibm.com \
--cc=gor@linux.ibm.com \
--cc=hca@linux.ibm.com \
--cc=linux-rdma@vger.kernel.org \
--cc=linux-s390@vger.kernel.org \
--cc=rhkrqnwk98@gmail.com \
--cc=sashiko-reviews@lists.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 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.