Re: [PATCH v2 bpf-next] bpf: Mark kfuncs as __noclone

From: patchwork-bot+netdevbpf
Date: Wed Sep 24 2025 - 06:00:20 EST


Hello:

This patch was applied to bpf/bpf-next.git (master)
by Alexei Starovoitov <ast@xxxxxxxxxx>:

On Wed, 24 Sep 2025 10:14:26 +0200 you wrote:
> Some distributions (e.g., CachyOS) support building the kernel with -O3,
> but doing so may break kfuncs, resulting in their symbols not being
> properly exported.
>
> In fact, with gcc -O3, some kfuncs may be optimized away despite being
> annotated as noinline. This happens because gcc can still clone the
> function during IPA optimizations, e.g., by duplicating or inlining it
> into callers, and then dropping the standalone symbol. This breaks BTF
> ID resolution since resolve_btfids relies on the presence of a global
> symbol for each kfunc.
>
> [...]

Here is the summary with links:
- [v2,bpf-next] bpf: Mark kfuncs as __noclone
https://git.kernel.org/bpf/bpf-next/c/d4680a11e14c

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html