[PATCH] selftests: Add missing gitignore entries

2024-01-25 Thread Bernd Edlinger
Prevent them from polluting git status after building selftests. Signed-off-by: Bernd Edlinger --- tools/testing/selftests/damon/.gitignore | 1 + tools/testing/selftests/thermal/intel/power_floor/.gitignore | 2 ++

kselftest/fixes kselftest-lkdtm: 1 runs, 1 regressions (v6.8-rc1-5-g93ffe3f1e97da)

2024-01-25 Thread kernelci.org bot
kselftest/fixes kselftest-lkdtm: 1 runs, 1 regressions (v6.8-rc1-5-g93ffe3f1e97da) Regressions Summary --- platform| arch | lab | compiler | defconfig | regressions

Re: [PATCH] selftests/mm: Update va_high_addr_switch.sh to check CPU for la57 flag

2024-01-25 Thread Andrew Morton
On Wed, 24 Jan 2024 08:39:33 -0500 Audra Mitchell wrote: > > A more complete description of these "test failures" would be helpful > > please. > > > > Hey, sorry for the incomplete description. The test does a series of mmap > calls including three using the MAP_FIXED flag and specifying an

Re: [PATCH 1/2] userfaultfd: handle zeropage moves by UFFDIO_MOVE

2024-01-25 Thread Suren Baghdasaryan
On Wed, Jan 24, 2024 at 4:13 PM Suren Baghdasaryan wrote: > > Current implementation of UFFDIO_MOVE fails to move zeropages and returns > EBUSY when it encounters one. We can handle them by mapping a zeropage > at the destination and clearing the mapping at the source. This is done > both for

Re: [PATCH v12 00/20] KVM: xen: update shared_info and vcpu_info handling

2024-01-25 Thread Sean Christopherson
On Thu, Jan 25, 2024, Paul Durrant wrote: > On 15/01/2024 12:56, Paul Durrant wrote: > > From: Paul Durrant > > > > This series has one small fix to what was in v11 [1]: > > > > * KVM: xen: re-initialize shared_info if guest (32/64-bit) mode is set > > > > The v11 patch failed to set the

Re: [PATCHv2 net] selftests/net/lib: update busywait timeout value

2024-01-25 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net.git (main) by Jakub Kicinski : On Wed, 24 Jan 2024 14:13:44 +0800 you wrote: > The busywait timeout value is a millisecond, not a second. So the > current setting 2 is too small. On slow/busy host (or VMs) the > current timeout can expire even on

kselftest/fixes build: 5 builds: 2 failed, 3 passed, 2 errors, 6 warnings (v6.8-rc1-5-g93ffe3f1e97da)

2024-01-25 Thread kernelci.org bot
kselftest/fixes build: 5 builds: 2 failed, 3 passed, 2 errors, 6 warnings (v6.8-rc1-5-g93ffe3f1e97da) Full Build Summary: https://kernelci.org/build/kselftest/branch/fixes/kernel/v6.8-rc1-5-g93ffe3f1e97da/ Tree: kselftest Branch: fixes Git Describe: v6.8-rc1-5-g93ffe3f1e97da Git Commit:

Re: [RFC PATCH v1 15/28] riscv/mm: Implement map_shadow_stack() syscall

2024-01-25 Thread Deepak Gupta
On Thu, Jan 25, 2024 at 01:24:16PM -0800, Charlie Jenkins wrote: On Wed, Jan 24, 2024 at 10:21:40PM -0800, de...@rivosinc.com wrote: From: Deepak Gupta As discussed extensively in the changelog for the addition of this syscall on x86 ("x86/shstk: Introduce map_shadow_stack syscall") the

Re: [PATCH net-next v2 0/5] selftests: tc-testing: misc changes for tdc

2024-01-25 Thread patchwork-bot+netdevbpf
Hello: This series was applied to netdev/net-next.git (main) by Jakub Kicinski : On Wed, 24 Jan 2024 15:19:28 -0300 you wrote: > Patches 1 and 3 are fixes for tdc that were discovered when running it > using defconfig + tc-testing config and against the latest iproute2. > > Patch 2 improves the

Re: [RFC PATCH v1 07/28] riscv: kernel handling on trap entry/exit for user cfi

2024-01-25 Thread Deepak Gupta
On Thu, Jan 25, 2024 at 02:47:49PM -0500, Stefan O'Rear wrote: On Thu, Jan 25, 2024, at 12:30 PM, Deepak Gupta wrote: On Thu, Jan 25, 2024 at 02:29:01AM -0500, Stefan O'Rear wrote: On Thu, Jan 25, 2024, at 1:21 AM, de...@rivosinc.com wrote: From: Deepak Gupta Carves out space in arch

Re: [PATCH net] selftests: tcp_ao: set the timeout to 2 minutes

2024-01-25 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net.git (main) by Jakub Kicinski : On Wed, 24 Jan 2024 15:36:30 -0800 you wrote: > The default timeout for tests is 45sec, bench-lookups_ipv6 > seems to take around 50sec when running in a VM without > HW acceleration. Give it a 2x margin and set the

Re: [PATCH net 0/3] selftests: net: a few fixes

2024-01-25 Thread patchwork-bot+netdevbpf
Hello: This series was applied to netdev/net.git (main) by Jakub Kicinski : On Wed, 24 Jan 2024 22:33:19 +0100 you wrote: > This series address self-tests failures for udp gro-related tests. > > The first patch addresses the main problem I observe locally - the XDP > program required by such

Re: [PATCH net] selftests: tcp_ao: add a config file

2024-01-25 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net.git (main) by Jakub Kicinski : On Wed, 24 Jan 2024 11:25:50 -0800 you wrote: > Still a bit unclear whether each directory should have its own > config file, but assuming they should lets add one for tcp_ao. > > The following tests still fail with this

Re: [RFC PATCH v1 15/28] riscv/mm: Implement map_shadow_stack() syscall

2024-01-25 Thread Charlie Jenkins
On Wed, Jan 24, 2024 at 10:21:40PM -0800, de...@rivosinc.com wrote: > From: Deepak Gupta > > As discussed extensively in the changelog for the addition of this > syscall on x86 ("x86/shstk: Introduce map_shadow_stack syscall") the > existing mmap() and madvise() syscalls do not map entirely well

Re: [PATCH v4 0/2] kselftest/seccomp: Convert to KTAP output

2024-01-25 Thread Shuah Khan
On 1/24/24 06:00, Mark Brown wrote: Currently the seccomp benchmark selftest produces non-standard output, meaning that while it makes a number of checks of the performance it observes this has to be parsed by humans. This means that automated systems running this suite of tests are almost

[PATCH] selftests: fix dependency checker script

2024-01-25 Thread Lu Dai
grep|cut pipe will hang when there is no input for grep Signed-off-by: Lu Dai --- tools/testing/selftests/kselftest_deps.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/testing/selftests/kselftest_deps.sh b/tools/testing/selftests/kselftest_deps.sh index de59cc8f03c3..487e49fdf2a6

Re: [PATCH v12 00/20] KVM: xen: update shared_info and vcpu_info handling

2024-01-25 Thread David Woodhouse
On Thu, 2024-01-25 at 15:03 +, Paul Durrant wrote: > On 15/01/2024 12:56, Paul Durrant wrote: > > From: Paul Durrant > > > > This series has one small fix to what was in v11 [1]: > > > > * KVM: xen: re-initialize shared_info if guest (32/64-bit) mode is set > > > > The v11 patch failed to

Re: [RFC PATCH v1 07/28] riscv: kernel handling on trap entry/exit for user cfi

2024-01-25 Thread Stefan O'Rear
On Thu, Jan 25, 2024, at 12:30 PM, Deepak Gupta wrote: > On Thu, Jan 25, 2024 at 02:29:01AM -0500, Stefan O'Rear wrote: >>On Thu, Jan 25, 2024, at 1:21 AM, de...@rivosinc.com wrote: >>> From: Deepak Gupta >>> >>> Carves out space in arch specific thread struct for cfi status and shadow >>> stack

Re: [RFC PATCH v1 24/28] riscv: select config for shadow stack and landing pad instr support

2024-01-25 Thread Deepak Gupta
On Thu, Jan 25, 2024 at 06:44:48PM +, Conor Dooley wrote: On Thu, Jan 25, 2024 at 10:12:16AM -0800, Deepak Gupta wrote: On Thu, Jan 25, 2024 at 06:04:26PM +, Conor Dooley wrote: > On Wed, Jan 24, 2024 at 10:21:49PM -0800, de...@rivosinc.com wrote: > > From: Deepak Gupta > > > > This

Re: [RFC PATCH v1 05/28] riscv: zicfiss/zicfilp enumeration

2024-01-25 Thread Conor Dooley
On Thu, Jan 25, 2024 at 10:26:19AM -0800, Deepak Gupta wrote: > > Anything you add to this array, you need to document in a dt-binding. > > You mean Documentation/devicetree/bindings/riscv/extensions.yaml > (or possibly any other yaml if needed?) That one alone should be okay. > > Also, you

Re: [RFC PATCH v1 24/28] riscv: select config for shadow stack and landing pad instr support

2024-01-25 Thread Conor Dooley
On Thu, Jan 25, 2024 at 10:12:16AM -0800, Deepak Gupta wrote: > On Thu, Jan 25, 2024 at 06:04:26PM +, Conor Dooley wrote: > > On Wed, Jan 24, 2024 at 10:21:49PM -0800, de...@rivosinc.com wrote: > > > From: Deepak Gupta > > > > > > This patch selects config shadow stack support and landing

Re: [PATCH net] selftests: net: give more time for GRO aggregation

2024-01-25 Thread Eric Dumazet
On Thu, Jan 25, 2024 at 7:09 PM Paolo Abeni wrote: > > The gro.sh test-case relay on the gro_flush_timeout to ensure > that all the segments belonging to any given batch are properly > aggregated. > > The other end, the sender is a user-space program transmitting > each packet with a separate

Re: [RFC PATCH v1 05/28] riscv: zicfiss/zicfilp enumeration

2024-01-25 Thread Deepak Gupta
On Thu, Jan 25, 2024 at 05:59:24PM +, Conor Dooley wrote: Yo, Series is RFC, so not gonna review it in depth, just wanted to comment on this particular patch. On Wed, Jan 24, 2024 at 10:21:30PM -0800, de...@rivosinc.com wrote: From: Deepak Gupta This patch adds support for detecting

Re: [RFC PATCH v1 24/28] riscv: select config for shadow stack and landing pad instr support

2024-01-25 Thread Deepak Gupta
On Thu, Jan 25, 2024 at 06:04:26PM +, Conor Dooley wrote: On Wed, Jan 24, 2024 at 10:21:49PM -0800, de...@rivosinc.com wrote: From: Deepak Gupta This patch selects config shadow stack support and landing pad instr support. Shadow stack support and landing instr support is hidden behind

[PATCH net] selftests: net: give more time for GRO aggregation

2024-01-25 Thread Paolo Abeni
The gro.sh test-case relay on the gro_flush_timeout to ensure that all the segments belonging to any given batch are properly aggregated. The other end, the sender is a user-space program transmitting each packet with a separate write syscall. A busy host and/or stracing the sender program can

Re: [RFC PATCH v1 24/28] riscv: select config for shadow stack and landing pad instr support

2024-01-25 Thread Conor Dooley
On Wed, Jan 24, 2024 at 10:21:49PM -0800, de...@rivosinc.com wrote: > From: Deepak Gupta > > This patch selects config shadow stack support and landing pad instr > support. Shadow stack support and landing instr support is hidden behind > `CONFIG_RISCV_USER_CFI`. Selecting

Re: [RFC PATCH v1 05/28] riscv: zicfiss/zicfilp enumeration

2024-01-25 Thread Conor Dooley
Yo, Series is RFC, so not gonna review it in depth, just wanted to comment on this particular patch. On Wed, Jan 24, 2024 at 10:21:30PM -0800, de...@rivosinc.com wrote: > From: Deepak Gupta > > This patch adds support for detecting zicfiss and zicfilp. zicfiss and zicfilp > stands for

Re: [RFC PATCH v1 02/28] riscv: envcfg save and restore on trap entry/exit

2024-01-25 Thread Deepak Gupta
On Thu, Jan 25, 2024 at 09:09:14AM -0800, Deepak Gupta wrote: On Thu, Jan 25, 2024 at 02:19:29AM -0500, Stefan O'Rear wrote: On Thu, Jan 25, 2024, at 1:21 AM, de...@rivosinc.com wrote: From: Deepak Gupta envcfg CSR defines enabling bits for cache management instructions and soon will control

Re: [RFC PATCH v1 07/28] riscv: kernel handling on trap entry/exit for user cfi

2024-01-25 Thread Deepak Gupta
On Thu, Jan 25, 2024 at 02:29:01AM -0500, Stefan O'Rear wrote: On Thu, Jan 25, 2024, at 1:21 AM, de...@rivosinc.com wrote: From: Deepak Gupta Carves out space in arch specific thread struct for cfi status and shadow stack in usermode on riscv. This patch does following - defines a new

Re: [RFC PATCH v1 02/28] riscv: envcfg save and restore on trap entry/exit

2024-01-25 Thread Deepak Gupta
On Thu, Jan 25, 2024 at 02:19:29AM -0500, Stefan O'Rear wrote: On Thu, Jan 25, 2024, at 1:21 AM, de...@rivosinc.com wrote: From: Deepak Gupta envcfg CSR defines enabling bits for cache management instructions and soon will control enabling for control flow integrity and pointer masking

Re: [RFC PATCH v1 09/28] mm: abstract shadow stack vma behind `arch_is_shadow_stack`

2024-01-25 Thread Deepak Gupta
On Thu, Jan 25, 2024 at 09:18:07AM +0100, David Hildenbrand wrote: On 25.01.24 07:21, de...@rivosinc.com wrote: From: Deepak Gupta x86 has used VM_SHADOW_STACK (alias to VM_HIGH_ARCH_5) to encode shadow stack VMA. VM_SHADOW_STACK is thus not possible on 32bit. Some arches may need a way to

Re: [RFC PATCH v1 08/28] mm: Define VM_SHADOW_STACK for RISC-V

2024-01-25 Thread Deepak Gupta
On Thu, Jan 25, 2024 at 09:17:01AM +0100, David Hildenbrand wrote: On 25.01.24 07:21, de...@rivosinc.com wrote: From: Deepak Gupta VM_SHADOW_STACK is defined by x86 as vm flag to mark a shadow stack vma. x86 uses VM_HIGH_ARCH_5 bit but that limits shadow stack vma to 64bit only. arm64

Re: [PATCH net-next 1/6] selftests: Introduce Makefile variable to list shared bash scripts

2024-01-25 Thread Benjamin Poirier
On 2024-01-24 20:46 -0800, Jakub Kicinski wrote: > On Wed, 24 Jan 2024 12:02:17 -0500 Benjamin Poirier wrote: > > --- a/Documentation/dev-tools/kselftest.rst > > +++ b/Documentation/dev-tools/kselftest.rst > > @@ -255,9 +255,19 @@ Contributing new tests (details) > > > > TEST_PROGS_EXTENDED,

Re: [PATCH net] selftests: net: add missing required classifier

2024-01-25 Thread Eric Dumazet
On Thu, Jan 25, 2024 at 5:40 PM Paolo Abeni wrote: > > > Thank you for testing! > > Do you prefer I'll send the formal patch or do you prefer otherwise? Please send it, you did the investigations, thanks a lot !

Re: [PATCH net] selftests: net: add missing required classifier

2024-01-25 Thread Paolo Abeni
On Thu, 2024-01-25 at 15:10 +0100, Eric Dumazet wrote: > On Thu, Jan 25, 2024 at 12:38 PM Paolo Abeni wrote: > > > > On Thu, 2024-01-25 at 09:48 +0100, Eric Dumazet wrote: > > > On Thu, Jan 25, 2024 at 9:23 AM Paolo Abeni wrote: > > > > > > > > the udpgro_fraglist self-test uses the BPF

[PATCH bpf-next v2] selftests/bpf: Include runner extras for install target

2024-01-25 Thread Björn Töpel
From: Björn Töpel When using the "install" or targets depending on install, e.g. "gen_tar", the "runner extras" weren't included for the BPF machine flavors. Make sure the necessary helper scripts/tools are added to corresponding BPF machine flavor. Signed-off-by: Björn Töpel --- v2: Added

[PATCH v3 5/5] selftests/mm: run_vmtests.sh: add missing tests

2024-01-25 Thread Muhammad Usama Anjum
Add missing tests to run_vmtests.sh. The mm kselftests are run through run_vmtests.sh. If a test isn't present in this script, it'll not run with run_tests or `make -C tools/testing/selftests/mm run_tests`. Cc: Ryan Roberts Signed-off-by: Muhammad Usama Anjum --- Changes since v1: - Copy the

[PATCH v3 4/5] selftests/mm: protection_keys: save/restore nr_hugepages settings

2024-01-25 Thread Muhammad Usama Anjum
Save and restore nr_hugepages before changing it during the test. A test should not change system wide settings. Fixes: 5f23f6d082a9 ("x86/pkeys: Add self-tests") Signed-off-by: Muhammad Usama Anjum --- tools/testing/selftests/mm/protection_keys.c | 34 1 file changed, 34

[PATCH v3 3/5] selftests/mm: save and restore nr_hugepages value

2024-01-25 Thread Muhammad Usama Anjum
Save and restore nr_hugepages before changing it during the test. A test should not change system wide settings. Signed-off-by: Muhammad Usama Anjum --- tools/testing/selftests/mm/charge_reserved_hugetlb.sh | 4 tools/testing/selftests/mm/hugetlb_reparenting_test.sh | 3 +++ 2 files

[PATCH v3 2/5] selftests/mm: run_vmtests: remove sudo and conform to tap

2024-01-25 Thread Muhammad Usama Anjum
Remove sudo as some test running environments may not have sudo available. Instead skip the test if root privileges aren't available in the test. Signed-off-by: Muhammad Usama Anjum --- Changes since v1: - Added this patch in v2 We are allocating 2*RLIMIT_MEMLOCK.rlim_max memory and mmap()

[PATCH v3 1/5] selftests/mm: hugetlb_reparenting_test: do not unmount

2024-01-25 Thread Muhammad Usama Anjum
Do not unmount the cgroup if it wasn't mounted by the test. The earlier patch had fixed this for charge_reserved_hugetlb, but not for this test. I'm adding fixes tag to that earlier patch. Fixes: 209376ed2a84 ("selftests/vm: make charge_reserved_hugetlb.sh work with existing cgroup setting")

[PATCH v3 0/5] selftests/mm: Improve run_vmtests.sh

2024-01-25 Thread Muhammad Usama Anjum
In this series, I'm trying to add 3 missing tests to vm_runtests.sh which is used to run all the tests in mm suite. These tests weren't running by CIs. While enabling them and through review feedback, I've fixed some problems in tests as well. I've found more flakiness in more tests which I'll be

Re: [PATCH net 1/3] selftests: net: remove dependency on ebpf tests

2024-01-25 Thread Willem de Bruijn
Paolo Abeni wrote: > On Thu, 2024-01-25 at 09:27 -0500, Willem de Bruijn wrote: > > Paolo Abeni wrote: > > > On Wed, 2024-01-24 at 20:10 -0500, Willem de Bruijn wrote: > > > > Paolo Abeni wrote: > > > > > Several net tests requires an XDP program build under the ebpf > > > > > directory, and error

[PATCH v1 0/2] Fix Landlock's net_test for non-root users

2024-01-25 Thread Mickaël Salaün
Hi, This two patches fix an issue when the user running net_test is not root. The second patch simplify test error logs. Regards, Mickaël Salaün (2): selftests/landlock: Fix capability for net_test selftests/landlock: Clean up error logs related to capabilities

[PATCH v1 2/2] selftests/landlock: Clean up error logs related to capabilities

2024-01-25 Thread Mickaël Salaün
It doesn't help to call TH_LOG() for every cap_*() error. Let's only log errors returned by the kernel, not by libcap specificities. Signed-off-by: Mickaël Salaün --- tools/testing/selftests/landlock/common.h | 39 ++- 1 file changed, 9 insertions(+), 30 deletions(-) diff

[PATCH v1 1/2] selftests/landlock: Fix capability for net_test

2024-01-25 Thread Mickaël Salaün
CAP_NET_ADMIN allows to configure network interfaces, not CAP_SYS_ADMIN which only allows to call unshare(2). Without this change, running network tests as a non-root user but with all capabilities would fail at the setup_loopback() step with "RTNETLINK answers: Operation not permitted". The

Re: [PATCH net 1/3] selftests: net: remove dependency on ebpf tests

2024-01-25 Thread Paolo Abeni
On Thu, 2024-01-25 at 09:27 -0500, Willem de Bruijn wrote: > Paolo Abeni wrote: > > On Wed, 2024-01-24 at 20:10 -0500, Willem de Bruijn wrote: > > > Paolo Abeni wrote: > > > > Several net tests requires an XDP program build under the ebpf > > > > directory, and error out if such program is not

Re: [PATCH v12 00/20] KVM: xen: update shared_info and vcpu_info handling

2024-01-25 Thread Paul Durrant
On 15/01/2024 12:56, Paul Durrant wrote: From: Paul Durrant This series has one small fix to what was in v11 [1]: * KVM: xen: re-initialize shared_info if guest (32/64-bit) mode is set The v11 patch failed to set the return code of the ioctl if the mode was not actually changed, leading to a

Re: [PATCH net 1/3] selftests: net: remove dependency on ebpf tests

2024-01-25 Thread Willem de Bruijn
Paolo Abeni wrote: > On Wed, 2024-01-24 at 20:10 -0500, Willem de Bruijn wrote: > > Paolo Abeni wrote: > > > Several net tests requires an XDP program build under the ebpf > > > directory, and error out if such program is not available. > > > > > > That makes running successful net test hard,

Re: [PATCH bpf-next] selftests/bpf: Include runner extras for install target

2024-01-25 Thread Björn Töpel
Björn Töpel writes: > From: Björn Töpel > > When using the "install" or targets depending on install, e.g. > "gen_tar", the "runner extras" weren't included for the BPF machine > flavors. > > Make sure the necessary helper scripts/tools are added to > corresponding BPF machine flavor. > >

Re: [PATCH net] selftests: net: add missing required classifier

2024-01-25 Thread Eric Dumazet
On Thu, Jan 25, 2024 at 12:38 PM Paolo Abeni wrote: > > On Thu, 2024-01-25 at 09:48 +0100, Eric Dumazet wrote: > > On Thu, Jan 25, 2024 at 9:23 AM Paolo Abeni wrote: > > > > > > the udpgro_fraglist self-test uses the BPF classifiers, but the > > > current net self-test configuration does not

[PATCH bpf-next] selftests/bpf: Include runner extras for install target

2024-01-25 Thread Björn Töpel
From: Björn Töpel When using the "install" or targets depending on install, e.g. "gen_tar", the "runner extras" weren't included for the BPF machine flavors. Make sure the necessary helper scripts/tools are added to corresponding BPF machine flavor. Signed-off-by: Björn Töpel ---

Re: [PATCH v3 4/5] selftests/resctrl: Add resource_info_file_exists()

2024-01-25 Thread Ilpo Järvinen
On Thu, 25 Jan 2024, Maciej Wieczor-Retman wrote: > Feature checking done by resctrl_mon_feature_exists() covers features > represented by the feature name presence inside the 'mon_features' file > in /sys/fs/resctrl/info/L3_MON directory. There exists a different way > to represent feature

Re: [PATCH v3 2/5] selftests/resctrl: Add helpers for the non-contiguous test

2024-01-25 Thread Ilpo Järvinen
On Thu, 25 Jan 2024, Maciej Wieczor-Retman wrote: > The CAT non-contiguous selftests have to read the file responsible for > reporting support of non-contiguous CBMs in kernel (resctrl). Then the > test compares if that information matches what is reported by CPUID > output. > > Add a generic

Re: [PATCH v3 3/5] selftests/resctrl: Split validate_resctrl_feature_request()

2024-01-25 Thread Ilpo Järvinen
On Thu, 25 Jan 2024, Maciej Wieczor-Retman wrote: > validate_resctrl_feature_request() is used to test both if a resource is > present in the info directory, and if a passed monitoring feature is > present in the mon_features file. > > Refactor validate_resctrl_feature_request() into two smaller

Re: [PATCH net] selftests: net: add missing required classifier

2024-01-25 Thread Paolo Abeni
On Thu, 2024-01-25 at 09:48 +0100, Eric Dumazet wrote: > On Thu, Jan 25, 2024 at 9:23 AM Paolo Abeni wrote: > > > > the udpgro_fraglist self-test uses the BPF classifiers, but the > > current net self-test configuration does not include it, causing > > CI failures: > > > > # selftests: net:

[PATCH v3 5/5] selftests/resctrl: Add non-contiguous CBMs CAT test

2024-01-25 Thread Maciej Wieczor-Retman
Add tests for both L2 and L3 CAT to verify the return values generated by writing non-contiguous CBMs don't contradict the reported non-contiguous support information. Use a logical XOR to confirm return value of write_schemata() and non-contiguous CBMs support information match. Signed-off-by:

[PATCH v3 4/5] selftests/resctrl: Add resource_info_file_exists()

2024-01-25 Thread Maciej Wieczor-Retman
Feature checking done by resctrl_mon_feature_exists() covers features represented by the feature name presence inside the 'mon_features' file in /sys/fs/resctrl/info/L3_MON directory. There exists a different way to represent feature support and that is by the presence of 0 or 1 in a single file

[PATCH v3 3/5] selftests/resctrl: Split validate_resctrl_feature_request()

2024-01-25 Thread Maciej Wieczor-Retman
validate_resctrl_feature_request() is used to test both if a resource is present in the info directory, and if a passed monitoring feature is present in the mon_features file. Refactor validate_resctrl_feature_request() into two smaller functions that each accomplish one check to give feature

[PATCH v3 2/5] selftests/resctrl: Add helpers for the non-contiguous test

2024-01-25 Thread Maciej Wieczor-Retman
The CAT non-contiguous selftests have to read the file responsible for reporting support of non-contiguous CBMs in kernel (resctrl). Then the test compares if that information matches what is reported by CPUID output. Add a generic helper function to read an unsigned number from a file in

[PATCH v3 1/5] selftests/resctrl: Add test groups and name L3 CAT test L3_CAT

2024-01-25 Thread Maciej Wieczor-Retman
From: Ilpo Järvinen To select test to run -t parameter can be used. However, -t cat currently maps to L3 CAT test which will be confusing after more CAT related tests will be added. Allow selecting tests as groups and call L3 CAT test "L3_CAT", "CAT" group will enable all CAT related tests.

[PATCH v3 0/5] selftests/resctrl: Add non-contiguous CBMs in Intel CAT selftest

2024-01-25 Thread Maciej Wieczor-Retman
Non-contiguous CBM support for Intel CAT has been merged into the kernel with Commit 0e3cd31f6e90 ("x86/resctrl: Enable non-contiguous CBMs in Intel CAT") but there is no selftest that would validate if this feature works correctly. The selftest needs to verify if writing non-contiguous CBMs to

Re: [ANN] net-next is OPEN

2024-01-25 Thread Petr Machata
Jakub Kicinski writes: > On Tue, 23 Jan 2024 18:04:19 +0100 Petr Machata wrote: >> > Unless I'm doing it wrong and the sub-directories are supposed to >> > inherit the parent directory's config? So net/forwarding/ should >> > be built with net/'s config? I could not find the info in docs, >> >

Re: [PATCH net-next v2 0/5] selftests: tc-testing: misc changes for tdc

2024-01-25 Thread Davide Caratti
On Wed, Jan 24, 2024 at 03:19:28PM -0300, Pedro Tammela wrote: > Patches 1 and 3 are fixes for tdc that were discovered when running it > using defconfig + tc-testing config and against the latest iproute2. > > Patch 2 improves the taprio tests. > > Patch 4 enables all tdc tests. > > Patch 5

Re: [PATCH net] selftests: net: add missing required classifier

2024-01-25 Thread Eric Dumazet
On Thu, Jan 25, 2024 at 9:23 AM Paolo Abeni wrote: > > the udpgro_fraglist self-test uses the BPF classifiers, but the > current net self-test configuration does not include it, causing > CI failures: > > # selftests: net: udpgro_frglist.sh > # ipv6 > # tcp - over veth touching data > # -l 4

Re: [PATCH net] selftests: net: add missing required classifier

2024-01-25 Thread Maciej Żenczykowski
On Thu, Jan 25, 2024 at 12:23 AM Paolo Abeni wrote: > > the udpgro_fraglist self-test uses the BPF classifiers, but the > current net self-test configuration does not include it, causing > CI failures: > > # selftests: net: udpgro_frglist.sh > # ipv6 > # tcp - over veth touching data > # -l 4

[PATCH net] selftests: net: add missing required classifier

2024-01-25 Thread Paolo Abeni
the udpgro_fraglist self-test uses the BPF classifiers, but the current net self-test configuration does not include it, causing CI failures: # selftests: net: udpgro_frglist.sh # ipv6 # tcp - over veth touching data # -l 4 -6 -D 2001:db8::1 -t rx -4 -t # Error: TC classifier not found. #

Re: [RFC PATCH v1 09/28] mm: abstract shadow stack vma behind `arch_is_shadow_stack`

2024-01-25 Thread David Hildenbrand
On 25.01.24 07:21, de...@rivosinc.com wrote: From: Deepak Gupta x86 has used VM_SHADOW_STACK (alias to VM_HIGH_ARCH_5) to encode shadow stack VMA. VM_SHADOW_STACK is thus not possible on 32bit. Some arches may need a way to encode shadow stack on 32bit and 64bit both and they may encode this

Re: [RFC PATCH v1 08/28] mm: Define VM_SHADOW_STACK for RISC-V

2024-01-25 Thread David Hildenbrand
On 25.01.24 07:21, de...@rivosinc.com wrote: From: Deepak Gupta VM_SHADOW_STACK is defined by x86 as vm flag to mark a shadow stack vma. x86 uses VM_HIGH_ARCH_5 bit but that limits shadow stack vma to 64bit only. arm64 follows same path