bpf: Fix incorrect immediate spill
Status from this message: This series was applied to bpf/bpf.git (master)
Get series with b4
b4 am [email protected] change-id 20231026-fix-check-stack-write-c40996694dfaVersions newest first
- v3 Latest2 patches 0 repliesApplied 2/2
- v22 patches 4 repliesSuperseded
- v12 patches 5 repliesSuperseded
Changes in v3 from the cover letter
- Change the expected log to fix the test case
- Link to v2: https://lore.kernel.org/r/[email protected]
Patches in v3 All 2 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | bpf: Fix check_stack_write_fixed_off() to correctly spill immkernel/ | +1 | 0 replies | Applied |
| 2/2 | selftests/bpf: Add test for immediate spilled to stacktools/ | +32 | 0 replies | Applied |
Reviews trailers per patch
1 of 2 patches has a Reviewed-by or Acked-by.
| Patch | Shung-Hsi Yu | Eduard Zingerman |
|---|---|---|
| 1/2 | A-b | A-b |
| 2/2 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH bpf v3 0/2] bpf: Fix incorrect immediate spill
Immediate is incorrectly cast to u32 before being spilled, losing sign information. The range information is incorrect after load again. Fix immediate spill by remove the cast. The second patch add a test case for this.
---
Changes in v3:
- Change the expected log to fix the test case
- Link to v2: https://lore.kernel.org/r/[email protected]
Changes in v2:
- Add fix and cc tags.
- Link to v1: https://lore.kernel.org/r/[email protected]
---
Hao Sun (2):
bpf: Fix check_stack_write_fixed_off() to correctly spill imm selftests/bpf: Add test for immediate spilled to stack
kernel/bpf/verifier.c | 2 +- tools/testing/selftests/bpf/verifier/bpf_st_mem.c | 32 +++++++++++++++++++++++ 2 files changed, 33 insertions(+), 1 deletion(-)
---
base-commit: f2fbb908112311423b09cd0d2b4978f174b99585
change-id: 20231026-fix-check-stack-write-c40996694dfa
Best regards,
Signature · 1 line
Hao Sun <[email protected]>