Commit 8837c16
bpf: Allow instructions with arena source and non-arena dest registers
[ Upstream commit ac61bff ]
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: 6082b6c ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>1 parent f00037a commit 8837c16
1 file changed
Lines changed: 11 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14434 | 14434 | | |
14435 | 14435 | | |
14436 | 14436 | | |
14437 | | - | |
| 14437 | + | |
| 14438 | + | |
| 14439 | + | |
| 14440 | + | |
14438 | 14441 | | |
14439 | | - | |
| 14442 | + | |
| 14443 | + | |
14440 | 14444 | | |
14441 | 14445 | | |
| 14446 | + | |
| 14447 | + | |
| 14448 | + | |
| 14449 | + | |
| 14450 | + | |
14442 | 14451 | | |
14443 | 14452 | | |
14444 | 14453 | | |
| |||
14454 | 14463 | | |
14455 | 14464 | | |
14456 | 14465 | | |
14457 | | - | |
14458 | 14466 | | |
14459 | 14467 | | |
14460 | 14468 | | |
| |||
0 commit comments