Looks like we're almost there with the bpf syscall patches on the
linux-morello list[1][2]. So seems like a good time to update the
accompanying LTP tests.
Some of the bpf tests require either CAP_SYS_ADMIN or CAP_BPF, or
enabling unprivileged bpf with:
echo "0" > /proc/sys/kernel/unprivileged_bpf_disabled
Thanks,
Zach
Review branch: https://git.morello-project.org/zdleaf/morello-linux-test-project/-/tree/mo…
Kernel changes: https://git.morello-project.org/zdleaf/linux/-/tree/morello/bpf_v5
[1] https://op-lists.linaro.org/archives/list/linux-morello@op-lists.linaro.org…
[2] famous last words
Zachary Leaf (3):
bpf: align tests with PCuABI/uAPI
bpf: add bpf_check_attr test
runtest: add bpf to extended PCuABI syscall list
include/lapi/bpf.h | 354 +++++++++++++-----
runtest/morello_transitional_extended | 13 +
.../kernel/syscalls/bpf/bpf_check_attr.c | 62 +++
testcases/kernel/syscalls/bpf/bpf_common.c | 10 +-
testcases/kernel/syscalls/bpf/bpf_map01.c | 12 +-
testcases/kernel/syscalls/bpf/bpf_prog03.c | 4 +-
6 files changed, 352 insertions(+), 103 deletions(-)
create mode 100644 testcases/kernel/syscalls/bpf/bpf_check_attr.c
--
2.34.1