Skip to content

s390/bpf: Replace ly instruction with llgf

Maxim Khmelevskii bpf 1 version Applied

Status from this message: This series was applied to bpf/bpf-next.git (master)

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesApplied 2/2

Patches in v1 All 2 applied

#Subject and filesSizeRepliesApplied
1/2s390/bpf: Replace ly instruction with llgfarch/s390/net/bpf_jit_comp.c+2 -20 repliesApplied
2/2selftests/bpf: Add test for bpf_get_smp_processor_idtools/testing/selftests/bpf/prog_tests/get_smp_processor_id.c tools/testing/selftests/bpf/progs/get_smp_processor_id.c+65 -00 repliesApplied

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchIlya Leoshkevich
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH bpf-next 0/2] s390/bpf: Replace ly instruction with llgf

Sashiko found a bug [1] in 9012cf2491e3, where upper bits of a 64-bit register are not zero-extended after ly instruction in used.

Tested:
./test_progs -v -t get_smp_processor_id

[1] https://sashiko.dev/#/patchset/20260414142930.528751-1-max%40linux.ibm.com

Maxim Khmelevskii (2):
s390/bpf: Replace ly instruction with llgf selftests/bpf: Add test for bpf_get_smp_processor_id

 arch/s390/net/bpf_jit_comp.c                  |  4 +-
 .../bpf/prog_tests/get_smp_processor_id.c     | 45 +++++++++++++++++++
 .../bpf/progs/get_smp_processor_id.c          | 20 +++++++++
 3 files changed, 67 insertions(+), 2 deletions(-)
 create mode 100644 tools/testing/selftests/bpf/prog_tests/get_smp_processor_id.c
 create mode 100644 tools/testing/selftests/bpf/progs/get_smp_processor_id.c
Signature · 1 line
2.54.0