diff options
| author | Emil Tsalapatis <emil@etsalapatis.com> | 2026-04-12 13:45:38 -0400 |
|---|---|---|
| committer | Alexei Starovoitov <ast@kernel.org> | 2026-04-12 12:47:39 -0700 |
| commit | ac61bffe91d4bda08806e12957c6d64756d042db (patch) | |
| tree | 7248935da78a7686f9665c217e337bf3deb68395 /rust/kernel/ptr/git@git.tavy.me:linux.git | |
| parent | 9623c3c69e51aaa096f3770655994d7a1992358d (diff) | |
bpf: Allow instructions with arena source and non-arena dest registers
The compiler sometimes stores the result of a PTR_TO_ARENA and SCALAR
operation into the scalar register rather than the pointer register.
Relax the verifier to allow operations between a source arena register
and a destination non-arena register, marking the destination's value
as a PTR_TO_ARENA.
Signed-off-by: Emil Tsalapatis <emil@etsalapatis.com>
Acked-by: Song Liu <song@kernel.org>
Fixes: 6082b6c328b5 ("bpf: Recognize addr_space_cast instruction in the verifier.")
Link: https://lore.kernel.org/r/20260412174546.18684-2-emil@etsalapatis.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'rust/kernel/ptr/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
