[PATCH bpf-next 0/2] bpf, parisc: Add support for BPF_MOVSX in the JITs

From: Nicholas Dudar

Date: Fri Nov 13 2026 - 17:12:57 EST


Both PA-RISC JITs compile BPF_MOV | BPF_X without looking at the
offset, so a sign-extending move (offset 8, 16 or 32) is emitted as a
plain move. This series adds the sign extension to the 64-bit and the
32-bit JIT, one patch each. It follows the signed DIV/MOD series [1];
the parisc32 gap was pointed out by Sashiko in review of that series
[2].

Tested under QEMU on a 32-bit and a 64-bit kernel, with test_progs
built as a static 32-bit binary with jit_insns only. jit_insns/movsx
fails without and passes with the patch for the respective JIT, and no
other jit_insns subtest changes. jit_insns/helper_calls is left out on
the 64-bit kernel, where it does not complete with or without the
series. Not tested on physical hardware. The commands and output are in
the patches.

Claude Mythos 5.2 assisted with this patch series.

[1] https://lore.kernel.org/bpf/20260915022905.1535566-1-main.kalliope@xxxxxxxxx/
[2] https://lore.kernel.org/r/20260717192714.25C241F000E9@xxxxxxxxxxxxxxx

---
Nicholas Dudar (2):
bpf, parisc: Add support for BPF_MOVSX in the parisc64 JIT
bpf, parisc: Add support for BPF_MOVSX in the parisc32 JIT

arch/parisc/net/bpf_jit_comp32.c | 41 +++++++++++++++++++++++++++++++++++++++-
arch/parisc/net/bpf_jit_comp64.c | 11 +++++++++++
2 files changed, 51 insertions(+), 1 deletion(-)
---
base-commit: 0021f17128de5dc0b19f1a523f448df2440d8088
change-id: 20261113-parisc_bpf_jit_movsx_20261112-b9d59d0871d1

Best regards,
--
Nicholas Dudar <main.kalliope@xxxxxxxxx>