mbox series

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

Message ID 20220130092917.14544-1-hotforest@gmail.com (mailing list archive)
Headers show
Series bpf, arm64: enable kfunc call | expand

Message

Hou Tao Jan. 30, 2022, 9:29 a.m. UTC
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/20220127071532.384888-1-houtao1@huawei.com/
  * add a test to check whether imm will be overflowed for kfunc call

v1: https://lore.kernel.org/bpf/20220119144942.305568-1-houtao1@huawei.com

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(-)

Comments

patchwork-bot+netdevbpf@kernel.org Feb. 4, 2022, 3:40 p.m. UTC | #1
Hello:

This series was applied to bpf/bpf-next.git (master)
by Daniel Borkmann <daniel@iogearbox.net>:

On Sun, 30 Jan 2022 17:29:14 +0800 you wrote:
> 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.
> 
> [...]

Here is the summary with links:
  - [bpf-next,v3,1/3] bpf, arm64: enable kfunc call
    https://git.kernel.org/bpf/bpf-next/c/b5e975d256db
  - [bpf-next,v3,2/3] selftests/bpf: do not export subtest as standalone test
    (no matching commit)
  - [bpf-next,v3,3/3] selftests/bpf: check whether s32 is sufficient for kfunc offset
    (no matching commit)

You are awesome, thank you!