selftests: complete kselftest include centralizationThis follow-up patch completes centralization of kselftest.h andksefltest_harness.h includes in remaining seltests files, replacing allrelative
selftests: complete kselftest include centralizationThis follow-up patch completes centralization of kselftest.h andksefltest_harness.h includes in remaining seltests files, replacing allrelative paths with a non-relative paths using shared -I include path inlib.mkTested with gcc-13.3 and clang-18.1, and cross-compiled successfully onriscv, arm64, x86_64 and powerpc arch.[reddybalavignesh9979@gmail.com: add selftests include path for kselftest.h] Link: https://lkml.kernel.org/r/20251017090201.317521-1-reddybalavignesh9979@gmail.comLink: https://lkml.kernel.org/r/20251016104409.68985-1-reddybalavignesh9979@gmail.comSigned-off-by: Bala-Vignesh-Reddy <reddybalavignesh9979@gmail.com>Suggested-by: Andrew Morton <akpm@linux-foundation.org>Link: https://lore.kernel.org/lkml/20250820143954.33d95635e504e94df01930d0@linux-foundation.org/Reviewed-by: Wei Yang <richard.weiyang@gmail.com>Cc: David Hildenbrand <david@redhat.com>Cc: David S. Miller <davem@davemloft.net>Cc: Eric Dumazet <edumazet@google.com>Cc: Günther Noack <gnoack@google.com>Cc: Jakub Kacinski <kuba@kernel.org>Cc: Liam Howlett <liam.howlett@oracle.com>Cc: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>Cc: Michal Hocko <mhocko@suse.com>Cc: Mickael Salaun <mic@digikod.net>Cc: Ming Lei <ming.lei@redhat.com>Cc: Paolo Abeni <pabeni@redhat.com>Cc: Shuah Khan <shuah@kernel.org>Cc: Simon Horman <horms@kernel.org>Cc: Suren Baghdasaryan <surenb@google.com>Cc: Vlastimil Babka <vbabka@suse.cz>Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
show more ...
selftests/move_mount_set_group:Make tests build with old libcReplace SYS_<syscall> with __NR_<syscall>. Using the __NR_<syscall>notation, provided by UAPI, is useful to build tests on systems wit
selftests/move_mount_set_group:Make tests build with old libcReplace SYS_<syscall> with __NR_<syscall>. Using the __NR_<syscall>notation, provided by UAPI, is useful to build tests on systems withoutthe SYS_<syscall> definitions.Replace SYS_move_mount with __NR_move_mountSimilar changes: commit 87129ef13603 ("selftests/landlock: Make tests build with old libc")Acked-by: Mickaël Salaün <mic@digikod.net>Signed-off-by: Hu.Yadi <hu.yadi@h3c.com>Link: https://lore.kernel.org/r/20240111113229.10820-1-hu.yadi@h3c.comReviewed-by: Berlin <berlin@h3c.com>Suggested-by: Jiao <jiaoxupo@h3c.com>Signed-off-by: Christian Brauner <brauner@kernel.org>
selftests: move_mount_set_group: Fix incorrect kernel headers search pathUse $(KHDR_INCLUDES) as lookup path for kernel headers. This preventsbuilding against kernel headers from the build environ
selftests: move_mount_set_group: Fix incorrect kernel headers search pathUse $(KHDR_INCLUDES) as lookup path for kernel headers. This preventsbuilding against kernel headers from the build environment in scenarioswhere kernel headers are installed into a specific output directory(O=...).Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>Cc: Shuah Khan <shuah@kernel.org>Cc: linux-kselftest@vger.kernel.orgCc: Ingo Molnar <mingo@redhat.com>Cc: <stable@vger.kernel.org> # 5.18+Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
selftests/move_mount_set_group remove unneeded conversion to boolThe coccinelle report./tools/testing/selftests/move_mount_set_group/move_mount_set_group_test.c:225:18-23:WARNING: conversion to b
selftests/move_mount_set_group remove unneeded conversion to boolThe coccinelle report./tools/testing/selftests/move_mount_set_group/move_mount_set_group_test.c:225:18-23:WARNING: conversion to bool not needed hereRelational and logical operators evaluate to bool,explicit conversion is overly verbose and unneeded.Reported-by: Zeal Robot <zealci@zte.com.cn>Signed-off-by: Yang Guang <yang.guang5@zte.com.cn>Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tests: add move_mount(MOVE_MOUNT_SET_GROUP) selftestAdd a simple selftest for a move_mount(MOVE_MOUNT_SET_GROUP). This teststhat one can copy sharing from one mount from nested mntns with nestedu
tests: add move_mount(MOVE_MOUNT_SET_GROUP) selftestAdd a simple selftest for a move_mount(MOVE_MOUNT_SET_GROUP). This teststhat one can copy sharing from one mount from nested mntns with nesteduserns owner to another mount from other nested mntns with other nesteduserns owner while in their parent userns. TAP version 13 1..1 # Starting 1 tests from 2 test cases. # RUN move_mount_set_group.complex_sharing_copying ... # OK move_mount_set_group.complex_sharing_copying ok 1 move_mount_set_group.complex_sharing_copying # PASSED: 1 / 1 tests passed. # Totals: pass:1 fail:0 xfail:0 xpass:0 skip:0 error:0Link: https://lore.kernel.org/r/20210715100714.120228-2-ptikhomirov@virtuozzo.comCc: Shuah Khan <shuah@kernel.org>Cc: Eric W. Biederman <ebiederm@xmission.com>Cc: Alexander Viro <viro@zeniv.linux.org.uk>Cc: Christian Brauner <christian.brauner@ubuntu.com>Cc: Mattias Nissler <mnissler@chromium.org>Cc: Aleksa Sarai <cyphar@cyphar.com>Cc: Andrei Vagin <avagin@gmail.com>Cc: linux-fsdevel@vger.kernel.orgCc: linux-kselftest@vger.kernel.orgCc: lkml <linux-kernel@vger.kernel.org>Signed-off-by: Pavel Tikhomirov <ptikhomirov@virtuozzo.com>Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>