bpf: fix verification of indirect var-off stack access
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 · linked by author and title
- v5 Latest3 patches 0 repliesApplied 3/3
- v42 patches 4 repliesSuperseded
- v32 patches 5 repliesSuperseded
Earlier versions · 3
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v2 posting 2/2 | 1 patch | 16 replies | Superseded | |
| v2 posting 1/2 | 0 of 1 patch | 0 replies | Superseded | |
| v1 | 1 patch | 3 replies | Superseded |
Changes in v5 from the cover letter
- split the test into a separate patch
Patches in v5 All 3 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | bpf: fix verification of indirect var-off stack accesskernel/ | +4 | 0 replies | Applied |
| 2/3 | bpf: add verifier regression test for previous patchtools/ | +29 | 0 replies | Applied |
| 3/3 | bpf: guard stack limits against 32bit overflowkernel/ | +3 | 0 replies | Applied |
Reviews trailers per patch
All 3 patches have a Reviewed-by or Acked-by.
| Patch | Eduard Zingerman | Andrii Nakryiko |
|---|---|---|
| 1/3 | A-b | A-b |
| 2/3 | A-b | |
| 3/3 | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH bpf-next v5 0/3] bpf: fix verification of indirect var-off stack access
V4 to V5:
- split the test into a separate patch
V3 to V4:
- include a test per Eduard's request
- target bpf-next per Alexei's request (patches didn't change)
V2 to V3:
- simplify checks for max_off (don't call check_stack_slot_within_bounds for it)
- append a commit to protect against overflow in the addition of the register and the offset
V1 to V2:
- fix max_off calculation for access size = 0
Andrei Matei (3):
bpf: fix verification of indirect var-off stack access
bpf: add verifier regression test for previous patch
bpf: guard stack limits against 32bit overflow
kernel/bpf/verifier.c | 20 +++++-------- .../selftests/bpf/progs/verifier_var_off.c | 29 +++++++++++++++++++ 2 files changed, 36 insertions(+), 13 deletions(-)
Signature · 1 line
2.40.1