Skip to content

bpf, arm64: enable kfunc call

Hou Tao bpf linux-arm-kernel netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v3 Latest3 patches 1 replyIn review 1 of 3 applied

Changes in v3 from the cover letter

* patch #2: newly-addded to unexport unnecessary subtests
* patch #3: use kallsyms_find() instead of reimplementing it.
* patch #3: ensure kfunc call is supported before checking whether s32 will be overflowed or not.

Patches in v3 1 of 3 applied

#Subject and filesSizeRepliesApplied
1/3bpf, arm64: enable kfunc callarch/arm64/net/bpf_jit_comp.c+5 -01 replyApplied
2/3selftests/bpf: do not export subtest as standalone testtools/testing/selftests/bpf/prog_tests/ksyms_module.c tools/testing/selftests/bpf/prog_tests/xdp_adjust_frags.c tools/testing/selftests/bpf/prog_tests/xdp_adjust_tail.c +2 more+7 -130 replies
3/3selftests/bpf: check whether s32 is sufficient for kfunc offsettools/testing/selftests/bpf/prog_tests/ksyms_module.c+42 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH bpf-next v3 0/3] bpf, arm64: enable kfunc call

Hi,

The simple patchset tries to enable kfunc call for arm64. Patch #1 just overrides bpf_jit_supports_kfunc_call() to enable kfunc call, patch #2 unexports the subtests in ksyms_module.c to fix the confusion in test output and patch #3 add a test in ksyms_module.c to ensure s32 is sufficient for kfunc offset.

Change Log:
v3:
* patch #2: newly-addded to unexport unnecessary subtests
* patch #3: use kallsyms_find() instead of reimplementing it.
* patch #3: ensure kfunc call is supported before checking whether s32 will be overflowed or not.

v2: https://lore.kernel.org/bpf/[email protected]/
* add a test to check whether imm will be overflowed for kfunc call

v1: https://lore.kernel.org/bpf/[email protected]

Hou Tao (3):
bpf, arm64: enable kfunc call
selftests/bpf: do not export subtest as standalone test selftests/bpf: check whether s32 is sufficient for kfunc offset

 arch/arm64/net/bpf_jit_comp.c                 |  5 ++
 .../selftests/bpf/prog_tests/ksyms_module.c   | 46 ++++++++++++++++++-
 .../bpf/prog_tests/xdp_adjust_frags.c         |  6 ---
 .../bpf/prog_tests/xdp_adjust_tail.c          |  4 +-
 .../bpf/prog_tests/xdp_cpumap_attach.c        |  4 +-
 .../bpf/prog_tests/xdp_devmap_attach.c        |  2 +-
 6 files changed, 54 insertions(+), 13 deletions(-)
Signature · 1 line
2.20.1