[PATCH bpf v1] selftests/bpf: Fix cross-compiling urandom_read

2024-10-08 Thread Tony Ambardar
Linking of urandom_read and liburandom_read.so prefers LLVM's 'ld.lld' but falls back to using 'ld' if unsupported. However, this fallback discards any existing makefile macro for LD and can break cross-compilation. Fix by changing the fallback to use the target linker $(LD), passed via '-fuse-ld=

Re: [PATCH v2 3/6] iommu/vt-d: Make intel_iommu_set_dev_pasid() to handle domain replacement

2024-10-08 Thread Baolu Lu
On 2024/9/30 15:19, Tian, Kevin wrote: From: Baolu Lu Sent: Friday, September 13, 2024 10:17 AM On 9/13/24 9:35 AM, Baolu Lu wrote: On 9/12/24 9:04 PM, Yi Liu wrote: +static void intel_iommu_remove_dev_pasid(struct device *dev, ioasid_t pasid, + struct iommu_domain *domain

kselftest/fixes kselftest-cpufreq: 4 runs, 3 regressions (linux_kselftest-fixes-6.12-rc2-4-g34d5b600172b)

2024-10-08 Thread kernelci.org bot
kselftest/fixes kselftest-cpufreq: 4 runs, 3 regressions (linux_kselftest-fixes-6.12-rc2-4-g34d5b600172b) Regressions Summary --- platform | arch | lab | compiler | defconfig | regressions -+---+-

kselftest/fixes kselftest-lib: 2 runs, 1 regressions (linux_kselftest-fixes-6.12-rc2-4-g34d5b600172b)

2024-10-08 Thread kernelci.org bot
kselftest/fixes kselftest-lib: 2 runs, 1 regressions (linux_kselftest-fixes-6.12-rc2-4-g34d5b600172b) Regressions Summary --- platform | arch | lab | compiler | defconfig | regressions -+---+-+---

kselftest/fixes kselftest-seccomp: 2 runs, 1 regressions (linux_kselftest-fixes-6.12-rc2-4-g34d5b600172b)

2024-10-08 Thread kernelci.org bot
kselftest/fixes kselftest-seccomp: 2 runs, 1 regressions (linux_kselftest-fixes-6.12-rc2-4-g34d5b600172b) Regressions Summary --- platform | arch | lab | compiler | defconfig | regressions -+---+-

kselftest/fixes build: 7 builds: 2 failed, 5 passed, 1 warning (linux_kselftest-fixes-6.12-rc2-4-g34d5b600172b)

2024-10-08 Thread kernelci.org bot
kselftest/fixes build: 7 builds: 2 failed, 5 passed, 1 warning (linux_kselftest-fixes-6.12-rc2-4-g34d5b600172b) Full Build Summary: https://kernelci.org/build/kselftest/branch/fixes/kernel/linux_kselftest-fixes-6.12-rc2-4-g34d5b600172b/ Tree: kselftest Branch: fixes Git Describe: linux_kselftes

Re: [PATCH net-next 0/5] selftests: mlxsw: Stabilize RED tests

2024-10-08 Thread patchwork-bot+netdevbpf
Hello: This series was applied to netdev/net-next.git (main) by Jakub Kicinski : On Mon, 7 Oct 2024 18:26:04 +0200 you wrote: > Tweak the mlxsw-specific RED selftests to increase stability on > Spectrum-3 and Spectrum-4 machines. > > Petr Machata (5): > selftests: mlxsw: sch_red_ets: Increase

[PATCH bpf v1] selftests/bpf: Fix error compiling cgroup_ancestor.c with musl libc

2024-10-08 Thread Tony Ambardar
Existing code calls connect() with a 'struct sockaddr_in6 *' argument where a 'struct sockaddr *' argument is declared, yielding compile errors when building for mips64el/musl-libc: In file included from cgroup_ancestor.c:3: cgroup_ancestor.c: In function 'send_datagram': cgroup_ancestor.c:38:38:

Re: [PATCH kselftest v3 1/3] selftests: vDSO: unconditionally build chacha test

2024-10-08 Thread Shuah Khan
On 10/7/24 15:45, Jason A. Donenfeld wrote: Rather than using symlinks to find the vgetrandom-chacha.S file for each arch, store this in a file that uses the compiler to determine architecture, and then make use of weak symbols to skip the test on architectures that don't provide the code. Signe

Re: [PATCH v4 0/2] Exposing nice CPU usage to userspace

2024-10-08 Thread Tejun Heo
On Wed, Oct 02, 2024 at 11:47:15AM -0700, Joshua Hahn wrote: > Changes in v4 > - Removed unnecessary forking from selftest. > - Style changes in rstat.c (fallthrough & indents) > - Fixed a selftest bug that raised false negatives, caused by > cputime_adjust sometimes

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

2024-10-08 Thread Janosch Frank
On 10/8/24 2:56 PM, Janosch Frank wrote: On 10/8/24 9:42 AM, Christoph Schlameuss wrote: 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

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

2024-10-08 Thread Janosch Frank
On 10/8/24 9:42 AM, Christoph Schlameuss wrote: 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 co

Re: [PATCH v5 4/4] selftests: kvm: s390: Fix whitespace confusion in ucontrol test

2024-10-08 Thread Janosch Frank
On 10/8/24 9:42 AM, Christoph Schlameuss wrote: Checkpatch thinks that we're doing a multiplication but we're obviously not. Fix 4 instances where we adhered to wrong checkpatch advice. Signed-off-by: Christoph Schlameuss Reviewed-by: Janosch Frank

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

2024-10-08 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 v5 1/4] selftests: kvm: s390: Add uc_map_unmap VM test case

2024-10-08 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 v5 4/4] selftests: kvm: s390: Fix whitespace confusion in ucontrol test

2024-10-08 Thread Christoph Schlameuss
Checkpatch thinks that we're doing a multiplication but we're obviously not. Fix 4 instances where we adhered to wrong checkpatch advice. Signed-off-by: Christoph Schlameuss --- tools/testing/selftests/kvm/s390x/ucontrol_test.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff

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

2024-10-08 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 v5 2/4] selftests: kvm: s390: Add uc_skey VM test case

2024-10-08 Thread Christoph Schlameuss
Add a test case manipulating s390 storage keys from within the ucontrol VM. Signed-off-by: Christoph Schlameuss Reviewed-by: Janosch Frank --- .../selftests/kvm/s390x/ucontrol_test.c | 87 +++ 1 file changed, 87 insertions(+) diff --git a/tools/testing/selftests/kvm/s390x