[PATCHv7 RESEND wireguard 2/2] wireguard: selftests: update to using nft for qemu test

2025-05-27 Thread Hangbin Liu
Since we will replace iptables with nft for wireguard netns testing, let's also convert the qemu test to use nft at the same time. Co-developed-by: Phil Sutter Signed-off-by: Phil Sutter Signed-off-by: Hangbin Liu --- .../testing/selftests/wireguard/qemu/Makefile | 36 ++- .../

Re: [PATCH 0/3] kselftest/arm64: Update sve-ptrace for ABI changes

2025-05-26 Thread Mark Rutland
On Fri, May 23, 2025 at 04:27:11PM +0100, Mark Brown wrote: > Mark Rutland's recent SME fixes updated the SME ABI to reject any > attempt to write FPSIMD register data via the streaming mode SVE > register set but did not update the sve-ptrace test to take account of > this, resu

Re: [PATCH] selftests/cpufreq: Fix cpufreq basic read and update testcases

2025-05-26 Thread Sapkal, Swapnil
Hi Shuah, On 5/22/2025 8:47 PM, Shuah Khan wrote: On 5/19/25 01:58, Viresh Kumar wrote: On 30-04-25, 17:14, Swapnil Sapkal wrote: In cpufreq basic selftests, one of the testcases is to read all cpufreq sysfs files and print the values. This testcase assumes all the cpufreq sysfs files have rea

Re: [PATCH] selftests/cpufreq: Fix cpufreq basic read and update testcases

2025-05-26 Thread Sapkal, Swapnil
Hi Viresh, On 5/22/2025 3:15 PM, Viresh Kumar wrote: On 22-05-25, 14:07, Sapkal, Swapnil wrote: Initially I tried the same, but it does not work properly with the root user. Hmm, Tried chatgpt now and it says this should work: if ! cat "$1/$file" 2>/dev/null; then printf "$file is not

[GIT PULL] Kselftest next update for Linux 6.16-rc1

2025-05-23 Thread Shuah Khan
Hi Linus, Please pull the following kselftest next update for Linux 6.16-rc1. -- Fixes - cpufreq test to not double suspend in rtcwake case. - compile error in pid_namespace test. - run_kselftest.sh to use readlink if realpath is not available. - cpufreq basic read and update

[GIT PULL] kunit next update for Linux 6.16-rc1

2025-05-23 Thread Shuah Khan
Hi Linus, Please pull the following kunit next update for Linux 6.16-rc1. - Enables qemu_config for riscv32, sparc 64-bit, PowerPC 32-bit BE and 64-bit LE. - Enables CONFIG_SPARC32 to clearly differentiate between sparc 32-bit and 64-bit configurations. - Enables CONFIG_CPU_BIG_ENDIAN to

[PATCH 0/3] kselftest/arm64: Update sve-ptrace for ABI changes

2025-05-23 Thread Mark Brown
Mark Rutland's recent SME fixes updated the SME ABI to reject any attempt to write FPSIMD register data via the streaming mode SVE register set but did not update the sve-ptrace test to take account of this, resulting in spurious failures. Update the test for this, and also fix an

Re: [PATCH] selftests/cpufreq: Fix cpufreq basic read and update testcases

2025-05-22 Thread Shuah Khan
On 5/19/25 01:58, Viresh Kumar wrote: On 30-04-25, 17:14, Swapnil Sapkal wrote: In cpufreq basic selftests, one of the testcases is to read all cpufreq sysfs files and print the values. This testcase assumes all the cpufreq sysfs files have read permissions. However certain cpufreq sysfs files (

Re: [PATCH] selftests/cpufreq: Fix cpufreq basic read and update testcases

2025-05-22 Thread Viresh Kumar
On 22-05-25, 14:07, Sapkal, Swapnil wrote: > Initially I tried the same, but it does not work properly with the root user. Hmm, Tried chatgpt now and it says this should work: if ! cat "$1/$file" 2>/dev/null; then printf "$file is not readable\n" fi - This attempts to read the file. - If it

Re: [PATCH] selftests/cpufreq: Fix cpufreq basic read and update testcases

2025-05-22 Thread Sapkal, Swapnil
Hi Viresh, On 5/19/2025 1:28 PM, Viresh Kumar wrote: On 30-04-25, 17:14, Swapnil Sapkal wrote: In cpufreq basic selftests, one of the testcases is to read all cpufreq sysfs files and print the values. This testcase assumes all the cpufreq sysfs files have read permissions. However certain cpufr

Re: [PATCH] selftests/cpufreq: Fix cpufreq basic read and update testcases

2025-05-19 Thread Viresh Kumar
On 30-04-25, 17:14, Swapnil Sapkal wrote: > In cpufreq basic selftests, one of the testcases is to read all cpufreq > sysfs files and print the values. This testcase assumes all the cpufreq > sysfs files have read permissions. However certain cpufreq sysfs files > (eg. stats/reset) are write only f

Re: [PATCH] MAINTAINERS: Update Zqiang's email address

2025-05-16 Thread Joel Fernandes
On 5/16/2025 7:20 AM, Zqiang wrote: > This patch updates Zqiang's email address to qiang.zh...@linux.dev. > > Signed-off-by: Zqiang Acked-by: Joel Fernandes Will apply for 6.16. Thanks, - Joel > --- > MAINTAINERS | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a

[PATCH] MAINTAINERS: Update Zqiang's email address

2025-05-16 Thread Zqiang
This patch updates Zqiang's email address to qiang.zh...@linux.dev. Signed-off-by: Zqiang --- MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index 8eb7e057b8f9..901a54a633f0 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -20298,7 +20298,7

Re: [PATCH] MAINTAINERS: update Alexey Makhalov's email address

2025-04-30 Thread Alexey Makhalov
Hi Borislav, I see this patch didn't get a traction. Can you to merge this fix in x86 tree, please? Thanks, --Alexey On 3/17/25 5:40 PM, Alexey Makhalov wrote: Fix a typo in an email address. Cc: sta...@vger.kernel.org Reported-by: Konstantin Ryabitsev Closes: https://lore.kernel.org/all/20

[PATCH] selftests/cpufreq: Fix cpufreq basic read and update testcases

2025-04-30 Thread Swapnil Sapkal
In cpufreq basic selftests, one of the testcases is to read all cpufreq sysfs files and print the values. This testcase assumes all the cpufreq sysfs files have read permissions. However certain cpufreq sysfs files (eg. stats/reset) are write only files and this testcase errors out when it is not a

Re: [GIT PULL] kunit fixes update for Linux 6.15-rc3

2025-04-18 Thread pr-tracker-bot
The pull request you sent on Fri, 18 Apr 2025 11:36:35 -0600: > git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest > tags/linux_kselftest-kunit-fixes-6.15-rc3 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/7f424c6690df7a5e807548371b9546d51546fc54 Tha

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

2025-04-18 Thread pr-tracker-bot
The pull request you sent on Fri, 18 Apr 2025 11:23:27 -0600: > git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest > tags/linux_kselftest-fixes-6.15-rc3 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/338d40ceef38d9a36b48164e22768b40d6f89701 Thank you

[GIT PULL] kunit fixes update for Linux 6.15-rc3

2025-04-18 Thread Shuah Khan
Hi Linus, Please pull the following kunit fixes update for Linux 6.15-rc3. Fixes arch sh kunit qemu_configs script sh.py to honor kunit cmdline. diff is attached. thanks, -- Shuah The following changes since commit

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

2025-04-18 Thread Shuah Khan
Hi Linus, Please pull the following kselftest fixes update for Linux 6.15-rc3. Fixes dynevent_limitations.tc test failure on dash by detecting and handling bash and dash differences in evaluating \\. diff is attached. thanks, -- Shuah

[PATCH bpf-next v1 2/2] selftests/bpf: Add link update test for cgroup_storage

2025-04-18 Thread Jiayuan Chen
Add link update test for cgroup_storage. './test_progs -a cgroup_storage_update' test_cgroup_storage_update:PASS:create cgroup 0 nsec setup_network:PASS:ip netns add cgroup_storage_ns 0 nsec setup_network:PASS:open netns 0 nsec setup_network:PASS:ip link set lo

[PATCH 1/7] MAINTAINERS: Update Joel's email address

2025-04-18 Thread Joel Fernandes
Update MAINTAINERS file to reflect changes to Joel's email address for upstream work. Reviewed-by: Paul E. McKenney Signed-off-by: Joel Fernandes --- MAINTAINERS | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 96b827049501..8eb7e05

[PATCH v6 08/30] KVM: selftests: TDX: Update load_td_memory_region() for VM memory backed by guest memfd

2025-04-14 Thread Sagi Shahar
From: Ackerley Tng If guest memory is backed by restricted memfd + UPM is being used, hence encrypted memory region has to be registered + Can avoid making a copy of guest memory before getting TDX to initialize the memory region Signed-off-by: Ackerley Tng Signed-off-by: Sagi Shahar ---

[PATCH v6 05/30] KVM: selftests: Update kvm_init_vm_address_properties() for TDX

2025-04-14 Thread Sagi Shahar
From: Isaku Yamahata Let kvm_init_vm_address_properties() initialize vm->arch.{s_bit, tag_mask} similar to SEV. Set shared bit position based on guest maximum physical address width instead of maximum physical address width, because that is what KVM uses, refer to setup_tdparams_eptp_controls(),

[PATCHv6 net-next 2/2] wireguard: selftests: update to using nft for qemu test

2025-04-10 Thread Hangbin Liu
Since we will replace iptables with nft for wireguard netns testing, let's also convert the qemu test to use nft at the same time. Co-developed-by: Phil Sutter Signed-off-by: Phil Sutter Signed-off-by: Hangbin Liu --- .../testing/selftests/wireguard/qemu/Makefile | 36 ++- .../

Re: [PATCH v3 2/4] cxl: Update Soft Reserved resources upon region creation

2025-04-10 Thread Bowman, Terry
On 4/4/2025 8:32 AM, Jonathan Cameron wrote: > On Thu, 3 Apr 2025 13:33:13 -0500 > Terry Bowman wrote: > >> From: Nathan Fontenot >> >> Update handling of SOFT RESERVE iomem resources that intersect with >> CXL region resources to remove intersections from t

Re: [GIT PULL] Kselftest fixes update for Linux 6.15-rc2

2025-04-09 Thread pr-tracker-bot
The pull request you sent on Wed, 9 Apr 2025 16:13:39 -0600: > git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest > tags/linux_kselftest-fixes-6.15-rc2 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/3b07108ada81a8ebcebf1fe61367b4e436c895bd Thank you!

[GIT PULL] Kselftest fixes update for Linux 6.15-rc2

2025-04-09 Thread Shuah Khan
Hi Linus, Please pull the following kselftest fixes update for Linux 6.15-rc2 Fixes tpm2, futex, and mincore tests. Creates a dedicated .gitignore for tpm2 Details: selftests: tpm2: test_smoke: use POSIX-conformant expression operator selftests/futex: futex_waitv wouldblock test should fail

[GIT PULL] kunit fixes update for Linux 6.15-rc2

2025-04-08 Thread Shuah Khan
Hi Linus, Please pull the following kunit fixes update for Linux 6.15-rc2 Fixes tool to report test count in case of a late test plan when tests are specified before the test plan. Fixes spelling error in the commit that went into 6.15-rc1. diff is attached. thanks, -- Shuah

Re: [GIT PULL] kunit fixes update for Linux 6.15-rc2

2025-04-08 Thread pr-tracker-bot
The pull request you sent on Tue, 8 Apr 2025 16:31:50 -0600: > git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest > tags/linux_kselftest-kunit-6.15-rc2 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/a24588245776dafc227243a01bfbeb8a59bafba9 Thank you!

Re: [PATCHv4 RESEND net-next 2/2] selftests: wireguard: update to using nft for qemu test

2025-04-05 Thread Hangbin Liu
On Fri, Mar 21, 2025 at 12:42:42PM +0100, Phil Sutter wrote: > Hi Hangbin, > > On Fri, Mar 21, 2025 at 10:40:25AM +, Hangbin Liu wrote: > > Hi Jason, Phil, > > On Wed, Mar 19, 2025 at 05:15:41PM +0100, Jason A. Donenfeld wrote: > > > On Mon, Jan 06, 2025 at 08:10:43AM +, Hangbin Liu wrote:

[PATCH] remoteproc: sysmon: Update qcom_add_sysmon_subdev() comment

2025-04-05 Thread Dan Carpenter
The comment says the qcom_add_sysmon_subdev() returns NULL on error but it actually returns error pointers. Signed-off-by: Dan Carpenter --- drivers/remoteproc/qcom_sysmon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/remoteproc/qcom_sysmon.c b/drivers/remoteproc/

[PATCH 08/10] selftest/cgroup: Update test_cpuset_prs.sh to use | as effective CPUs and state separator

2025-04-04 Thread Waiman Long
C1-3:X2-3:S+:P2 C2-3:X3:P2 \ - . . . . . 0 A1:1,A2:2,A3:3 A1:P2,A2:P2,A3:P2 1-3" + . . . . . 0 A1:1|A2:2|A3:3 A1:P2|A2:P2|A3:P2 1-3"

Re: [PATCH v3 2/4] cxl: Update Soft Reserved resources upon region creation

2025-04-04 Thread kernel test robot
: aae0594a7053c60b82621136257c8b648c67b512 patch link: https://lore.kernel.org/r/20250403183315.286710-3-terry.bowman%40amd.com patch subject: [PATCH v3 2/4] cxl: Update Soft Reserved resources upon region creation config: hexagon-randconfig-001-20250404 (https://download.01.org/0day-ci/archive/20250404

Re: [PATCH v3 2/4] cxl: Update Soft Reserved resources upon region creation

2025-04-04 Thread Jonathan Cameron
On Thu, 3 Apr 2025 13:33:13 -0500 Terry Bowman wrote: > From: Nathan Fontenot > > Update handling of SOFT RESERVE iomem resources that intersect with > CXL region resources to remove intersections from the SOFT RESERVE > resources. The current approach of leaving SOFT RESERVE re

[PATCH v3 2/4] cxl: Update Soft Reserved resources upon region creation

2025-04-03 Thread Terry Bowman
From: Nathan Fontenot Update handling of SOFT RESERVE iomem resources that intersect with CXL region resources to remove intersections from the SOFT RESERVE resources. The current approach of leaving SOFT RESERVE resources as is can cause failures during hotplug replace of CXL devices because

[PATCH 06/10] cgroup/cpuset: Code cleanup and comment update

2025-03-30 Thread Waiman Long
/kernel/cgroup/cpuset.c @@ -65,7 +65,13 @@ static const char * const perr_strings[] = { }; /* - * Exclusive CPUs distributed out to sub-partitions of top_cpuset + * For local partitions, update to subpartitions_cpus & isolated_cpus is done + * in update_parent_effective_cpumask(). For re

[PATCH 02/10] cgroup/cpuset: Fix incorrect isolated_cpus update in update_parent_effective_cpumask()

2025-03-30 Thread Waiman Long
Before commit f0af1bfc27b5 ("cgroup/cpuset: Relax constraints to partition & cpus changes"), a cpuset partition cannot be enabled if not all the requested CPUs can be granted from the parent cpuset. After that commit, a cpuset partition can be created even if the requested exclusive CPUs contain CP

Re: [GIT PULL] kunit next update for Linux 6.15-rc1

2025-03-27 Thread pr-tracker-bot
The pull request you sent on Wed, 26 Mar 2025 21:05:06 -0600: > git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest > tags/linux_kselftest-kunit-6.15-rc1 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/a10c7949adf94356e56d5c8878f6fc3f25bd0c15 Thank you

Re: [GIT PULL] Kselftest next update for Linux 6.15-rc1

2025-03-27 Thread pr-tracker-bot
The pull request you sent on Wed, 26 Mar 2025 19:56:31 -0600: > git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest > tags/linux_kselftest-next-6.15-rc1 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/8e324a5c9849e4a8225e38facdcc1a60faa4227a Thank you!

Re: [PATCHv4 RESEND net-next 2/2] selftests: wireguard: update to using nft for qemu test

2025-03-27 Thread Phil Sutter
On Fri, Mar 21, 2025 at 12:45:17PM +, Hangbin Liu wrote: > On Fri, Mar 21, 2025 at 12:42:42PM +0100, Phil Sutter wrote: > > Hi Hangbin, > > > > On Fri, Mar 21, 2025 at 10:40:25AM +, Hangbin Liu wrote: > > > Hi Jason, Phil, > > > On Wed, Mar 19, 2025 at 05:15:41PM +0100, Jason A. Donenfeld

[GIT PULL] kunit next update for Linux 6.15-rc1

2025-03-26 Thread Shuah Khan
Hi Linus, Please pull the following kunit next update for Linux 6.15-rc1. kunit tool: - Changes to kunit tool to use qboot on QEMU x86_64, and build GDB scripts. - Fixes kunit tool bug in parsing test plan. - Adds test to kunit tool to check parsing late test plan. kunit: - Clarifies

[GIT PULL] Kselftest next update for Linux 6.15-rc1

2025-03-26 Thread Shuah Khan
Hi Linus, Please pull the following kselftest next update for Linux 6.15-rc1. Fixes bugs and cleans up code in tracing, ftrace, and user_events tests. Adds missing executables to ftrace gitignore. diff is attached. thanks, -- Shuah

[PATCHv5 net-next 2/2] wireguard: selftests: update to using nft for qemu test

2025-03-22 Thread Hangbin Liu
Since we will replace iptables with nft for wireguard netns testing, let's also convert the qemu test to use nft at the same time. Co-developed-by: Phil Sutter Signed-off-by: Phil Sutter Signed-off-by: Hangbin Liu --- .../testing/selftests/wireguard/qemu/Makefile | 36 ++- .../

Re: [PATCHv4 RESEND net-next 2/2] selftests: wireguard: update to using nft for qemu test

2025-03-22 Thread Hangbin Liu
On Fri, Mar 21, 2025 at 03:40:20PM +0100, Phil Sutter wrote: > On Fri, Mar 21, 2025 at 12:45:17PM +, Hangbin Liu wrote: > > On Fri, Mar 21, 2025 at 12:42:42PM +0100, Phil Sutter wrote: > > > Hi Hangbin, > > > > > > On Fri, Mar 21, 2025 at 10:40:25AM +, Hangbin Liu wrote: > > > > Hi Jason,

Re: [PATCHv4 RESEND net-next 2/2] selftests: wireguard: update to using nft for qemu test

2025-03-21 Thread Phil Sutter
Hi Hangbin, On Fri, Mar 21, 2025 at 10:40:25AM +, Hangbin Liu wrote: > Hi Jason, Phil, > On Wed, Mar 19, 2025 at 05:15:41PM +0100, Jason A. Donenfeld wrote: > > On Mon, Jan 06, 2025 at 08:10:43AM +, Hangbin Liu wrote: > > > + echo "file /bin/nft $(NFTABLES_PATH)/src/nft 755 0 0" >> $@ > >

Re: [PATCH] remoteproc: sysmon: Update qcom_add_sysmon_subdev() comment

2025-03-21 Thread Dmitry Baryshkov
On Fri, Mar 21, 2025 at 05:35:44PM +0300, Dan Carpenter wrote: > The comment says the qcom_add_sysmon_subdev() returns NULL on error but > it actually returns error pointers. > > Signed-off-by: Dan Carpenter > --- > drivers/remoteproc/qcom_sysmon.c | 2 +- > 1 file changed, 1 insertion(+), 1 del

Re: [PATCHv4 RESEND net-next 2/2] selftests: wireguard: update to using nft for qemu test

2025-03-21 Thread Jason A. Donenfeld
On Fri, Mar 21, 2025 at 12:45:17PM +, Hangbin Liu wrote: > On Fri, Mar 21, 2025 at 12:42:42PM +0100, Phil Sutter wrote: > > Hi Hangbin, > > > > On Fri, Mar 21, 2025 at 10:40:25AM +, Hangbin Liu wrote: > > > Hi Jason, Phil, > > > On Wed, Mar 19, 2025 at 05:15:41PM +0100, Jason A. Donenfeld

Re: [PATCHv4 RESEND net-next 2/2] selftests: wireguard: update to using nft for qemu test

2025-03-21 Thread Hangbin Liu
Hi Jason, Phil, On Wed, Mar 19, 2025 at 05:15:41PM +0100, Jason A. Donenfeld wrote: > On Mon, Jan 06, 2025 at 08:10:43AM +, Hangbin Liu wrote: > > + echo "file /bin/nft $(NFTABLES_PATH)/src/nft 755 0 0" >> $@ > > + echo "file /lib/libmnl.so.0 $(TOOLCHAIN_PATH)/lib/libmnl.so.0 755 0 0" > >

Re: [PATCH net-next v1 2/2] selftest: net: update proc_net_pktgen (add more imix_weights test cases)

2025-03-20 Thread Simon Horman
On Mon, Mar 17, 2025 at 10:04:01AM +0100, Peter Seiderer wrote: > Add more imix_weights test cases (for incomplete input). > > Signed-off-by: Peter Seiderer Reviewed-by: Simon Horman

Re: [PATCHv4 RESEND net-next 2/2] selftests: wireguard: update to using nft for qemu test

2025-03-19 Thread Jason A. Donenfeld
On Mon, Jan 06, 2025 at 08:10:43AM +, Hangbin Liu wrote: > + echo "file /bin/nft $(NFTABLES_PATH)/src/nft 755 0 0" >> $@ > + echo "file /lib/libmnl.so.0 $(TOOLCHAIN_PATH)/lib/libmnl.so.0 755 0 0" > >> $@ > + echo "file /lib/libnftnl.so.11 $(TOOLCHAIN_PATH)/lib/libnftnl.so.11 755 >

Re: [PATCH net v4 0/3] vsock/bpf: Handle races between sockmap update and connect() disconnecting

2025-03-19 Thread Michael S. Tsirkin
R-b [Stefano] > - Link to v1: > https://lore.kernel.org/r/20250307-vsock-trans-signal-race-v1-1-3aca3f771...@rbox.co > > --- > Michal Luczaj (3): > vsock/bpf: Fix EINTR connect() racing sockmap update > selftest/bpf: Add test for AF_VSOCK connect() racing

Re: [PATCH net v4 2/3] selftest/bpf: Add test for AF_VSOCK connect() racing sockmap update

2025-03-19 Thread Stefano Garzarella
On Mon, Mar 17, 2025 at 10:52:24AM +0100, Michal Luczaj wrote: Racing signal-interrupted connect() and sockmap update may result in an unconnected (and missing vsock transport) socket in a sockmap. Test spends 2 seconds attempting to reach WARN_ON_ONCE(). connect / state = SS_CONNECTED

[PATCH] MAINTAINERS: update Alexey Makhalov's email address

2025-03-17 Thread Alexey Makhalov
Fix a typo in an email address. Cc: sta...@vger.kernel.org Reported-by: Konstantin Ryabitsev Closes: https://lore.kernel.org/all/20240925-rational-succinct-vulture-cca9fb@lemur/T/ Signed-off-by: Alexey Makhalov --- MAINTAINERS | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff -

Re: [PATCH v1 18/19] Documentation/livepatch: Update documentation for state, callbacks, and shadow variables

2025-03-17 Thread Petr Mladek
Hi, I am sorry for the late reply. I have read the mail on Friday and then forgot to come back to it last Monday... On Fri 2025-03-07 10:50:42, Joe Lawrence wrote: > On 3/7/25 07:26, Petr Mladek wrote: > > On Thu 2025-03-06 17:54:41, Joe Lawrence wrote: > >> Finally, the patchset adds .is_shadow

[PATCH net v4 2/3] selftest/bpf: Add test for AF_VSOCK connect() racing sockmap update

2025-03-17 Thread Michal Luczaj
Racing signal-interrupted connect() and sockmap update may result in an unconnected (and missing vsock transport) socket in a sockmap. Test spends 2 seconds attempting to reach WARN_ON_ONCE(). connect / state = SS_CONNECTED / sock_map_update_elem if

[PATCH net v4 1/3] vsock/bpf: Fix EINTR connect() racing sockmap update

2025-03-17 Thread Michal Luczaj
_state = sk->sk_state == TCP_ESTABLISHED ? TCP_CLOSING : TCP_CLOSE; + if (sk->sk_state == TCP_ESTABLISHED) { + /* Might have raced with a sockmap update. */ + if (sk->sk_prot->unhash) +

[PATCH net v4 0/3] vsock/bpf: Handle races between sockmap update and connect() disconnecting

2025-03-17 Thread Michal Luczaj
re path of tripping the warning - Add a selftest - Collect R-b [Stefano] - Link to v1: https://lore.kernel.org/r/20250307-vsock-trans-signal-race-v1-1-3aca3f771...@rbox.co --- Michal Luczaj (3): vsock/bpf: Fix EINTR connect() racing sockmap update selftest/bpf: Add test for AF_VSOCK connec

Re: [PATCH net v3 2/3] selftest/bpf: Add test for AF_VSOCK connect() racing sockmap update

2025-03-17 Thread Michal Luczaj
On 3/17/25 09:23, Paolo Abeni wrote: > On 3/16/25 11:45 PM, Michal Luczaj wrote: >> Racing signal-interrupted connect() and sockmap update may result in an >> unconnected (and missing vsock transport) socket in a sockmap. >> >> Test spends 2 seconds attem

[PATCH net-next v1 2/2] selftest: net: update proc_net_pktgen (add more imix_weights test cases)

2025-03-17 Thread Peter Seiderer
Add more imix_weights test cases (for incomplete input). Signed-off-by: Peter Seiderer --- tools/testing/selftests/net/proc_net_pktgen.c | 44 +++ 1 file changed, 44 insertions(+) diff --git a/tools/testing/selftests/net/proc_net_pktgen.c b/tools/testing/selftests/net/proc_net_

Re: [PATCH net v3 2/3] selftest/bpf: Add test for AF_VSOCK connect() racing sockmap update

2025-03-17 Thread Paolo Abeni
On 3/16/25 11:45 PM, Michal Luczaj wrote: > Racing signal-interrupted connect() and sockmap update may result in an > unconnected (and missing vsock transport) socket in a sockmap. > > Test spends 2 seconds attempting to reach WARN_ON_ONCE(). > > connect > /

[PATCH net v3 0/3] vsock/bpf: Handle races between sockmap update and connect() disconnecting

2025-03-16 Thread Michal Luczaj
..@rbox.co --- Michal Luczaj (3): vsock/bpf: Fix EINTR connect() racing sockmap update selftest/bpf: Add test for AF_VSOCK connect() racing sockmap update vsock/bpf: Fix bpf recvmsg() racing transport reassignment net/vmw_vsock/af_vsock.c | 10 ++- net

[PATCH net v3 2/3] selftest/bpf: Add test for AF_VSOCK connect() racing sockmap update

2025-03-16 Thread Michal Luczaj
Racing signal-interrupted connect() and sockmap update may result in an unconnected (and missing vsock transport) socket in a sockmap. Test spends 2 seconds attempting to reach WARN_ON_ONCE(). connect / state = SS_CONNECTED / sock_map_update_elem if

[PATCH net v3 1/3] vsock/bpf: Fix EINTR connect() racing sockmap update

2025-03-16 Thread Michal Luczaj
_state = sk->sk_state == TCP_ESTABLISHED ? TCP_CLOSING : TCP_CLOSE; + if (sk->sk_state == TCP_ESTABLISHED) { + /* Might have raced with a sockmap update. */ + if (sk->sk_prot->unhash) +

Re: [PATCH 3/4] selftests: ntsync: update config

2025-03-14 Thread Elizabeth Figura
On Friday, 14 March 2025 02:14:53 CDT Su Hui wrote: > ntsync should be tested when CONFIG_NTSYNC is setting rather than > CONFIG_WINESYNC, correct this. > > Signed-off-by: Su Hui > --- > tools/testing/selftests/drivers/ntsync/config | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > di

[PATCH net v2 2/3] selftest/bpf: Add test for AF_VSOCK connect() racing sockmap update

2025-03-14 Thread Michal Luczaj
Racing signal-interrupted connect() and sockmap update may result in an unconnected (and missing vsock transport) socket in a sockmap. Test spends 2 seconds attempting to reach WARN_ON_ONCE(). connect / state = SS_CONNECTED / sock_map_update_elem if

[PATCH net v2 0/3] vsock/bpf: Handle races between sockmap update and connect() disconnecting

2025-03-14 Thread Michal Luczaj
kernel.org/r/20250307-vsock-trans-signal-race-v1-1-3aca3f771...@rbox.co --- Michal Luczaj (3): vsock/bpf: Fix EINTR connect() racing sockmap update selftest/bpf: Add test for AF_VSOCK connect() racing sockmap update vsock/bpf: Fix bpf recvmsg() racing transport reassignment net

[PATCH net v2 1/3] vsock/bpf: Fix EINTR connect() racing sockmap update

2025-03-14 Thread Michal Luczaj
_state = sk->sk_state == TCP_ESTABLISHED ? TCP_CLOSING : TCP_CLOSE; + if (sk->sk_state == TCP_ESTABLISHED) { + /* Might have raced with a sockmap update. */ + if (sk->sk_prot->unhash) +

[PATCH 3/4] selftests: ntsync: update config

2025-03-14 Thread Su Hui
ntsync should be tested when CONFIG_NTSYNC is setting rather than CONFIG_WINESYNC, correct this. Signed-off-by: Su Hui --- tools/testing/selftests/drivers/ntsync/config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/drivers/ntsync/config b/tools/test

Re: [PATCH v1 18/19] Documentation/livepatch: Update documentation for state, callbacks, and shadow variables

2025-03-07 Thread Joe Lawrence
On 3/7/25 07:26, Petr Mladek wrote: > On Thu 2025-03-06 17:54:41, Joe Lawrence wrote: >> >> With that in mind, a livepatch state could be thought of as an >> indication of "a context needing special handling in a (versioned) way". > > I am not sure about the word "context". But it might be because

Re: [PATCH v1 18/19] Documentation/livepatch: Update documentation for state, callbacks, and shadow variables

2025-03-07 Thread Petr Mladek
state` has been replaced with the > > "block_disable" flag for improved compatibility handling. > > - The "data" field has been removed from `struct klp_state`; shadow > > variables are now the recommended way to store state-related data. > > > >

Re: [PATCH v1 18/19] Documentation/livepatch: Update documentation for state, callbacks, and shadow variables

2025-03-06 Thread Joe Lawrence
handling. > - The "data" field has been removed from `struct klp_state`; shadow > variables are now the recommended way to store state-related data. > > This update ensures the documentation accurately describes the current > livepatch functionality. > > Signed-off-by

Re: [PATCH] MAINTAINERS: Update the MODULE SUPPORT section

2025-03-06 Thread Luis Chamberlain
On Thu, Mar 06, 2025 at 05:20:59PM +0100, Petr Pavlu wrote: > Change my role for MODULE SUPPORT from a reviewer to a maintainer. We > started to rotate its maintainership and I currently look after the modules > tree. This not being reflected in MAINTAINERS proved to confuse folks. > > Add lib/tes

Re: [PATCH] MAINTAINERS: Update the MODULE SUPPORT section

2025-03-06 Thread Steven Rostedt
On Thu, 6 Mar 2025 17:20:59 +0100 Petr Pavlu wrote: > Change my role for MODULE SUPPORT from a reviewer to a maintainer. We > started to rotate its maintainership and I currently look after the modules > tree. This not being reflected in MAINTAINERS proved to confuse folks. > > Add lib/tests/mo

[PATCH] MAINTAINERS: Update the MODULE SUPPORT section

2025-03-06 Thread Petr Pavlu
Change my role for MODULE SUPPORT from a reviewer to a maintainer. We started to rotate its maintainership and I currently look after the modules tree. This not being reflected in MAINTAINERS proved to confuse folks. Add lib/tests/module/ and tools/testing/selftests/module/ to maintained files. Th

Re: [PATCH net-next v4 4/4] dt-bindings: ieee802154: ca8210: Update polarity of the reset pin

2025-03-05 Thread Conor Dooley
On Wed, Mar 05, 2025 at 12:55:37PM +0200, Andy Shevchenko wrote: > The code has been updated to follow what datasheet says about > the polarity of the reset pin, which is active-low. Update > the device tree bindings accordingly. > > Signed-off-by: Andy Shevchenko > --

[PATCH net-next v4 4/4] dt-bindings: ieee802154: ca8210: Update polarity of the reset pin

2025-03-05 Thread Andy Shevchenko
The code has been updated to follow what datasheet says about the polarity of the reset pin, which is active-low. Update the device tree bindings accordingly. Signed-off-by: Andy Shevchenko --- Documentation/devicetree/bindings/net/ieee802154/ca8210.txt | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH rcu 09/10] rcu: Update TREE05.boot to test normal synchronize_rcu()

2025-03-04 Thread Boqun Feng
From: "Uladzislau Rezki (Sony)" Add extra parameters for rcutorture module. One is the "nfakewriters" which is set -1. There will be created number of test-kthreads which correspond to number of CPUs in a test system. Those threads randomly invoke synchronize_rcu() call. Apart of that "rcu_norma

[v3 PATCH 2/2] KVM: selftests: update guest_memfd write tests

2025-03-03 Thread Nikita Kalyazin
This is to reflect that the write syscall is now implemented for guest_memfd. Signed-off-by: Nikita Kalyazin --- .../testing/selftests/kvm/guest_memfd_test.c | 85 +-- 1 file changed, 79 insertions(+), 6 deletions(-) diff --git a/tools/testing/selftests/kvm/guest_memfd_test.c

Re: [PATCH v3 0/2 RESEND] update kselftest framework to check for required configs

2025-02-27 Thread Shuah Khan
On 2/26/25 22:29, Siddharth Menon wrote: Currently, kselftests does not have a generalised mechanism to skip compilation and run tests when required kernel configuration options are disabled. Skipping compile by default is not what we want to do. Tests are supposed to compile and run even when

[PATCH v4 2/3] rcu: Update TREE05.boot to test normal synchronize_rcu()

2025-02-27 Thread Uladzislau Rezki (Sony)
Add extra parameters for rcutorture module. One is the "nfakewriters" which is set -1. There will be created number of test-kthreads which correspond to number of CPUs in a test system. Those threads randomly invoke synchronize_rcu() call. Apart of that "rcu_normal" is set to 1, because it is spec

[PATCH v3 0/2 RESEND] update kselftest framework to check for required configs

2025-02-26 Thread Siddharth Menon
Currently, kselftests does not have a generalised mechanism to skip compilation and run tests when required kernel configuration options are disabled. This patch series adresses this issue by checking whether all required configs from selftest//config are enabled in the current kernel Siddharth M

[PATCH 2/3] selftests/damon/damon_nr_regions: set ops update for merge results check to 100ms

2025-02-25 Thread SeongJae Park
the max_nr_regions, but also sz_limit, though. It avoids merging region if that casn make region of size larger than sz_limit. In the test, sz_limit is set too small to achive the new max_nr_regions, unless it is updated for the new min_nr_regions. But the update is done only once per operations

[PATCH v3 2/3] rcu: Update TREE05.boot to test normal synchronize_rcu()

2025-02-25 Thread Uladzislau Rezki (Sony)
Add extra parameters for rcutorture module. One is the "nfakewriters" which is set -1. There will be created number of test-kthreads which correspond to number of CPUs in a test system. Those threads randomly invoke synchronize_rcu() call. Apart of that "rcu_normal" is set to 1, because it is spec

[PATCH v2 2/3] rcu: Update TREE05.boot to test normal synchronize_rcu()

2025-02-24 Thread Uladzislau Rezki (Sony)
Add extra parameters for rcutorture module. One is the "nfakewriters" which is set -1. There will be created number of test-kthreads which correspond to number of CPUs in a test system. Those threads randomly invoke synchronize_rcu() call. Apart of that "rcu_normal" is set to 1, because it is spec

[PATCH] MAINTAINERS: Update Joel's email address

2025-02-19 Thread Joel Fernandes
Update MAINTAINERS file to reflect changes to Joel's email address for upstream work. Signed-off-by: Joel Fernandes --- MAINTAINERS | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 6ff7ba6cc270..97aba6b60158 100644 --- a/MAINTAINERS

Re: [PATCH] MAINTAINERS: Update Joel's email address

2025-02-19 Thread Joel Fernandes
On 2/19/2025 10:18 AM, Boqun Feng wrote: > On Wed, Feb 19, 2025 at 05:23:08AM -0800, Paul E. McKenney wrote: >> On Wed, Feb 19, 2025 at 07:54:24AM -0500, Joel Fernandes wrote: >>> Update MAINTAINERS file to reflect changes to Joel's email address for >>> upst

Re: [PATCH] MAINTAINERS: Update Joel's email address

2025-02-19 Thread Boqun Feng
On Wed, Feb 19, 2025 at 05:23:08AM -0800, Paul E. McKenney wrote: > On Wed, Feb 19, 2025 at 07:54:24AM -0500, Joel Fernandes wrote: > > Update MAINTAINERS file to reflect changes to Joel's email address for > > upstream work. > > > > Signed-off-by: Joel

Re: [PATCH] MAINTAINERS: Update Joel's email address

2025-02-19 Thread Paul E. McKenney
On Wed, Feb 19, 2025 at 07:54:24AM -0500, Joel Fernandes wrote: > Update MAINTAINERS file to reflect changes to Joel's email address for > upstream work. > > Signed-off-by: Joel Fernandes For RCU and LKMM: Reviewed-by: Paul E. McKenney > --- > MAINTAINERS | 6 +++-

[PATCH bpf-next 3/3] selftests/bpf: Add test case for atomic htab update

2025-02-04 Thread Hou Tao
Add a test case to verify the atomic update of existing element in hash map. The test proceeds in three steps: 1) fill the map with keys in the range [0, 63] 2) create 8 threads to lookup these keys concurrently 3) create 2 threads to overwrite these keys concurrently Without atomic update

[PATCH rcu v2] 3/9] sched: update __cond_resched comment about RCU quiescent states

2025-01-30 Thread Paul E. McKenney
From: Ankur Arora Update comment in __cond_resched() clarifying how urgently needed quiescent state are provided. Signed-off-by: Ankur Arora Reviewed-by: Frederic Weisbecker Signed-off-by: Paul E. McKenney --- kernel/sched/core.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion

Re: [PATCH 3/4] rcu: Update TREE05.boot to test normal synchronize_rcu()

2025-01-23 Thread Paul E. McKenney
On Thu, Jan 23, 2025 at 07:58:27PM +0100, Uladzislau Rezki (Sony) wrote: > Add extra parameters for rcutorture module. One is the "nfakewriters" > which is set -1. There will be created number of test-kthreads which > correspond to number of CPUs in a test system. Those threads randomly > invoke sy

[PATCH 3/4] rcu: Update TREE05.boot to test normal synchronize_rcu()

2025-01-23 Thread Uladzislau Rezki (Sony)
Add extra parameters for rcutorture module. One is the "nfakewriters" which is set -1. There will be created number of test-kthreads which correspond to number of CPUs in a test system. Those threads randomly invoke synchronize_rcu() call. Apart of that "rcu_normal" is set to 1, because it is spec

Re: [GIT PULL] kunit next update for Linux 6.14-rc1

2025-01-22 Thread pr-tracker-bot
The pull request you sent on Tue, 21 Jan 2025 14:16:44 -0700: > git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest > tags/linux_kselftest-kunit-6.14-rc1 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/e8f17cb6f5abd4e52e89b5768c7016b7dab1e6fe Thank you

Re: [GIT PULL] kselftest next update for Linux 6.14-rc1

2025-01-22 Thread pr-tracker-bot
The pull request you sent on Tue, 21 Jan 2025 13:56:32 -0700: > git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest > tags/linux_kselftest-next-6.14-rc1 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/8fb1e2eed14dc347e1d04b8bf0bf52c606de6da1 Thank you!

[GIT PULL] kunit next update for Linux 6.14-rc1

2025-01-21 Thread Shuah Khan
Hi Linus, Please pull the following kunit next update for Linux 6.14-rc1. - fixes struct completion warning - introduces autorun option - adds fallback for os.sched_getaffinity - enables hardware acceleration when available Note: Stephen reported duplicate patch in kunit and driver-core: The

[GIT PULL] kselftest next update for Linux 6.14-rc1

2025-01-21 Thread Shuah Khan
Hi Linus, Please pull the following kseltest update for Linux 6.14-rc1. - fixes, reporting improvements, and cleanup changes to several tests - adds support for DT_GNU_HASH to selftests/vDSO Note: Stephen reported conflict between the following two commits and the fix is in the linux-next

[PATCH rcu 3/9] sched: update __cond_resched comment about RCU quiescent states

2025-01-16 Thread Paul E. McKenney
From: Ankur Arora Update comment in __cond_resched() clarifying how urgently needed quiescent state are provided. Signed-off-by: Ankur Arora Reviewed-by: Frederic Weisbecker Signed-off-by: Paul E. McKenney --- kernel/sched/core.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion

[PATCH v1 18/19] Documentation/livepatch: Update documentation for state, callbacks, and shadow variables

2025-01-15 Thread Petr Mladek
es are now the recommended way to store state-related data. This update ensures the documentation accurately describes the current livepatch functionality. Signed-off-by: Petr Mladek --- Documentation/livepatch/api.rst | 2 +- Documentation/livepatch/callbacks.rst| 166 +++

[PATCHv4 RESEND net-next 2/2] selftests: wireguard: update to using nft for qemu test

2025-01-06 Thread Hangbin Liu
Since we will replace iptables with nft for wireguard netns testing, let's also convert the qemu test to use nft at the same time. Co-developed-by: Phil Sutter Signed-off-by: Phil Sutter Signed-off-by: Hangbin Liu --- .../testing/selftests/wireguard/qemu/Makefile | 40 ++- .../

[PATCHv3 net-next 2/2] selftests: wireguard: update to using nft for qemu test

2024-12-12 Thread Hangbin Liu
Since we will replace iptables with nft for wireguard netns testing, let's also convert the qemu test to use nft at the same time. Co-developed-by: Phil Sutter Signed-off-by: Phil Sutter Signed-off-by: Hangbin Liu --- .../testing/selftests/wireguard/qemu/Makefile | 40 ++- .../

  1   2   3   4   5   6   7   8   9   10   >