properly load insn array values with offsets
Status from this message: This series was applied to bpf/bpf-next.git (master)
Get series with b4
b4 am [email protected]Versions newest first
Patches in v1 All 3 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | bpf: insn array: return proper address for non-zero offsetskernel/ | +1 | 3 replies | Applied |
| 2/3 | bpf: insn array: return EACCES for incorrect map accesskernel/ | +1 | 3 replies | Applied |
| 3/3 | selftests/bpf: add tests for loading map values with offsetstools/ | +208 | 0 replies | Applied |
Reviews trailers per patch
2 of 3 patches have a Reviewed-by or Acked-by.
| Patch | Emil Tsalapatis |
|---|---|
| 1/3 | R-b |
| 2/3 | R-b |
| 3/3 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH bpf-next 0/3] properly load insn array values with offsets
As was reported by the BPF CI bot in [1] the direct address of an instruction array returned by map_direct_value_addr() is incorrect if the offset is non-zero. Fix this bug and add selftests.
Also (commit 2), return EACCES instead of EINVAL when offsets aren't correct.
Anton Protopopov (3):
bpf: insn array: return proper address for non-zero offsets
bpf: insn array: return EACCES for incorrect map access selftests/bpf: add tests for loading map values with offsets
kernel/bpf/bpf_insn_array.c | 4 +- .../selftests/bpf/prog_tests/bpf_gotox.c | 208 ++++++++++++++++++ 2 files changed, 210 insertions(+), 2 deletions(-)
Signature · 1 line
2.34.1