BPF fixes, mostly in the JIT backends. Bugzilla 1959 and 1427.

The existing JIT tests were never run on arm64, which is how the gaps
here went unnoticed. The tests now fail rather than skip when a JIT
backend exists but produces nothing.

Tested on x86_64 and arm64.

Christophe Fontaine (1):
  bpf/arm64: fix offset type to allow a negative jump

Stephen Hemminger (9):
  bpf/x86: fix JIT encoding of fixed-width immediates
  test/bpf: add JSET test with small immediate
  bpf: mask shift count in interpreter per RFC 9669
  bpf/arm64: mask shift count per RFC 9669
  test/bpf: add test for large shift
  Subject: [PATCH 07/10] bpf/arm64: add BPF_ABS/BPF_IND packet load
    support
  test/bpf: check that JIT was generated
  test/bpf: check that bpf_convert can be JIT'd
  bpf: fix uninitialized warning

 app/test/test_bpf.c     | 320 +++++++++++++++++++++++++++++++---------
 lib/bpf/bpf_exec.c      |  31 ++--
 lib/bpf/bpf_jit_arm64.c | 204 ++++++++++++++++++++++++-
 lib/bpf/bpf_jit_x86.c   |   6 +-
 lib/bpf/bpf_validate.c  |   2 +-
 lib/bpf/meson.build     |   2 +
 6 files changed, 476 insertions(+), 89 deletions(-)

-- 
2.53.0

Reply via email to