[PATCH net-next] selftests: openvswitch: Test ICMP related matches work with SNAT

2024-01-30 Thread Brad Cowie
Add a test case for regression in openvswitch nat that was fixed by commit e6345d2824a3 ("netfilter: nf_nat: fix action not being set for all ct states"). Link: https://lore.kernel.org/netdev/20231221224311.130319-1-b...@faucet.nz/ Link:

Re: [PATCH v3 0/5] KVM: selftests: aarch64: Introduce pmu_event_filter_test

2024-01-30 Thread Shaoqin Huang
Hi Eric, On 1/26/24 18:25, Eric Auger wrote: Hi Shaoqin, On 1/16/24 07:01, Shaoqin Huang wrote: The test is inspired by the pmu_event_filter_test which implemented by x86. On the arm64 platform, there is the same ability to set the pmu_event_filter through the KVM_ARM_VCPU_PMU_V3_FILTER

[RFC PATCH v2 29/29] docs: ntsync: Add documentation for the ntsync uAPI.

2024-01-30 Thread Elizabeth Figura
Add an overall explanation of the driver architecture, and complete and precise specification for its intended behaviour. Signed-off-by: Elizabeth Figura --- Documentation/userspace-api/index.rst | 1 + Documentation/userspace-api/ntsync.rst | 390 + 2 files changed,

[RFC PATCH v2 12/29] ntsync: Introduce NTSYNC_IOC_EVENT_PULSE.

2024-01-30 Thread Elizabeth Figura
This corresponds to the NT syscall NtPulseEvent(). This wakes up any waiters as if the event had been set, but does not set the event, instead resetting it if it had been signalled. Thus, for a manual-reset event, all waiters are woken, whereas for an auto-reset event, at most one waiter is

[RFC PATCH v2 28/29] maintainers: Add an entry for ntsync.

2024-01-30 Thread Elizabeth Figura
Add myself as maintainer, supported by CodeWeavers. Signed-off-by: Elizabeth Figura --- MAINTAINERS | 9 + 1 file changed, 9 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 8d1052fa6a69..7924127d351b 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -15585,6 +15585,15 @@ T:

[RFC PATCH v2 16/29] ntsync: Introduce alertable waits.

2024-01-30 Thread Elizabeth Figura
NT waits can optionally be made "alertable". This is a special channel for thread wakeup that is mildly similar to SIGIO. A thread has an internal single bit of "alerted" state, and if a thread is made alerted while an alertable wait, the wait will return a special value, consume the "alerted"

[RFC PATCH v2 25/29] selftests: ntsync: Add some tests for wakeup signaling with events.

2024-01-30 Thread Elizabeth Figura
Expand the contended wait tests, which previously only covered events and semaphores, to cover events as well. Signed-off-by: Elizabeth Figura --- .../testing/selftests/drivers/ntsync/ntsync.c | 151 +- 1 file changed, 147 insertions(+), 4 deletions(-) diff --git

[RFC PATCH v2 06/29] ntsync: Introduce NTSYNC_IOC_CREATE_MUTEX.

2024-01-30 Thread Elizabeth Figura
This corresponds to the NT syscall NtCreateMutant(). An NT mutex is recursive, with a 32-bit recursion counter. When acquired via NtWaitForMultipleObjects(), the recursion counter is incremented by one. The OS records the thread which acquired it. However, in order to keep this driver

[RFC PATCH v2 15/29] ntsync: Introduce NTSYNC_IOC_EVENT_READ.

2024-01-30 Thread Elizabeth Figura
This corresponds to the NT syscall NtQueryEvent(). This returns the signaled state of the event and whether it is manual-reset. Signed-off-by: Elizabeth Figura --- drivers/misc/ntsync.c | 21 + include/uapi/linux/ntsync.h | 1 + 2 files changed, 22 insertions(+)

[RFC PATCH v2 02/29] ntsync: Introduce NTSYNC_IOC_CREATE_SEM.

2024-01-30 Thread Elizabeth Figura
This corresponds to the NT syscall NtCreateSemaphore(). Semaphores are one of three types of object to be implemented in this driver, the others being mutexes and events. An NT semaphore contains a 32-bit counter, and is signaled and can be acquired when the counter is nonzero. The counter has a

[RFC PATCH v2 17/29] selftests: ntsync: Add some tests for semaphore state.

2024-01-30 Thread Elizabeth Figura
Wine has tests for its synchronization primitives, but these are more accessible to kernel developers, and also allow us to test some edge cases that Wine does not care about. This patch adds tests for semaphore-specific ioctls NTSYNC_IOC_SEM_POST and NTSYNC_IOC_SEM_READ, and waiting on

[RFC PATCH v2 09/29] ntsync: Introduce NTSYNC_IOC_CREATE_EVENT.

2024-01-30 Thread Elizabeth Figura
This correspond to the NT syscall NtCreateEvent(). An NT event holds a single bit of state denoting whether it is signaled or unsignaled. There are two types of events: manual-reset and automatic-reset. When an automatic-reset event is acquired via a wait function, its state is reset to

[RFC PATCH v2 27/29] selftests: ntsync: Add some tests for wakeup signaling via alerts.

2024-01-30 Thread Elizabeth Figura
Expand the alert tests to cover alerting a thread mid-wait, to test that the relevant scheduling logic works correctly. Signed-off-by: Elizabeth Figura --- .../testing/selftests/drivers/ntsync/ntsync.c | 62 +++ 1 file changed, 62 insertions(+) diff --git

[RFC PATCH v2 26/29] selftests: ntsync: Add tests for alertable waits.

2024-01-30 Thread Elizabeth Figura
Test the "alert" functionality of NTSYNC_IOC_WAIT_ALL and NTSYNC_IOC_WAIT_ANY, when a wait is woken with an alert and when it is woken by an object. Signed-off-by: Elizabeth Figura --- .../testing/selftests/drivers/ntsync/ntsync.c | 179 +- 1 file changed, 176 insertions(+), 3

[RFC PATCH v2 13/29] ntsync: Introduce NTSYNC_IOC_SEM_READ.

2024-01-30 Thread Elizabeth Figura
This corresponds to the NT syscall NtQuerySemaphore(). This returns the current count and maximum count of the semaphore. Signed-off-by: Elizabeth Figura --- drivers/misc/ntsync.c | 21 + include/uapi/linux/ntsync.h | 1 + 2 files changed, 22 insertions(+) diff

[RFC PATCH v2 14/29] ntsync: Introduce NTSYNC_IOC_MUTEX_READ.

2024-01-30 Thread Elizabeth Figura
This corresponds to the NT syscall NtQueryMutant(). This returns the recursion count, owner, and abandoned state of the mutex. Signed-off-by: Elizabeth Figura --- drivers/misc/ntsync.c | 23 +++ include/uapi/linux/ntsync.h | 1 + 2 files changed, 24 insertions(+)

[RFC PATCH v2 07/29] ntsync: Introduce NTSYNC_IOC_MUTEX_UNLOCK.

2024-01-30 Thread Elizabeth Figura
This corresponds to the NT syscall NtReleaseMutant(). This syscall decrements the mutex's recursion count by one, and returns the previous value. If the mutex is not owned by the given owner ID, the function instead fails and returns -EPERM. Signed-off-by: Elizabeth Figura ---

[RFC PATCH v2 18/29] selftests: ntsync: Add some tests for mutex state.

2024-01-30 Thread Elizabeth Figura
Test mutex-specific ioctls NTSYNC_IOC_MUTEX_UNLOCK and NTSYNC_IOC_MUTEX_READ, and waiting on mutexes. Signed-off-by: Elizabeth Figura --- .../testing/selftests/drivers/ntsync/ntsync.c | 181 ++ 1 file changed, 181 insertions(+) diff --git

[RFC PATCH v2 08/29] ntsync: Introduce NTSYNC_IOC_MUTEX_KILL.

2024-01-30 Thread Elizabeth Figura
This does not correspond to any NT syscall. Rather, when a thread dies, it should be called by the NT emulator for each mutex. NT mutexes are robust (in the pthread sense). When an NT thread dies, any mutexes it owned are immediately released. Acquisition of those mutexes by other threads will

[RFC PATCH v2 21/29] selftests: ntsync: Add some tests for wakeup signaling with WINESYNC_IOC_WAIT_ANY.

2024-01-30 Thread Elizabeth Figura
Test contended "wait-for-any" waits, to make sure that scheduling and wakeup logic works correctly. Signed-off-by: Elizabeth Figura --- .../testing/selftests/drivers/ntsync/ntsync.c | 152 ++ 1 file changed, 152 insertions(+) diff --git

[RFC PATCH v2 24/29] selftests: ntsync: Add some tests for auto-reset event state.

2024-01-30 Thread Elizabeth Figura
Test event-specific ioctls NTSYNC_IOC_EVENT_SET, NTSYNC_IOC_EVENT_RESET, NTSYNC_IOC_EVENT_PULSE, NTSYNC_IOC_EVENT_READ for auto-reset events, and waiting on auto-reset events. Signed-off-by: Elizabeth Figura --- .../testing/selftests/drivers/ntsync/ntsync.c | 59 +++ 1 file

[RFC PATCH v2 23/29] selftests: ntsync: Add some tests for manual-reset event state.

2024-01-30 Thread Elizabeth Figura
Test event-specific ioctls NTSYNC_IOC_EVENT_SET, NTSYNC_IOC_EVENT_RESET, NTSYNC_IOC_EVENT_PULSE, NTSYNC_IOC_EVENT_READ for manual-reset events, and waiting on manual-reset events. Signed-off-by: Elizabeth Figura --- .../testing/selftests/drivers/ntsync/ntsync.c | 89 +++ 1 file

[RFC PATCH v2 05/29] ntsync: Introduce NTSYNC_IOC_WAIT_ALL.

2024-01-30 Thread Elizabeth Figura
This is similar to NTSYNC_IOC_WAIT_ANY, but waits until all of the objects are simultaneously signaled, and then acquires all of them as a single atomic operation. Signed-off-by: Elizabeth Figura --- drivers/misc/ntsync.c | 244 ++--

[RFC PATCH v2 04/29] ntsync: Introduce NTSYNC_IOC_WAIT_ANY.

2024-01-30 Thread Elizabeth Figura
This corresponds to part of the functionality of the NT syscall NtWaitForMultipleObjects(). Specifically, it implements the behaviour where the third argument (wait_any) is TRUE, and it does not handle alertable waits. Those features have been split out into separate patches to ease review.

[RFC PATCH v2 03/29] ntsync: Introduce NTSYNC_IOC_SEM_POST.

2024-01-30 Thread Elizabeth Figura
This corresponds to the NT syscall NtReleaseSemaphore(). This increases the semaphore's internal counter by the given value, and returns the previous value. If the counter would overflow the defined maximum, the function instead fails and returns -EOVERFLOW. Signed-off-by: Elizabeth Figura ---

[RFC PATCH v2 20/29] selftests: ntsync: Add some tests for NTSYNC_IOC_WAIT_ALL.

2024-01-30 Thread Elizabeth Figura
Test basic synchronous functionality of NTSYNC_IOC_WAIT_ALL, and when objects are considered simultaneously signaled. Signed-off-by: Elizabeth Figura --- .../testing/selftests/drivers/ntsync/ntsync.c | 99 ++- 1 file changed, 97 insertions(+), 2 deletions(-) diff --git

[RFC PATCH v2 10/29] ntsync: Introduce NTSYNC_IOC_EVENT_SET.

2024-01-30 Thread Elizabeth Figura
This corresponds to the NT syscall NtSetEvent(). This sets the event to the signaled state, and returns its previous state. Signed-off-by: Elizabeth Figura --- drivers/misc/ntsync.c | 37 + include/uapi/linux/ntsync.h | 1 + 2 files changed, 38

[RFC PATCH v2 22/29] selftests: ntsync: Add some tests for wakeup signaling with WINESYNC_IOC_WAIT_ALL.

2024-01-30 Thread Elizabeth Figura
Test contended "wait-for-all" waits, to make sure that scheduling and wakeup logic works correctly, and that the wait only exits once objects are all simultaneously signaled. Signed-off-by: Elizabeth Figura --- .../testing/selftests/drivers/ntsync/ntsync.c | 98 +++ 1 file

[RFC PATCH v2 01/29] ntsync: Introduce the ntsync driver and character device.

2024-01-30 Thread Elizabeth Figura
ntsync uses a misc device as the simplest and least intrusive uAPI interface. Each file description on the device represents an isolated NT instance, intended to correspond to a single NT virtual machine. Signed-off-by: Elizabeth Figura --- drivers/misc/Kconfig | 9

[RFC PATCH v2 00/29] NT synchronization primitive driver

2024-01-30 Thread Elizabeth Figura
This patch series introduces a new char misc driver, /dev/ntsync, which is used to implement Windows NT synchronization primitives. == Background == The Wine project emulates the Windows API in user space. One particular part of that API, namely the NT synchronization primitives, have

[RFC PATCH v2 19/29] selftests: ntsync: Add some tests for NTSYNC_IOC_WAIT_ANY.

2024-01-30 Thread Elizabeth Figura
Test basic synchronous functionality of NTSYNC_IOC_WAIT_ANY, when objects are considered signaled or not signaled, and how they are affected by a successful wait. Signed-off-by: Elizabeth Figura --- .../testing/selftests/drivers/ntsync/ntsync.c | 105 ++ 1 file changed, 105

[RFC PATCH v2 11/29] ntsync: Introduce NTSYNC_IOC_EVENT_RESET.

2024-01-30 Thread Elizabeth Figura
This corresponds to the NT syscall NtResetEvent(). This sets the event to the unsignaled state, and returns its previous state. Signed-off-by: Elizabeth Figura --- drivers/misc/ntsync.c | 22 ++ include/uapi/linux/ntsync.h | 1 + 2 files changed, 23 insertions(+)

Re: [PATCH net-next] selftests: net: Add missing matchall classifier

2024-01-30 Thread Jakub Kicinski
On Mon, 29 Jan 2024 14:37:03 +0200 Ido Schimmel wrote: > One of the test cases in the test_bridge_backup_port.sh selftest relies > on a matchall classifier to drop unrelated traffic so that the Tx drop > counter on the VXLAN device will only be incremented as a result of > traffic generated by the

Re: [PATCH net-next] selftests/net: calibrate txtimestamp

2024-01-30 Thread Jakub Kicinski
On Fri, 26 Jan 2024 21:31:51 -0500 Willem de Bruijn wrote: > From: Willem de Bruijn > > The test sends packets and compares enqueue, transmit and Ack > timestamps with expected values. It installs netem delays to increase > latency between these points. > > The test proves flaky in virtual

Re: [PATCH net] selftests: net: add missing config for big tcp tests

2024-01-30 Thread Jakub Kicinski
On Tue, 30 Jan 2024 19:41:10 +0100 Paolo Abeni wrote: > > Yes, it's VM inside a VM without nested virtualization support. > > A weird setup, granted, but when we move to bare metal I'd like > > to enable KASAN, which will probably cause a similar slowdown.. > > > > You could possibly get a

[PATCH v3 3/3] docs: riscv: Define behavior of mmap

2024-01-30 Thread Charlie Jenkins
Define mmap on riscv to not provide an address that uses more bits than the hint address, if provided. Signed-off-by: Charlie Jenkins --- Documentation/arch/riscv/vm-layout.rst | 16 +--- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git

[PATCH v3 2/3] selftests: riscv: Generalize mm selftests

2024-01-30 Thread Charlie Jenkins
The behavior of mmap on riscv is defined to not provide an address that uses more bits than the hint address, if provided. Make the tests reflect that. Signed-off-by: Charlie Jenkins --- tools/testing/selftests/riscv/mm/mmap_bottomup.c | 23 +

[PATCH v3 1/3] riscv: mm: Use hint address in mmap if available

2024-01-30 Thread Charlie Jenkins
On riscv it is guaranteed that the address returned by mmap is less than the hint address. Allow mmap to return an address all the way up to addr, if provided, rather than just up to the lower address space. This provides a performance benefit as well, allowing mmap to exit after checking that

[PATCH v3 0/3] riscv: mm: Extend mappable memory up to hint address

2024-01-30 Thread Charlie Jenkins
test cases - Add support for rv32 - Change cover letter name so it's not the same as patch 1 - Link to v2: https://lore.kernel.org/r/20240130-use_mmap_hint_address-v2-0-f34ebfd33...@rivosinc.com Changes in v2: - Add back forgotten "mmap_end = STACK_TOP_MAX" - Link to v1: https://lore.

Re: [GIT PULL] KUnit fixes update for Linux 6.8-rc3

2024-01-30 Thread pr-tracker-bot
The pull request you sent on Tue, 30 Jan 2024 15:31:00 -0700: > git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest > tags/linux_kselftest-kunit-fixes-6.8-rc3 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/2a6526c4f389bb741e511be11721b3d1cbf1034a

Re: [GIT PULL] Kselftest fixes update for Linux 6.8-rc3

2024-01-30 Thread pr-tracker-bot
The pull request you sent on Tue, 30 Jan 2024 14:48:43 -0700: > git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest > tags/linux_kselftest-fixes-6.8-rc3 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/d1d873a9bfac44a9a455d2ec47b85ea66f7888b9 Thank

[GIT PULL] KUnit fixes update for Linux 6.8-rc3

2024-01-30 Thread Shuah Khan
Hi Linus, Please pull the following KUnit fixes update for Linux 6.8-rc3. This kunit fixes update for Linux 6.8-rc3 consists of NULL vs IS_ERR() bug fixes, documentation update, MAINTAINERS file update to add Rae Moar as a reviewer, and a fix to run test suites only after module initialization

Re: [PATCH 1/3] riscv: mm: Use hint address in mmap if available

2024-01-30 Thread kernel test robot
Hi Charlie, kernel test robot noticed the following build errors: [auto build test ERROR on 556e2d17cae620d549c5474b1ece053430cd50bc] url: https://github.com/intel-lab-lkp/linux/commits/Charlie-Jenkins/riscv-mm-Use-hint-address-in-mmap-if-available/20240130-084208 base

Re: [PATCH 0/3] riscv: mm: Use hint address in mmap if available

2024-01-30 Thread Charlie Jenkins
On Tue, Jan 30, 2024 at 05:04:55PM -0500, Stefan O'Rear wrote: > On Mon, Jan 29, 2024, at 9:13 PM, Charlie Jenkins wrote: > > On Mon, Jan 29, 2024 at 09:04:50PM -0500, Stefan O'Rear wrote: > >> On Mon, Jan 29, 2024, at 7:36 PM, Charlie Jenkins wrote: > >> > On riscv, mmap currently returns an

Re: [PATCH 0/3] riscv: mm: Use hint address in mmap if available

2024-01-30 Thread Stefan O'Rear
On Mon, Jan 29, 2024, at 9:13 PM, Charlie Jenkins wrote: > On Mon, Jan 29, 2024 at 09:04:50PM -0500, Stefan O'Rear wrote: >> On Mon, Jan 29, 2024, at 7:36 PM, Charlie Jenkins wrote: >> > On riscv, mmap currently returns an address from the largest address >> > space that can fit entirely inside of

Re: [PATCH v2 1/3] riscv: mm: Use hint address in mmap if available

2024-01-30 Thread Charlie Jenkins
On Wed, Jan 31, 2024 at 03:15:16AM +0800, Yangyu Chen wrote: > On Tue, 2024-01-30 at 11:04 -0800, Charlie Jenkins wrote: > > On riscv it is guaranteed that the address returned by mmap is less > > than > > the hint address. Allow mmap to return an address all the way up to > > addr, if provided,

[GIT PULL] Kselftest fixes update for Linux 6.8-rc3

2024-01-30 Thread Shuah Khan
Hi Linus, Please pull the following kselftest fixes update for Linux 6.8-rc3. This kselftest fixes update for Linux 6.8-rc3 consists of three fixes to livepatch, rseq, and seccomp tests. diff is attached thanks, -- Shuah The

Re: [PATCH 1/3] riscv: mm: Use hint address in mmap if available

2024-01-30 Thread kernel test robot
Hi Charlie, kernel test robot noticed the following build errors: [auto build test ERROR on 556e2d17cae620d549c5474b1ece053430cd50bc] url: https://github.com/intel-lab-lkp/linux/commits/Charlie-Jenkins/riscv-mm-Use-hint-address-in-mmap-if-available/20240130-084208 base

kselftest/fixes kselftest-lkdtm: 2 runs, 1 regressions (v6.8-rc1-4-gb54761f6e9773)

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

kselftest/fixes kselftest-lib: 4 runs, 2 regressions (v6.8-rc1-4-gb54761f6e9773)

2024-01-30 Thread kernelci.org bot
kselftest/fixes kselftest-lib: 4 runs, 2 regressions (v6.8-rc1-4-gb54761f6e9773) Regressions Summary --- platform | arch | lab | compiler | defconfig | regressions

kselftest/fixes kselftest-seccomp: 3 runs, 1 regressions (v6.8-rc1-4-gb54761f6e9773)

2024-01-30 Thread kernelci.org bot
kselftest/fixes kselftest-seccomp: 3 runs, 1 regressions (v6.8-rc1-4-gb54761f6e9773) Regressions Summary --- platform | arch | lab | compiler | defconfig | regressions

kselftest/fixes kselftest-cpufreq: 4 runs, 2 regressions (v6.8-rc1-4-gb54761f6e9773)

2024-01-30 Thread kernelci.org bot
kselftest/fixes kselftest-cpufreq: 4 runs, 2 regressions (v6.8-rc1-4-gb54761f6e9773) Regressions Summary --- platform | arch | lab | compiler | defconfig | regressions

Re: [PATCH net 3/3] selftests: net: don't access /dev/stdout in pmtu.sh

2024-01-30 Thread Guillaume Nault
On Tue, Jan 30, 2024 at 06:47:18PM +0100, Paolo Abeni wrote: > When running the pmtu.sh via the kselftest infra, accessing > /dev/stdout gives unexpected results: > # dd: failed to open '/dev/stdout': Device or resource busy > # TEST: IPv4, bridged vxlan4: PMTU exceptions

Re: [PATCH net 2/3] selftests: net: fix available tunnels detection

2024-01-30 Thread Guillaume Nault
On Tue, Jan 30, 2024 at 06:47:17PM +0100, Paolo Abeni wrote: > The pmtu.sh test tries to detect the tunnel protocols available > in the running kernel and properly skip the unsupported cases. > > In a few more complex setup, such detection is unsuccessful, as > the script currently ignores some

Re: [PATCH net 1/3] selftests: net: add missing config for pmtu.sh tests

2024-01-30 Thread Guillaume Nault
On Tue, Jan 30, 2024 at 06:47:16PM +0100, Paolo Abeni wrote: > The mentioned test uses a few Kconfig still missing the > net config, add them. > > Before: > # Error: Specified qdisc kind is unknown. > # Error: Specified qdisc kind is unknown. > # Error: Qdisc not classful. > # We have an

Re: [PATCH v2 1/3] riscv: mm: Use hint address in mmap if available

2024-01-30 Thread Yangyu Chen
On Tue, 2024-01-30 at 11:04 -0800, Charlie Jenkins wrote: > On riscv it is guaranteed that the address returned by mmap is less > than > the hint address. Allow mmap to return an address all the way up to > addr, if provided, rather than just up to the lower address space. > > This provides a

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

2024-01-30 Thread David Ahern
On 1/30/24 10:47 AM, Paolo Abeni wrote: > This series try to address CI failures for the pmtu.sh tests. It > does _not_ attempt to enable all the currently skipped cases, to > avoid adding more entropy. > > Tested with: > > make -C tools/testing/selftests/ TARGETS=net install > vng --build

[PATCH v2 3/3] docs: riscv: Define behavior of mmap

2024-01-30 Thread Charlie Jenkins
Define mmap on riscv to not provide an address that uses more bits than the hint address, if provided. Signed-off-by: Charlie Jenkins --- Documentation/arch/riscv/vm-layout.rst | 16 +--- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git

[PATCH v2 2/3] selftests: riscv: Generalize mm selftests

2024-01-30 Thread Charlie Jenkins
The behavior of mmap on riscv is defined to not provide an address that uses more bits than the hint address, if provided. Make the tests reflect that. Signed-off-by: Charlie Jenkins --- tools/testing/selftests/riscv/mm/mmap_bottomup.c | 20 + tools/testing/selftests/riscv/mm/mmap_default.c

[PATCH v2 0/3] riscv: mm: Use hint address in mmap if available

2024-01-30 Thread Charlie Jenkins
On riscv, mmap currently returns an address from the largest address space that can fit entirely inside of the hint address. This makes it such that the hint address is almost never returned. This patch raises the mappable area up to and including the hint address. This allows mmap to often return

[PATCH v2 1/3] riscv: mm: Use hint address in mmap if available

2024-01-30 Thread Charlie Jenkins
On riscv it is guaranteed that the address returned by mmap is less than the hint address. Allow mmap to return an address all the way up to addr, if provided, rather than just up to the lower address space. This provides a performance benefit as well, allowing mmap to exit after checking that

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

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

Re: [PATCH 1/3] selftests: zswap: add zswap selftest file to zswap maintainer entry

2024-01-30 Thread Yosry Ahmed
On Tue, Jan 30, 2024 at 10:37:15AM -0800, Nhat Pham wrote: > On Mon, Jan 29, 2024 at 5:02 PM Yosry Ahmed wrote: > > > > On Mon, Jan 29, 2024 at 02:45:40PM -0800, Nhat Pham wrote: > > > Make it easier for contributors to find the zswap maintainers when they > > > update the zswap tests. > > > > >

Re: [PATCH 3/3] selftests: add test for zswapin

2024-01-30 Thread Yosry Ahmed
On Tue, Jan 30, 2024 at 10:31:24AM -0800, Nhat Pham wrote: > On Mon, Jan 29, 2024 at 5:24 PM Yosry Ahmed wrote: > > [..] > > > -static int allocate_bytes(const char *cgroup, void *arg) > > > +static int allocate_bytes_and_read(const char *cgroup, void *arg, bool > > > read) > > > { > > >

Re: [PATCH net] selftests: net: add missing config for big tcp tests

2024-01-30 Thread Paolo Abeni
On Mon, 2024-01-29 at 08:39 -0800, Jakub Kicinski wrote: > On Mon, 29 Jan 2024 17:31:33 +0100 Paolo Abeni wrote: > > Uhm... while the self-test doesn't emit anymore the message related to > > the missing modules, it still fails in the CI env and I can't reproduce > > the failures in my local env

Re: [PATCH 1/3] selftests: zswap: add zswap selftest file to zswap maintainer entry

2024-01-30 Thread Nhat Pham
On Mon, Jan 29, 2024 at 5:02 PM Yosry Ahmed wrote: > > On Mon, Jan 29, 2024 at 02:45:40PM -0800, Nhat Pham wrote: > > Make it easier for contributors to find the zswap maintainers when they > > update the zswap tests. > > > > Signed-off-by: Nhat Pham > > I guess I had to check the zswap tests at

Re: [PATCH 3/3] selftests: add test for zswapin

2024-01-30 Thread Nhat Pham
On Mon, Jan 29, 2024 at 5:24 PM Yosry Ahmed wrote: > > On Mon, Jan 29, 2024 at 02:45:42PM -0800, Nhat Pham wrote: > > We recently encountered a kernel crash on the zswapin path in our > > internal kernel, which went undetected because of a lack of test > > coverage for this path. Add a selftest

[PATCH net 3/3] selftests: net: don't access /dev/stdout in pmtu.sh

2024-01-30 Thread Paolo Abeni
When running the pmtu.sh via the kselftest infra, accessing /dev/stdout gives unexpected results: # dd: failed to open '/dev/stdout': Device or resource busy # TEST: IPv4, bridged vxlan4: PMTU exceptions [FAIL] Let dd use directly the standard output to fix the above:

[PATCH net 2/3] selftests: net: fix available tunnels detection

2024-01-30 Thread Paolo Abeni
The pmtu.sh test tries to detect the tunnel protocols available in the running kernel and properly skip the unsupported cases. In a few more complex setup, such detection is unsuccessful, as the script currently ignores some intermediate error code at setup time. Before: # which: no nettest in

[PATCH net 1/3] selftests: net: add missing config for pmtu.sh tests

2024-01-30 Thread Paolo Abeni
The mentioned test uses a few Kconfig still missing the net config, add them. Before: # Error: Specified qdisc kind is unknown. # Error: Specified qdisc kind is unknown. # Error: Qdisc not classful. # We have an error talking to the kernel # Error: Qdisc not classful. # We have an

[PATCH net 0/3] selftests: net: a few pmtu.sh fixes

2024-01-30 Thread Paolo Abeni
This series try to address CI failures for the pmtu.sh tests. It does _not_ attempt to enable all the currently skipped cases, to avoid adding more entropy. Tested with: make -C tools/testing/selftests/ TARGETS=net install vng --build --config tools/testing/selftests/net/config vng --run .

Re: [PATCH net-next] selftests/net: calibrate fq_band_pktlimit

2024-01-30 Thread Simon Horman
On Fri, Jan 26, 2024 at 09:33:03PM -0500, Willem de Bruijn wrote: > From: Willem de Bruijn > > This test validates per-band packet limits in FQ. Packets are dropped > rather than enqueued if the limit for their band is reached. > > This test is timing sensitive. It queues packets in FQ with a

Re: [PATCH net-next] selftests/net: calibrate txtimestamp

2024-01-30 Thread Simon Horman
On Fri, Jan 26, 2024 at 09:31:51PM -0500, Willem de Bruijn wrote: > From: Willem de Bruijn > > The test sends packets and compares enqueue, transmit and Ack > timestamps with expected values. It installs netem delays to increase > latency between these points. > > The test proves flaky in

Re: [PATCH v2 3/7] x86/of: Unconditionally call unflatten_and_copy_device_tree()

2024-01-30 Thread Saurabh Singh Sengar
On Mon, Jan 29, 2024 at 04:45:02PM -0800, Stephen Boyd wrote: > Call this function unconditionally so that we can populate an empty DTB > on platforms that don't boot with a firmware provided or builtin DTB. > > Cc: Rob Herring > Cc: Frank Rowand > Cc: Thomas Gleixner > Cc: Ingo Molnar > Cc:

[PATCH net-next] selftests: net: add missing config for GENEVE

2024-01-30 Thread Matthias May
l2_tos_ttl_inherit.sh verifies the inheritance of tos and ttl for GRETAP, VXLAN and GENEVE. Before testing it checks if the required module is available and if not skips the tests accordingly. Currently only GRETAP and VXLAN are tested because the GENEVE module is missing. Signed-off-by: Matthias