BPF List
 help / color / mirror / Atom feed
* [PATCH bpf-next 0/2] s390/bpf: Replace ly instruction with llgf
@ 2026-07-03 12:51 Maxim Khmelevskii
  2026-07-03 12:51 ` [PATCH bpf-next 1/2] " Maxim Khmelevskii
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Maxim Khmelevskii @ 2026-07-03 12:51 UTC (permalink / raw)
  To: Alexei Starovoitov, Andrii Nakryiko, Daniel Borkmann
  Cc: bpf, Ilya Leoshkevich, Heiko Carstens, Vasily Gorbik,
	Alexander Gordeev

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

-- 
2.54.0


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-07-07  7:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-03 12:51 [PATCH bpf-next 0/2] s390/bpf: Replace ly instruction with llgf Maxim Khmelevskii
2026-07-03 12:51 ` [PATCH bpf-next 1/2] " Maxim Khmelevskii
2026-07-03 12:51 ` [PATCH bpf-next 2/2] selftests/bpf: Add test for bpf_get_smp_processor_id Maxim Khmelevskii
2026-07-07  7:40 ` [PATCH bpf-next 0/2] s390/bpf: Replace ly instruction with llgf patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox