Re: [PATCH bpf-next] bpf, lsm: Make bpf_lsm_get_retval_range() return void
From: patchwork-bot+netdevbpf
Date: Mon Nov 23 2026 - 19:30:09 EST
Hello:
This patch was applied to bpf/bpf-next.git (master)
by Alexei Starovoitov <ast@xxxxxxxxxx>:
On Fri, 20 Nov 2026 04:28:36 +0000 you wrote:
> With CONFIG_BPF_FMODRET_SCAN=y, fmod_ret programs can attach to tagged
> functions, so a program on bpf_lsm_get_retval_range() can make it fail
> for an LSM hook that returns a value. get_func_retval_range() then
> reports no range, and do_refine_retval_range() and check_helper_call()
> ignore the error and use a range the call did not set.
>
> The function fails only for a void hook, which every caller but
> get_func_retval_range() already rules out. Check for a void hook there
> and make the function return void, so resolve_btfids no longer tags
> it and no fmod_ret program can attach to it.
>
> [...]
Here is the summary with links:
- [bpf-next] bpf, lsm: Make bpf_lsm_get_retval_range() return void
https://git.kernel.org/bpf/bpf-next/c/351668b0b8b7
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html