[PATCH v4 4/4] fixup! selftests: kvm: s390: Add VM run test case

2024-09-16 Thread Christoph Schlameuss
Fix pointer function arguments whitespaces. Signed-off-by: Christoph Schlameuss --- tools/testing/selftests/kvm/s390x/ucontrol_test.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/testing/selftests/kvm/s390x/ucontrol_test.c b/tools/testing/selftests/kvm/s390x

[PATCH v4 0/4] selftests: kvm: s390: Add ucontrol memory selftests

2024-09-16 Thread Christoph Schlameuss
This patch series adds a some not yet picked selftests to the kvm s390x selftest suite. The additional test cases are covering: * Assert KVM_EXIT_S390_UCONTROL exit on not mapped memory access * Assert functionality of storage keys in ucontrol VM * Assert that memory region operations are rejected

[PATCH v4 3/4] selftests: kvm: s390: Verify reject memory region operations for ucontrol VMs

2024-09-16 Thread Christoph Schlameuss
Add a test case verifying KVM_SET_USER_MEMORY_REGION and KVM_SET_USER_MEMORY_REGION2 cannot be executed on ucontrol VMs. Executing this test case on not patched kernels will cause a null pointer dereference in the host kernel. This is fixed with commit: commit 7816e58967d0 ("kvm: s390: Reject memo

[PATCH v4 1/4] selftests: kvm: s390: Add uc_map_unmap VM test case

2024-09-16 Thread Christoph Schlameuss
Add a test case verifying basic running and interaction of ucontrol VMs. Fill the segment and page tables for allocated memory and map memory on first access. * uc_map_unmap Store and load data to mapped and unmapped memory and use pic segment translation handling to map memory on access. Sig

[PATCH v4 2/4] selftests: kvm: s390: Add uc_skey VM test case

2024-09-16 Thread Christoph Schlameuss
Add a test case manipulating s390 storage keys from within the ucontrol VM. Signed-off-by: Christoph Schlameuss --- .../selftests/kvm/s390x/ucontrol_test.c | 89 ++- 1 file changed, 88 insertions(+), 1 deletion(-) diff --git a/tools/testing/selftests/kvm/s390x/ucontrol_tes

[PATCH net-next v7 25/25] testing/selftest: add test tool and scripts for ovpn module

2024-09-16 Thread Antonio Quartulli
The ovpn-cli tool can be compiled and used as selftest for the ovpn kernel module. It implementes the netlink API and can thus be integrated in any script for more automated testing. Along with the tool, 2 scripts are added that perform basic functionality tests by means of network namespaces. T

Re: [PATCH net-next v2 0/3] selftests/net: packetdrill: netns and two imports

2024-09-16 Thread Willem de Bruijn
Stanislav Fomichev wrote: > On 09/12, Willem de Bruijn wrote: > > Matthieu Baerts wrote: > > > Hi Willem, > > > > > > On 12/09/2024 02:52, Willem de Bruijn wrote: > > > > From: Willem de Bruijn > > > > > > > > 1/3: run in nets, as discussed, and add missing CONFIGs > > > > 2/3: import tcp/zeroco

kselftest/next kselftest-seccomp: 2 runs, 3 regressions (v6.11-rc1-21-ga0474b8d5974e)

2024-09-16 Thread kernelci.org bot
kselftest/next kselftest-seccomp: 2 runs, 3 regressions (v6.11-rc1-21-ga0474b8d5974e) Regressions Summary --- platform | arch | lab | compiler | defconfig | regressions -+---+-+--

kselftest/next kselftest-lkdtm: 2 runs, 1 regressions (v6.11-rc1-21-ga0474b8d5974e)

2024-09-16 Thread kernelci.org bot
kselftest/next kselftest-lkdtm: 2 runs, 1 regressions (v6.11-rc1-21-ga0474b8d5974e) Regressions Summary --- platform| arch | lab | compiler | defconfig | regressions +--+-+--+-

kselftest/next kselftest-lib: 2 runs, 1 regressions (v6.11-rc1-21-ga0474b8d5974e)

2024-09-16 Thread kernelci.org bot
kselftest/next kselftest-lib: 2 runs, 1 regressions (v6.11-rc1-21-ga0474b8d5974e) Regressions Summary --- platform| arch | lab | compiler | defconfig | regressions +--+-+--+---

kselftest/next build: 7 builds: 2 failed, 5 passed, 1 warning (v6.11-rc1-21-ga0474b8d5974e)

2024-09-16 Thread kernelci.org bot
kselftest/next build: 7 builds: 2 failed, 5 passed, 1 warning (v6.11-rc1-21-ga0474b8d5974e) Full Build Summary: https://kernelci.org/build/kselftest/branch/next/kernel/v6.11-rc1-21-ga0474b8d5974e/ Tree: kselftest Branch: next Git Describe: v6.11-rc1-21-ga0474b8d5974e Git Commit: a0474b8d5974e14

Re: [PATCH net-next v2 0/3] selftests/net: packetdrill: netns and two imports

2024-09-16 Thread Stanislav Fomichev
On 09/12, Willem de Bruijn wrote: > Matthieu Baerts wrote: > > Hi Willem, > > > > On 12/09/2024 02:52, Willem de Bruijn wrote: > > > From: Willem de Bruijn > > > > > > 1/3: run in nets, as discussed, and add missing CONFIGs > > > 2/3: import tcp/zerocopy > > > 3/3: import tcp/slow_start > > > >

Re: [PATCH] selftests: livepatch: test livepatching a kprobed function

2024-09-16 Thread mpdesouza
On Fri, 2024-09-13 at 14:58 +0200, Michael Vetter wrote: > The test proves that a function that is being kprobed and uses a > post_handler cannot be livepatched. > > Only one ftrace_ops with FTRACE_OPS_FL_IPMODIFY set may be registered > to any given function at a time. First of all, thanks a lot

Re: [PATCH v3 1/3] selftests: kvm: s390: Add uc_map_unmap VM test case

2024-09-16 Thread Christoph Schlameuss
On Mon Sep 16, 2024 at 8:33 AM CEST, Janosch Frank wrote: > On 9/16/24 8:25 AM, Christoph Schlameuss wrote: > > On Fri Sep 13, 2024 at 6:48 PM CEST, Claudio Imbrenda wrote: > >> On Fri, 13 Sep 2024 13:52:46 +0200 > >> Christoph Schlameuss wrote: > >> > >>> Add a test case verifying basic running a

[PATCH bpf-next v6 8/8] selftests/bpf: Support cross-endian building

2024-09-16 Thread Tony Ambardar
Update Makefile build rules to compile BPF programs with target endianness rather than host byte-order. With recent changes, this allows building the full selftests/bpf suite hosted on x86_64 and targeting s390x or mips64eb for example. Acked-by: Yonghong Song Signed-off-by: Tony Ambardar --- t

[PATCH bpf-next v6 7/8] libbpf: Support creating light skeleton of either endianness

2024-09-16 Thread Tony Ambardar
Track target endianness in 'struct bpf_gen' and process in-memory data in native byte-order, but on finalization convert the embedded loader BPF insns to target endianness. The light skeleton also includes a target-accessed data blob which is heterogeneous and thus difficult to convert to target b

[PATCH bpf-next v6 6/8] libbpf: Support linking bpf objects of either endianness

2024-09-16 Thread Tony Ambardar
Allow static linking object files of either endianness, checking that input files have consistent byte-order, and setting output endianness from input. Linking requires in-memory processing of programs, relocations, sections, etc. in native endianness, and output conversion to target byte-order. T

[PATCH bpf-next v6 5/8] libbpf: Support opening bpf objects of either endianness

2024-09-16 Thread Tony Ambardar
Allow bpf_object__open() to access files of either endianness, and convert included BPF programs to native byte-order in-memory for introspection. Loading BPF objects of non-native byte-order is still disallowed however. Signed-off-by: Tony Ambardar --- tools/lib/bpf/libbpf.c | 51 +

[PATCH bpf-next v6 4/8] libbpf: Support BTF.ext loading and output in either endianness

2024-09-16 Thread Tony Ambardar
Support for handling BTF data of either endianness was added in [1], but did not include BTF.ext data for lack of use cases. Later, support for static linking [2] provided a use case, but this feature and later ones were restricted to native-endian usage. Add support for BTF.ext handling in either

[PATCH bpf-next v6 3/8] libbpf: Fix output .symtab byte-order during linking

2024-09-16 Thread Tony Ambardar
Object linking output data uses the default ELF_T_BYTE type for '.symtab' section data, which disables any libelf-based translation. Explicitly set the ELF_T_SYM type for output to restore libelf's byte-order conversion, noting that input '.symtab' data is already correctly translated. Fixes: faf6

[PATCH bpf-next v6 2/8] libbpf: Fix header comment typos for BTF.ext

2024-09-16 Thread Tony Ambardar
Mention struct btf_ext_info_sec rather than non-existent btf_sec_func_info in BTF.ext struct documentation. Signed-off-by: Tony Ambardar --- tools/lib/bpf/libbpf_internal.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/lib/bpf/libbpf_internal.h b/tools/lib/bpf/lib

[PATCH bpf-next v6 1/8] libbpf: Improve log message formatting

2024-09-16 Thread Tony Ambardar
Fix missing newlines and extraneous terminal spaces in messages. Signed-off-by: Tony Ambardar --- tools/lib/bpf/btf.c | 6 +++--- tools/lib/bpf/btf_dump.c | 2 +- tools/lib/bpf/btf_relocate.c | 2 +- tools/lib/bpf/libbpf.c | 4 ++-- tools/lib/bpf/relo_core.c| 2 +- 5 files

[PATCH bpf-next v6 0/8] libbpf, selftests/bpf: Support cross-endian usage

2024-09-16 Thread Tony Ambardar
Hello all, This patch series targets a long-standing BPF usability issue - the lack of general cross-compilation support - by enabling cross-endian usage of libbpf and bpftool, as well as supporting cross-endian build targets for selftests/bpf. Benefits include improved BPF development and testin

Re: [PATCH bpf-next v5 4/8] libbpf: Support BTF.ext loading and output in either endianness

2024-09-16 Thread Tony Ambardar
On Wed, Sep 04, 2024 at 12:48:36PM -0700, Andrii Nakryiko wrote: > On Tue, Sep 3, 2024 at 12:33 AM Tony Ambardar wrote: > > > > Support for handling BTF data of either endianness was added in [1], but > > did not include BTF.ext data for lack of use cases. Later, support for > > static linking [2]

Re: [PATCH bpf-next v4 4/8] libbpf: Support BTF.ext loading and output in either endianness

2024-09-16 Thread Tony Ambardar
On Fri, Aug 30, 2024 at 05:15:06PM -0700, Eduard Zingerman wrote: > On Fri, 2024-08-30 at 00:29 -0700, Tony Ambardar wrote: > > [...] > > > @@ -3050,11 +3127,42 @@ static int btf_ext_parse_hdr(__u8 *data, __u32 > > data_size) > > return -ENOTSUP; > > } > > > > - if (data_size

[linux-next:master] [list] 17640748eb: kunit.list-kunit-test.fail

2024-09-16 Thread kernel test robot
list_for_each_entry [ 144.190607] ok 39 list_test_list_for_each_entry_reverse [ 144.196199] # list-kunit-test: pass:37 fail:2 skip:0 total:39 [ 144.202470] # Totals: pass:37 fail:2 skip:0 total:39 [ 144.208908] not ok 1 list-kunit-test The kernel config and materials to reproduce are available at: http