BPF control flow graph and precision backtrack fixes
Status from this message: This series was applied to bpf/bpf.git (master)
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest3 patches 6 repliesApplied 3/3
- v14 patches 13 repliesSuperseded
Patches in v2 All 3 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | bpf: handle ldimm64 properly in check_cfg()include/ kernel/ tools/ | +30 | 0 replies | Applied |
| 2/3 | bpf: fix precision backtracking instruction iterationkernel/ | +19 | 0 replies | Applied |
| 3/3 | selftests/bpf: add edge case backtracking logic testtools/ | +40 | 6 replies | Applied |
Reviews trailers per patch
2 of 3 patches have a Reviewed-by or Acked-by.
| Patch | Eduard Zingerman |
|---|---|
| 1/3 | A-b |
| 2/3 | A-b |
| 3/3 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v2 bpf 0/3] BPF control flow graph and precision backtrack fixes
A small fix to BPF verifier's CFG logic around handling and reporting ldimm64 instructions. Patch #1 was previously submitted separately ([0]), and so this patch set supersedes that patch.
Second patch is fixing obscure corner case in mark_chain_precise() logic. See patch for details. Patch #3 adds a dedicated test, however fragile it might.
[0] https://patchwork.kernel.org/project/netdevbpf/patch/[email protected]/
Andrii Nakryiko (3):
bpf: handle ldimm64 properly in check_cfg()
bpf: fix precision backtracking instruction iteration selftests/bpf: add edge case backtracking logic test
include/linux/bpf.h | 8 +++- kernel/bpf/verifier.c | 48 +++++++++++++++---- .../selftests/bpf/progs/verifier_precision.c | 40 ++++++++++++++++ .../testing/selftests/bpf/verifier/ld_imm64.c | 8 ++-- 4 files changed, 89 insertions(+), 15 deletions(-)
Signature · 1 line
2.34.1