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
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
> >
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
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
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
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 ++
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
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(
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
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
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
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.
>
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
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
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
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
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
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
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
>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_
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
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
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?
>
>
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
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
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
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.
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
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
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
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
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
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
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
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
-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
> > >
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
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
>
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
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
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/
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, \
> +
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)
> > \
> > + ({
> > \
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,
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
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
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’:
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.
>
>
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
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
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
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
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
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
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
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
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
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(
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
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
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
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.
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
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
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
[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..
66 matches
Mail list logo