[PATCH bpf v2] bpf: verifier: reject addr_space_cast insn without arena

patchwork-bot+netdevbpf at kernel.org patchwork-bot+netdevbpf at kernel.org
Fri Mar 22 20:50:28 PDT 2024


Hello:

This patch was applied to bpf/bpf.git (master)
by Alexei Starovoitov <ast at kernel.org>:

On Fri, 22 Mar 2024 15:35:18 +0000 you wrote:
> The verifier allows using the addr_space_cast instruction in a program
> that doesn't have an associated arena. This was caught in the form an
> invalid memory access in do_misc_fixups() when while converting
> addr_space_cast to a normal 32-bit mov, env->prog->aux->arena was
> dereferenced to check for BPF_F_NO_USER_CONV flag.
> 
> Reject programs that include the addr_space_cast instruction but don't
> have an associated arena.
> 
> [...]

Here is the summary with links:
  - [bpf,v2] bpf: verifier: reject addr_space_cast insn without arena
    https://git.kernel.org/bpf/bpf/c/122fdbd2a030

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





More information about the linux-riscv mailing list