[PATCH net-next v2 6/8] selftests: net: lib: Move checks from forwarding/lib.sh here

2024-10-24 Thread Petr Machata
For logging to be useful, something has to set RET and retmsg by calling ret_set_ksft_status(). There is a suite of functions to that end in forwarding/lib: check_err, check_fail et.al. Move them to net/lib.sh so that every net test can use them. Existing lib.sh users might be using these same nam

[PATCH v2] lib/math: Add int_sqrt test suite

2024-10-24 Thread Luis Felipe Hernandez
Adds test suite for integer based square root function. The test suite is designed to verify the correctness of the int_sqrt math library function. Signed-off-by: Luis Felipe Hernandez --- lib/Kconfig.debug | 16 +++ lib/math/Makefile | 1 + lib/math/tests/M

Re: [PATCH v2 3/5] arm64: signal: Improve POR_EL0 handling to avoid uaccess failures

2024-10-24 Thread Kevin Brodsky
On 24/10/2024 12:59, Catalin Marinas wrote: > On Wed, Oct 23, 2024 at 04:05:09PM +0100, Kevin Brodsky wrote: >> +/* >> + * Save the unpriv access state into ua_state and reset it to disable any >> + * restrictions. >> + */ >> +static void save_reset_user_access_state(struct user_access_state *ua_st

[PATCH] selftests: Add kselftest framework to the testfile

2024-10-24 Thread Shivam Chaudhary
This patch updates the existing test that checks for `open(O_TMPFILE)` and `linkat()` behaviors in mount namespaces to use the kselftest framework. This includes the following changes: - Replaced direct error handling with `ksft_test_result_*` macros for better reporting of test outcomes. - A

[PATCH net-next v2 8/8] selftests: net: fdb_notify: Add a test for FDB notifications

2024-10-24 Thread Petr Machata
Check that only one notification is produced for various FDB edit operations. Regarding the ip_link_add() and ip_link_master() helpers. This pattern of action plus corresponding defer is bound to come up often, and a dedicated vocabulary to capture it will be handy. tunnel_create() and vlan_create

[PATCH net-next v2 4/8] selftests: net: lib: Move logging from forwarding/lib.sh here

2024-10-24 Thread Petr Machata
Many net selftests invent their own logging helpers. These really should be in a library sourced by these tests. Currently forwarding/lib.sh has a suite of perfectly fine logging helpers, but sourcing a forwarding/ library from a higher-level directory smells of layering violation. In this patch, m

Re: [PATCH v2 3/5] arm64: signal: Improve POR_EL0 handling to avoid uaccess failures

2024-10-24 Thread Dave Martin
On Thu, Oct 24, 2024 at 04:42:10PM +0100, Catalin Marinas wrote: > On Thu, Oct 24, 2024 at 04:55:48PM +0200, Kevin Brodsky wrote: > > On 24/10/2024 12:59, Catalin Marinas wrote: > > > On Wed, Oct 23, 2024 at 04:05:09PM +0100, Kevin Brodsky wrote: > > >> +/* > > >> + * Save the unpriv access state i

Re: [PATCH] lib/math: Add int_sqrt test suite

2024-10-24 Thread Andy Shevchenko
On Thu, Oct 24, 2024 at 03:17:28PM -0400, Luis Felipe Hernandez wrote: > Adds test suite for integer based square root function. > > The test suite is designed to verify the correctness of the int_sqrt > math library function. ... > obj-$(CONFIG_TEST_DIV64) += test_div64.o > obj-$(CONFIG_T

Re: [PATCH] selftests: Add kselftest framework to the testfile

2024-10-24 Thread Shuah Khan
On 10/24/24 10:55, Shivam Chaudhary wrote: This patch updates the existing test that checks for `open(O_TMPFILE)` and `linkat()` behaviors in mount namespaces to use the kselftest framework. This includes the following changes: - Replaced direct error handling with `ksft_test_result_*` macros

Re: [PATCH net-next 4/8] selftests: net: lib: Move logging from forwarding/lib.sh here

2024-10-24 Thread Petr Machata
Shuah Khan writes: > On 10/22/24 08:50, Petr Machata wrote: >> Many net selftests invent their own logging helpers. These really should be >> in a library sourced by these tests. Currently forwarding/lib.sh has a >> suite of perfectly fine logging helpers, but sourcing a forwarding/ library >>

Re: [PATCH v2 3/5] arm64: signal: Improve POR_EL0 handling to avoid uaccess failures

2024-10-24 Thread Catalin Marinas
On Wed, Oct 23, 2024 at 04:05:09PM +0100, Kevin Brodsky wrote: > diff --git a/arch/arm64/kernel/signal.c b/arch/arm64/kernel/signal.c > index f5fb48dabebe..d2e4e50977ae 100644 > --- a/arch/arm64/kernel/signal.c > +++ b/arch/arm64/kernel/signal.c > @@ -66,9 +66,63 @@ struct rt_sigframe_user_layout {

Re: [PATCH V6 9/9] iommufd: map file selftest

2024-10-24 Thread Steven Sistare
cc linux-selftest for this one patch of a series. No framework changes, only added new cases to existing iommufd selftests. The full series is here: https://lore.kernel.org/linux-iommu/1729783554-56916-1-git-send-email-steven.sist...@oracle.com/ - Steve On 10/24/2024 11:25 AM, Steve Sistare w

[PATCH] lib/math: Add int_sqrt test suite

2024-10-24 Thread Luis Felipe Hernandez
Adds test suite for integer based square root function. The test suite is designed to verify the correctness of the int_sqrt math library function. Signed-off-by: Luis Felipe Hernandez --- lib/Kconfig.debug | 17 lib/math/Makefile | 1 + lib/math/tests/

[PATCH bpf-next] selftests/bpf: Use make/remove netns helpers in mptcp

2024-10-24 Thread Geliang Tang
From: Geliang Tang New netns selftest helpers make_netns() and remove_netns() has been added in network_helpers.c, let's use them in mptcp selftests too. Signed-off-by: Geliang Tang Reviewed-by: Matthieu Baerts (NGI0) --- tools/testing/selftests/bpf/prog_tests/mptcp.c | 18 --