[PATCH v3 0/6] bpf: simple tests and fixes
Marat Khalili
marat.khalili at huawei.com
Wed Dec 17 19:01:33 CET 2025
Add simple unit-style tests for rte_bpf_load, and fix some minor
discovered bugs.
v3:
* Fixed unfortunate typos in the last patch commit message.
* Marked all ARM opcodes with UINT32_C for clarity as suggested by
Morten Brørup, in a separate commit.
v2:
* Moved new tests back into test_bpf.c
* Changed library macros RTE_SHIFT_VALxx to handle variable first
arguments instead of introducing new macros.
* Added another test and fix, for conditional jump as first instruction.
Marat Khalili (6):
eal: variable first arguments of RTE_SHIFT_VALxx
bpf: fix signed shift overflows in ARM JIT
bpf: mark ARM opcodes with UINT32_C
bpf: disallow empty program
bpf: make add/subtract one program validate
bpf: fix BPF validation w/ conditional jump first
app/test/test_bpf.c | 254 +++++++++++++++++++++++++++++++++++
lib/bpf/bpf_jit_arm64.c | 184 ++++++++++++-------------
lib/bpf/bpf_load.c | 2 +-
lib/bpf/bpf_validate.c | 48 ++++---
lib/eal/include/rte_bitops.h | 4 +-
5 files changed, 375 insertions(+), 117 deletions(-)
--
2.43.0
More information about the stable
mailing list