bpf: verifier: linked register tests and fixes
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest6 patches 1 replyIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | selftests: bpf: Add test for multiple syncs from linked registertools/ | +33 | 0 replies | |
| 2/6 | selftests/bpf: Add tests for improved linked register trackingtools/ | +301 | 0 replies | |
| 3/6 | selftests/bpf: Add a test cases for sync_linked_regs regarding zext propagationtools/ | +108 | 0 replies | |
| 4/6 | bpf: Clear delta when clearing reg id for non-{add,sub} opskernel/ | +26 | 0 replies | |
| 5/6 | selftests/bpf: Add tests for delta tracking when src_reg == dst_regtools/ | +57 | 0 replies | |
| 6/6 | selftests/bpf: Add tests for stale delta leaking through id reassignmenttools/ | +55 | 0 replies |
Reviews trailers per patch
2 of 6 patches have a Reviewed-by or Acked-by.
| Patch | Eduard Zingerman |
|---|---|
| 1/6 | T-b |
| 2/6 | A-b |
| 3/6 | A-b |
| 4/6 | |
| 5/6 | |
| 6/6 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH stable 6.18 0/6] bpf: verifier: linked register tests and fixes
This patchset mainly aims to backport upstream commit 1b327732c846 ("bpf: Clear delta when clearing reg id for non-{add,sub} ops") (patch 4), and its selftests patch in commit cac16ce1e378 ("selftests/bpf: Add tests for stale delta leaking through id reassignment") (patch 6). While doing so, I find that a BPF selftests patches are missing as context, so backported them along to import coverage.
The full list of patches that were backported are:
1. "selftests/bpf: Add tests for stale delta leaking through id reassignment"
2. "selftests/bpf: Add tests for delta tracking when src_reg == dst_reg"
3. "bpf: Clear delta when clearing reg id for non-{add,sub} ops"
4. "selftests/bpf: Add a test cases for sync_linked_regs regarding zext propagation"
5. "selftests/bpf: Add tests for improved linked register tracking"
6. "selftests: bpf: Add test for multiple syncs from linked register"
I have confirmed that after this patchset is applied, BPF selftests (test_progs*, test_verifier, and test_maps) still passes on x86_64[1] and aarch64[2].
1: https://github.com/kernel-patches/linux-stable/actions/runs/29553646000/job/87801246946
2: https://github.com/kernel-patches/linux-stable/actions/runs/29553646000/job/87801246917
Daniel Borkmann (4):
selftests/bpf: Add a test cases for sync_linked_regs regarding zext
propagation
bpf: Clear delta when clearing reg id for non-{add,sub} ops selftests/bpf: Add tests for delta tracking when src_reg == dst_reg selftests/bpf: Add tests for stale delta leaking through id
reassignment
Puranjay Mohan (2):
selftests: bpf: Add test for multiple syncs from linked register selftests/bpf: Add tests for improved linked register tracking
kernel/bpf/verifier.c | 50 +- .../bpf/progs/verifier_linked_scalars.c | 556 +++++++++++++++++- 2 files changed, 580 insertions(+), 26 deletions(-)
Signature · 1 line
2.54.0