From: sashiko-bot@kernel.org
To: "Sechang Lim" <rhkrqnwk98@gmail.com>
Cc: bpf@vger.kernel.org
Subject: Re: [PATCH bpf-next v2] bpf: Add rcu_read_unlock_special() into btf id deny list
Date: Wed, 25 Nov 2026 04:23:00 +0000 [thread overview]
Message-ID: <sashiko-outbox-232571@kernel.org> (raw)
In-Reply-To: <20261125040106.2200628-1-rhkrqnwk98@gmail.com>
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Medium] bpf: unresolved BTF_ID for static inlinable
rcu_read_unlock_special()
--
commit d423a98c605ab7698cdc1fbadbd9de2303d91def
Author: Sechang Lim <rhkrqnwk98@gmail.com>
bpf: Add rcu_read_unlock_special() into btf id deny list
This commit adds rcu_read_unlock_special() to the btf_id_deny set under
CONFIG_PREEMPT_RCU to prevent infinite recursion when attaching fentry or
fexit BPF programs to it.
> diff --git a/kernel/bpf/verifier.c b/kernel/bpf/verifier.c
> index e7013ed8cadd7..0e8afc0250b54 100644
> --- a/kernel/bpf/verifier.c
> +++ b/kernel/bpf/verifier.c
> @@ -24735,6 +24735,7 @@ BTF_ID(func, preempt_count_sub)
> #ifdef CONFIG_PREEMPT_RCU
> BTF_ID(func, __rcu_read_lock)
> BTF_ID(func, __rcu_read_unlock)
> +BTF_ID(func, rcu_read_unlock_special)
> #endif
> BTF_SET_END(btf_id_deny)
[Severity: Medium]
Can resolve_btfids fail to resolve rcu_read_unlock_special when the
compiler inlines it?
rcu_read_unlock_special() is defined in kernel/rcu/tree_plugin.h as a
static function without noinline, and __rcu_read_unlock() is its only
caller. When the compiler inlines it and elides the out-of-line
definition, no BTF_KIND_FUNC entry is emitted in vmlinux, causing
resolve_btfids to emit an unresolved symbol warning (or fail the build
when CONFIG_WERROR=y passes --fatal_warnings). Should
rcu_read_unlock_special() be marked noinline as well?
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261125040106.2200628-1-rhkrqnwk98@gmail.com?part=1
prev parent reply other threads:[~2026-11-25 4:23 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-25 4:01 [PATCH bpf-next v2] bpf: Add rcu_read_unlock_special() into btf id deny list Sechang Lim
2026-11-25 4:23 ` sashiko-bot [this message]
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-232571@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=bpf@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox