[PATCH] selftests/filesystems:fix build error in overlayfs

2024-01-11 Thread Hu Yadi
One build issue comes up due to both mount.h included dev_in_maps.c In file included from dev_in_maps.c:10: /usr/include/sys/mount.h:35:3: error: expected identifier before numeric constant 35 | MS_RDONLY = 1, /* Mount read-only. */ | ^ In file included from dev_in_maps.c:1

Re: [PATCH v2] selftests/ftrace: Add test to exercize function tracer across cpu hotplug

2024-01-11 Thread Naveen N Rao
Hi Shuah, On Wed, Dec 13, 2023 at 10:06:29AM -0500, Steven Rostedt wrote: > On Wed, 13 Dec 2023 21:54:50 +0900 > Masami Hiramatsu (Google) wrote: > > > On Wed, 13 Dec 2023 17:08:02 +0530 > > Naveen N Rao wrote: > > > > > Add a test to exercize cpu hotplug with the function tracer active to > >

[PATCH v2 7/7] selftests/mm: config: add missing configs

2024-01-11 Thread Muhammad Usama Anjum
Add configurations which are needed for - hugetlb-read-hwpoison - ksm_functional_test and ksm_test Signed-off-by: Muhammad Usama Anjum --- tools/testing/selftests/mm/config | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/testing/selftests/mm/config b/tools/testing/selftests/mm/conf

[PATCH v2 6/7] selftests/mm: ksm_tests: conform test to TAP format output

2024-01-11 Thread Muhammad Usama Anjum
Conform the layout, informational and status messages to TAP. No functional change is intended other than the layout of output messages. Signed-off-by: Muhammad Usama Anjum --- tools/testing/selftests/mm/ksm_tests.c | 682 ++--- 1 file changed, 276 insertions(+), 406 deletion

[PATCH v2 5/7] selftests/mm: hugetlb-read-hwpoison: conform test to TAP format output

2024-01-11 Thread Muhammad Usama Anjum
Conform the layout, informational and status messages to TAP. No functional change is intended other than the layout of output messages. Signed-off-by: Muhammad Usama Anjum --- Tested this by reverting the patch a08c7193e4f18dc8508f2d07d0de2c5b94cb39a3 ("mm/filemap: remove hugetlb special casing

[PATCH v2 4/7] selftests/mm: khugepaged: conform test to TAP format output

2024-01-11 Thread Muhammad Usama Anjum
Conform the layout, informational and status messages to TAP. No functional change is intended other than the layout of output messages. Signed-off-by: Muhammad Usama Anjum --- Changes since v1: - Remove commented out lines of code --- tools/testing/selftests/mm/khugepaged.c | 381 ++

[PATCH v2 3/7] selftests/mm: hugetlb-madvise: conform test to TAP format output

2024-01-11 Thread Muhammad Usama Anjum
Conform the layout, informational and status messages to TAP. No functional change is intended other than the layout of output messages. Signed-off-by: Muhammad Usama Anjum --- tools/testing/selftests/mm/hugetlb-madvise.c | 209 +++ 1 file changed, 81 insertions(+), 128 deletions

[PATCH v2 2/7] selftests/mm: hugepage-vmemmap: conform test to TAP format output

2024-01-11 Thread Muhammad Usama Anjum
Conform the layout, informational and status messages to TAP. No functional change is intended other than the layout of output messages. Signed-off-by: Muhammad Usama Anjum --- tools/testing/selftests/mm/hugepage-vmemmap.c | 36 +-- 1 file changed, 17 insertions(+), 19 deletions(

[PATCH v2 1/7] selftests/mm: hugepage-shm: conform test to TAP format output

2024-01-11 Thread Muhammad Usama Anjum
Conform the layout, informational and status messages to TAP. No functional change is intended other than the layout of output messages. The "." was being printed inside for loop to indicate the writes progress. This was extraneous and hence removed in the patch. Signed-off-by: Muhammad Usama Anj

[PATCH v2] selftests/mm: mremap_test: fix build warning

2024-01-11 Thread Muhammad Usama Anjum
Use 2 separate variables of types int and unsigned long long instead of confusing them. This corrects the correct print format for each of them and removes the build warning: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long unsigned int’ Fixes: a4cb3b243343

[PATCH v3] selftests/landlock:Fix two build issues

2024-01-11 Thread Hu Yadi
From: "Hu.Yadi" Two issues comes up while building selftest/landlock on my side (gcc 7.3/glibc-2.28/kernel-4.19) the first one is as to gettid net_test.c: In function ‘set_service’: net_test.c:91:45: warning: implicit declaration of function ‘gettid’; [-Wimplicit-function-declaration] "_se

Re: [PATCH] selftests/mm: mremap_test: fix build warning

2024-01-11 Thread Muhammad Usama Anjum
On 1/12/24 2:14 AM, Andrew Morton wrote: > On Thu, 11 Jan 2024 13:20:38 +0500 Muhammad Usama Anjum > wrote: > >> Fix following build warning: >> warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type >> ‘long long unsigned int’ >> > > Looks good to me, but... grumble. >

Re: [PATCH 0/5] tools: selftests: riscv: Fix compiler warnings

2024-01-11 Thread patchwork-bot+linux-riscv
Hello: This series was applied to riscv/linux.git (for-next) by Palmer Dabbelt : On Thu, 23 Nov 2023 19:58:16 +0100 you wrote: > From: Christoph Müllner > > When building the RISC-V selftests with a riscv32 compiler I ran into > a couple of compiler warnings. While riscv32 support for these tes

[PATCH v2] KVM: selftests: Fix the dirty_log_test semaphore imbalance

2024-01-11 Thread Shaoqin Huang
When execute the dirty_log_test on some aarch64 machine, it sometimes trigger the ASSERT: Test Assertion Failure dirty_log_test.c:384: dirty_ring_vcpu_ring_full pid=14854 tid=14854 errno=22 - Invalid argument 1 0x004033eb: dirty_ring_collect_dirty_pages at dirty_log_te

Re: [PATCH] kunit: Fix a NULL vs IS_ERR() bug

2024-01-11 Thread Dan Carpenter
On Fri, Jan 12, 2024 at 07:39:14AM +0800, David Gow wrote: > On Thu, 11 Jan 2024 at 02:55, Dan Carpenter wrote: > > > > The kunit_device_register() function doesn't return NULL, it returns > > error pointers. Change the KUNIT_ASSERT_NOT_NULL() to check for > > ERR_OR_NULL(). > > > > Fixes: d03c72

Re: [RFC PATCH v2 2/3] KVM: selftests: add selftest driver for KVM to test memory slots for MMIO BARs

2024-01-11 Thread Yuan Yao
On Fri, Jan 12, 2024 at 08:21:29AM +0800, Yan Zhao wrote: > On Wed, Jan 10, 2024 at 02:27:08PM +0800, Yuan Yao wrote: > > > > Do you have plan to allow user to change the bar_size via IOCTL ? > > > > If no "order" and "bar_size" can be removed. > > > > > > > Currently no. But this structure is priv

回复: [PATCH] selftests/core: Fix build issue with CLOSE_RANGE_UNSHARE

2024-01-11 Thread Huyadi
Any comments will be appreciated >From: "Hu.Yadi" > >Add head file to fix cpmpile error: > >gcc -g -isystem /home/linux/usr/include close_range_test.c -o >/home/linux/tools/testing/selftests/core/close_range_test >close_range_test.c: In function ‘close_range_unshare’: >close_range_test.c:11

Re: [PATCH v3] Documentation: KUnit: Update the instructions on how to test static functions

2024-01-11 Thread David Gow
On Thu, 11 Jan 2024 at 01:39, Arthur Grillo wrote: > > Now that we have the VISIBLE_IF_KUNIT and EXPORT_SYMBOL_IF_KUNIT macros, > update the instructions to recommend this way of testing static > functions. > > Signed-off-by: Arthur Grillo > --- > Changes in v3: > - Maintain the old '#include' wa

Re: [PATCH v4] kunit: run test suites only after module initialization completes

2024-01-11 Thread David Gow
On Wed, 10 Jan 2024 at 23:59, Marco Pagani wrote: > > Commit 2810c1e99867 ("kunit: Fix wild-memory-access bug in > kunit_free_suite_set()") fixed a wild-memory-access bug that could have > happened during the loading phase of test suites built and executed as > loadable modules. However, it also i

回复: 回复: [PATCH] selftests/landlock:Fix two build issues

2024-01-11 Thread Huyadi
>On Thu, Jan 11, 2024 at 02:34:08AM +, Huyadi wrote: >> >> ->On Wed, Jan 10, 2024 at 03:08:54PM +0800, Hu Yadi wrote: >> >> From: "Hu.Yadi" >> >> >> >> Two issues comes up while building selftest/landlock: >> >> >> >> the first one is as to gettid >> >> >> >> net_test.c: In function ‘set_

Re: [PATCH bpf-next v2 00/15] Improvements for tracking scalars in the BPF verifier

2024-01-11 Thread patchwork-bot+netdevbpf
Hello: This series was applied to bpf/bpf-next.git (master) by Alexei Starovoitov : On Mon, 8 Jan 2024 22:51:54 +0200 you wrote: > From: Maxim Mikityanskiy > > The goal of this series is to extend the verifier's capabilities of > tracking scalars when they are spilled to stack, especially when

Re: [PATCH net 0/2] selftests: net: Small fixes

2024-01-11 Thread patchwork-bot+netdevbpf
Hello: This series was applied to netdev/net.git (main) by Jakub Kicinski : On Wed, 10 Jan 2024 09:14:34 -0500 you wrote: > From: Benjamin Poirier > > Two small fixes for net selftests. > > These patches were carved out of the following RFC series: > https://lore.kernel.org/netdev/202312221358

Re: [RFC PATCH v2 2/3] KVM: selftests: add selftest driver for KVM to test memory slots for MMIO BARs

2024-01-11 Thread Yan Zhao
On Wed, Jan 10, 2024 at 02:27:08PM +0800, Yuan Yao wrote: > > > Do you have plan to allow user to change the bar_size via IOCTL ? > > > If no "order" and "bar_size" can be removed. > > > > > Currently no. But this structure is private to the test driver. > > What the benefit to remove the two? > >

Re: [PATCH] selftests/net/tcp-ao: Use LDLIBS instead of LDFLAGS

2024-01-11 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net.git (main) by Jakub Kicinski : On Wed, 10 Jan 2024 21:34:10 + you wrote: > The rules to link selftests are: > > > $(OUTPUT)/%_ipv4: %.c > > $(LINK.c) $^ $(LDLIBS) -o $@ > > > > $(OUTPUT)/%_ipv6: %.c > > $(LINK.c) -DIPV6_TEST $^ $(LDLIBS) -o

[PATCH] kunit: Mark filter_glob param as rw

2024-01-11 Thread Lucas De Marchi
By allowing the filter_glob parameter to be written to, it's possible to tweak the testsuites that will be executed on new module loads. This makes it easier to run specific tests without having to reload kunit and provides a way to filter tests on real HW even if kunit is builtin. Example for xe d

[PATCH] MAINTAINERS: kunit: Add Rae Moar as a reviewer

2024-01-11 Thread David Gow
Rae has been shouldering a lot of the KUnit review burden for the last year, and will continue to do so in the future. Thanks! Signed-off-by: David Gow --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index f8efcb72ad4b..2316d89806dd 100644 --- a/MAIN

Re: [PATCH] kunit: device: Fix a NULL vs IS_ERR() check in init()

2024-01-11 Thread David Gow
On Thu, 11 Jan 2024 at 02:55, Dan Carpenter wrote: > > The root_device_register() function does not return NULL, it returns > error pointers. Fix the check to match. > > Fixes: d03c720e03bd ("kunit: Add APIs for managing devices") > Signed-off-by: Dan Carpenter > --- Thanks for catching this.

[PATCH v6 3/4] selftest mm/mseal memory sealing

2024-01-11 Thread jeffxu
From: Jeff Xu selftest for memory sealing change in mmap() and mseal(). Signed-off-by: Jeff Xu --- tools/testing/selftests/mm/.gitignore |1 + tools/testing/selftests/mm/Makefile |1 + tools/testing/selftests/mm/mseal_test.c | 1997 +++ 3 files changed, 1999 i

[PATCH v6 4/4] mseal:add documentation

2024-01-11 Thread jeffxu
From: Jeff Xu Add documentation for mseal(). Signed-off-by: Jeff Xu --- Documentation/userspace-api/mseal.rst | 181 ++ 1 file changed, 181 insertions(+) create mode 100644 Documentation/userspace-api/mseal.rst diff --git a/Documentation/userspace-api/mseal.rst b/Doc

[PATCH v6 2/4] mseal: add mseal syscall

2024-01-11 Thread jeffxu
From: Jeff Xu The new mseal() is an syscall on 64 bit CPU, and with following signature: int mseal(void addr, size_t len, unsigned long flags) addr/len: memory range. flags: reserved. mseal() blocks following operations for the given memory range. 1> Unmapping, moving to another location, and

[PATCH v6 1/4] mseal: Wire up mseal syscall

2024-01-11 Thread jeffxu
From: Jeff Xu Wire up mseal syscall for all architectures. Signed-off-by: Jeff Xu --- arch/alpha/kernel/syscalls/syscall.tbl | 1 + arch/arm/tools/syscall.tbl | 1 + arch/arm64/include/asm/unistd.h | 2 +- arch/arm64/include/asm/unistd32.h | 2 ++ ar

[PATCH v6 0/4] Introduce mseal()

2024-01-11 Thread jeffxu
From: Jeff Xu This patchset proposes a new mseal() syscall for the Linux kernel. In a nutshell, mseal() protects the VMAs of a given virtual memory range against modifications, such as changes to their permission bits. Modern CPUs support memory permissions, such as the read/write (RW) and no-e

Re: [PATCH] kunit: Fix a NULL vs IS_ERR() bug

2024-01-11 Thread David Gow
On Thu, 11 Jan 2024 at 02:55, Dan Carpenter wrote: > > The kunit_device_register() function doesn't return NULL, it returns > error pointers. Change the KUNIT_ASSERT_NOT_NULL() to check for > ERR_OR_NULL(). > > Fixes: d03c720e03bd ("kunit: Add APIs for managing devices") > Signed-off-by: Dan Carp

Re: [PATCH] selftests/mm: mremap_test: fix build warning

2024-01-11 Thread Andrew Morton
On Thu, 11 Jan 2024 13:20:38 +0500 Muhammad Usama Anjum wrote: > Fix following build warning: > warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type > ‘long long unsigned int’ > Looks good to me, but... grumble. `i' is an integer. That's just how it is, Blame Fortran

Re: [PATCH 0/3] Update LLVM Phabricator and Bugzilla links

2024-01-11 Thread Fangrui Song
On Wed, Jan 10, 2024 at 4:46 PM Kees Cook wrote: > > On Tue, Jan 09, 2024 at 03:16:28PM -0700, Nathan Chancellor wrote: > > This series updates all instances of LLVM Phabricator and Bugzilla links > > to point to GitHub commits directly and LLVM's Bugzilla to GitHub issue > > shortlinks respective

Re: [PATCH 1/3] selftests/bpf: Update LLVM Phabricator links

2024-01-11 Thread Nathan Chancellor
-4007 > > > > -__ https://reviews.llvm.org/D109073 > > > > +__ > > > > https://github.com/llvm/llvm-project/commit/ea72b0319d7b0f0c2fcf41d121afa5d031b319d > > > > > > To be consistent with other links, could you add the missing last alnum > > >

Re: [PATCH 1/3] selftests/bpf: Update LLVM Phabricator links

2024-01-11 Thread Alexei Starovoitov
On Thu, Jan 11, 2024 at 11:40 AM Nathan Chancellor wrote: > > Hi Yonghong, > > On Wed, Jan 10, 2024 at 08:05:36PM -0800, Yonghong Song wrote: > > > > On 1/9/24 2:16 PM, Nathan Chancellor wrote: > > > reviews.llvm.org was LLVM's Phabricator instances for code review. It > > > has been abandoned in

Re: [PATCH v11 0/8] Add iommufd nesting (part 2/2)

2024-01-11 Thread Jason Gunthorpe
On Wed, Jan 10, 2024 at 08:10:07PM -0800, Yi Liu wrote: > v11: > - Drop hw_error field in vtd cache invalidation uapi. devTLB invalidation >error is a serious security emergency requiring the host kernel to handle. >No need to expose it to userspace (especially given existing VMs doesn't >

Re: [PATCH net 0/2] selftests: net: Small fixes

2024-01-11 Thread patchwork-bot+netdevbpf
Hello: This series was applied to netdev/net.git (main) by David S. Miller : On Wed, 10 Jan 2024 09:14:34 -0500 you wrote: > From: Benjamin Poirier > > Two small fixes for net selftests. > > These patches were carved out of the following RFC series: > https://lore.kernel.org/netdev/20231222135

Re: [PATCH 1/3] selftests/bpf: Update LLVM Phabricator links

2024-01-11 Thread Nathan Chancellor
Hi Yonghong, On Wed, Jan 10, 2024 at 08:05:36PM -0800, Yonghong Song wrote: > > On 1/9/24 2:16 PM, Nathan Chancellor wrote: > > reviews.llvm.org was LLVM's Phabricator instances for code review. It > > has been abandoned in favor of GitHub pull requests. While the majority > > of links in the ker

Re: Re: [PATCH v14 10/12] selftests/landlock: Add network tests

2024-01-11 Thread Mickaël Salaün
Thanks for the report and the test Muhammad, the fix is now merged: https://git.kernel.org/torvalds/c/bbf5a1d0e5d0fb3bdf90205aa872636122692a50 See https://lore.kernel.org/all/20240103163415.304358-1-...@digikod.net/ On Wed, Dec 20, 2023 at 04:19:44PM +0500, Muhammad Usama Anjum wrote: > On 12/20/

Re: [PATCH v11 3/8] iommu: Add iommu_copy_struct_from_user_array helper

2024-01-11 Thread Nicolin Chen
On Wed, Jan 10, 2024 at 08:10:10PM -0800, Yi Liu wrote: > +#define iommu_copy_struct_from_user_array(kdst, user_array, data_type, \ > + index, min_last)\ > + __iommu_copy_struct_from_user_array(kdst, user_array, data_type, \ > +

Re: [PATCH v11 6/8] iommufd/selftest: Add coverage for IOMMU_HWPT_INVALIDATE ioctl

2024-01-11 Thread Jason Gunthorpe
On Thu, Jan 11, 2024 at 08:50:45AM -0800, Nicolin Chen wrote: > On Wed, Jan 10, 2024 at 08:10:13PM -0800, Yi Liu wrote: > > +#define test_cmd_hwpt_invalidate(hwpt_id, reqs, data_type, lreq, nreqs) > > \ > > + ({ > > \

Re: [PATCH v11 6/8] iommufd/selftest: Add coverage for IOMMU_HWPT_INVALIDATE ioctl

2024-01-11 Thread Nicolin Chen
On Wed, Jan 10, 2024 at 08:10:13PM -0800, Yi Liu wrote: > +#define test_cmd_hwpt_invalidate(hwpt_id, reqs, data_type, lreq, nreqs) > \ > + ({ > \ > + ASSERT_EQ(0,

[PATCH v11 5/5] ring-buffer/selftest: Add ring-buffer mapping test

2024-01-11 Thread Vincent Donnefort
This test maps a ring-buffer and validate the meta-page after reset and after emitting few events. Cc: Shuah Khan Cc: Shuah Khan Cc: linux-kselftest@vger.kernel.org Signed-off-by: Vincent Donnefort diff --git a/tools/testing/selftests/ring-buffer/Makefile b/tools/testing/selftests/ring-buffer

Re: [PATCH] selftests/net/tcp-ao: Use LDLIBS instead of LDFLAGS

2024-01-11 Thread Paolo Abeni
On Wed, 2024-01-10 at 21:34 +, Dmitry Safonov wrote: > The rules to link selftests are: > > > $(OUTPUT)/%_ipv4: %.c > > $(LINK.c) $^ $(LDLIBS) -o $@ > > > > $(OUTPUT)/%_ipv6: %.c > > $(LINK.c) -DIPV6_TEST $^ $(LDLIBS) -o $@ > > The intel test robot uses only selftest's Makefile, not

Re: 回复: [PATCH] selftests/landlock:Fix two build issues

2024-01-11 Thread Mickaël Salaün
On Thu, Jan 11, 2024 at 02:34:08AM +, Huyadi wrote: > > ->On Wed, Jan 10, 2024 at 03:08:54PM +0800, Hu Yadi wrote: > >> From: "Hu.Yadi" > >> > >> Two issues comes up while building selftest/landlock: > >> > >> the first one is as to gettid > >> > >> net_test.c: In function ‘set_service’:

Re: [PATCH v5 3/3] selftests: livepatch: Test livepatching a heavily called syscall

2024-01-11 Thread Petr Mladek
On Tue 2024-01-09 21:24:56, Marcos Paulo de Souza wrote: > The test proves that a syscall can be livepatched. It is interesting > because syscalls are called a tricky way. Also the process gets > livepatched either when sleeping in the userspace or when entering > or leaving the kernel space. > >

Re: [PATCH v4] selftests/move_mount_set_group:Make tests build with old libc

2024-01-11 Thread Mickaël Salaün
On Thu, Jan 11, 2024 at 07:32:29PM +0800, Hu Yadi wrote: > From: "Hu.Yadi" > > Replace SYS_ with __NR_. Using the __NR_ > notation, provided by UAPI, is useful to build tests on systems without > the SYS_ definitions. > > Replace SYS_move_mount with __NR_move_mount > > Similar changes: commit

Re: [PATCH v5 2/3] livepatch: Move tests from lib/livepatch to selftests/livepatch

2024-01-11 Thread Petr Mladek
On Tue 2024-01-09 21:24:55, Marcos Paulo de Souza wrote: > The modules are being moved from lib/livepatch to > tools/testing/selftests/livepatch/test_modules. > > This code moving will allow writing more complex tests, like for example an > userspace C code that will call a livepatched kernel func

Re: [PATCH v5 1/3] kselftests: lib.mk: Add TEST_GEN_MODS_DIR variable

2024-01-11 Thread Petr Mladek
On Tue 2024-01-09 21:24:54, Marcos Paulo de Souza wrote: > Add TEST_GEN_MODS_DIR variable for kselftests. It can point to > a directory containing kernel modules that will be used by > selftest scripts. > > The modules are built as external modules for the running kernel. > As a result they are al

Re: [PATCH 4/7] selftests/mm: khugepaged: conform test to TAP format output

2024-01-11 Thread Muhammad Usama Anjum
Sorry, forgot to remvove 2 lines. I'll resend if there aren't any comments until tomorrow. On 1/11/24 4:56 PM, Muhammad Usama Anjum wrote: > Conform the layout, informational and status messages to TAP. No > functional change is intended other than the layout of output messages. > > Signed-off-by

[PATCH 7/7] selftests/mm: config: add missing configs

2024-01-11 Thread Muhammad Usama Anjum
Add configurations which are needed for - hugetlb-read-hwpoison - ksm_functional_test and ksm_test Signed-off-by: Muhammad Usama Anjum --- tools/testing/selftests/mm/config | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/testing/selftests/mm/config b/tools/testing/selftests/mm/conf

[PATCH 6/7] selftests/mm: ksm_tests: conform test to TAP format output

2024-01-11 Thread Muhammad Usama Anjum
Conform the layout, informational and status messages to TAP. No functional change is intended other than the layout of output messages. Signed-off-by: Muhammad Usama Anjum --- tools/testing/selftests/mm/ksm_tests.c | 682 ++--- 1 file changed, 276 insertions(+), 406 deletion

[PATCH 5/7] selftests/mm: hugetlb-read-hwpoison: conform test to TAP format output

2024-01-11 Thread Muhammad Usama Anjum
Conform the layout, informational and status messages to TAP. No functional change is intended other than the layout of output messages. Signed-off-by: Muhammad Usama Anjum --- Tested this by reverting the patch a08c7193e4f18dc8508f2d07d0de2c5b94cb39a3 ("mm/filemap: remove hugetlb special casing

[PATCH 4/7] selftests/mm: khugepaged: conform test to TAP format output

2024-01-11 Thread Muhammad Usama Anjum
Conform the layout, informational and status messages to TAP. No functional change is intended other than the layout of output messages. Signed-off-by: Muhammad Usama Anjum --- tools/testing/selftests/mm/khugepaged.c | 378 ++-- 1 file changed, 160 insertions(+), 218 deletion

[PATCH 3/7] selftests/mm: hugetlb-madvise: conform test to TAP format output

2024-01-11 Thread Muhammad Usama Anjum
Conform the layout, informational and status messages to TAP. No functional change is intended other than the layout of output messages. Signed-off-by: Muhammad Usama Anjum --- tools/testing/selftests/mm/hugetlb-madvise.c | 209 +++ 1 file changed, 81 insertions(+), 128 deletions

[PATCH 2/7] selftests/mm: hugepage-vmemmap: conform test to TAP format output

2024-01-11 Thread Muhammad Usama Anjum
Conform the layout, informational and status messages to TAP. No functional change is intended other than the layout of output messages. Signed-off-by: Muhammad Usama Anjum --- tools/testing/selftests/mm/hugepage-vmemmap.c | 36 +-- 1 file changed, 17 insertions(+), 19 deletions(

[PATCH 1/7] selftests/mm: hugepage-shm: conform test to TAP format output

2024-01-11 Thread Muhammad Usama Anjum
Conform the layout, informational and status messages to TAP. No functional change is intended other than the layout of output messages. The "." was being printed inside for loop to indicate the writes progress. This was extraneous and hence removed in the patch. Signed-off-by: Muhammad Usama Anj

[PATCH v4] selftests/move_mount_set_group:Make tests build with old libc

2024-01-11 Thread Hu Yadi
From: "Hu.Yadi" Replace SYS_ with __NR_. Using the __NR_ notation, provided by UAPI, is useful to build tests on systems without the SYS_ definitions. Replace SYS_move_mount with __NR_move_mount Similar changes: commit 87129ef13603 ("selftests/landlock: Make tests build with old libc") Acked

Re: [PATCH net 0/2] selftests: net: Small fixes

2024-01-11 Thread Przemek Kitszel
On 1/10/24 15:14, Benjamin Poirier wrote: From: Benjamin Poirier Two small fixes for net selftests. These patches were carved out of the following RFC series: https://lore.kernel.org/netdev/20231222135836.992841-1-bpoir...@nvidia.com/ I'm planning to send the rest of the series to net-next af

Re: 回复: [PATCH v2] selftests/move_mount_set_group:Make tests build with old libc

2024-01-11 Thread Mickaël Salaün
On Thu, Jan 11, 2024 at 02:25:03AM +, Huyadi wrote: > > >On Wed, Jan 10, 2024 at 03:29:01PM +0800, Hu Yadi wrote: > >> From: "Hu.Yadi" > >> > >> Replace SYS_ with __NR_. Using the __NR_ > >> notation, provided by UAPI, is useful to build tests on systems > >> without the SYS_ definitions.

[PATCH v2] KVM: s390: selftest: memop: Fix undefined behavior

2024-01-11 Thread Nina Schoetterl-Glausch
If an integer's type has x bits, shifting the integer left by x or more is undefined behavior. This can happen in the rotate function when attempting to do a rotation of the whole value by 0. Fixes: 0dd714bfd200 ("KVM: s390: selftest: memop: Add cmpxchg tests") Signed-off-by: Nina Schoetterl-Glaus

Re: [PATCH V12 1/7] x86: Drop CPU_SUP_INTEL from SCHED_MC_PRIO for the expansion.

2024-01-11 Thread Borislav Petkov
On Thu, Jan 11, 2024 at 08:10:48AM +, Meng, Li (Jassmine) wrote: > I will modify it soon. No, don't modify it, don't do anything. Please read the whole thread again. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette

[PATCH] selftests/mm: mremap_test: fix build warning

2024-01-11 Thread Muhammad Usama Anjum
Fix following build warning: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long unsigned int’ Fixes: a4cb3b243343 ("selftests: mm: add a test for remapping to area immediately after existing mapping") Signed-off-by: Muhammad Usama Anjum --- tools/testing/se

RE: [PATCH V12 1/7] x86: Drop CPU_SUP_INTEL from SCHED_MC_PRIO for the expansion.

2024-01-11 Thread Meng, Li (Jassmine)
[AMD Official Use Only - General] Hi Petkov: > -Original Message- > From: Borislav Petkov > Sent: Wednesday, January 10, 2024 6:04 PM > To: Meng, Li (Jassmine) > Cc: Rafael J . Wysocki ; Huang, Ray > ; linux...@vger.kernel.org; linux- > ker...@vger.kernel.org; x...@kernel.org; linux-a..