Kselftest update for Linux 5.15-rc1
Subsystems (3)
Shuah Khan
maintainerHi Linus,
Please pull the following Kselftest update for Linux 5.15-rc1.
This Kselftest update for Linux 5.15-rc1 consists of fixes to build and test failures.
-- openat2 test failure for O_LARGEFILE flag on ARM64 -- x86 test build failures related to glibc 2.34 adding
support for variable sized MINSIGSTKSZ and SIGSTKSZ
-- removing obsolete configs in sync and cpufreq config files -- minor spelling and duplicate header include cleanups
diff is attached.
thanks,
-- Shuah
----------------------------------------------------------------
The following changes since commit 2734d6c1b1a089fb593ef6a23d4b70903526fe0c:
Linux 5.14-rc2 (2021-07-18 14:13:49 -0700)
are available in the Git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest tags/linux-kselftest-next-5.15-rc1
for you to fetch changes up to 67d6d80d90fb27b3cc7659f464fa3b87fd67bc14:
selftests/cpufreq: Rename DEBUG_PI_LIST to DEBUG_PLIST (2021-08-31 11:00:02 -0600)
----------------------------------------------------------------
linux-kselftest-next-5.15-rc1
This Kselftest update for Linux 5.15-rc1 consists of fixes to build and test failures.
-- openat2 test failure for O_LARGEFILE flag on ARM64 -- x86 test build failures related to glibc 2.34 adding
support for variable sized MINSIGSTKSZ and SIGSTKSZ
-- removing obsolete configs in sync and cpufreq config files -- minor spelling and duplicate header include cleanups
----------------------------------------------------------------
Baolin Wang (1):
selftests: openat2: Fix testing failure for O_LARGEFILE flag
Changcheng Deng (1):
kselftest:sched: remove duplicate include in cs_prctl_test.c
Colin Ian King (1):
selftests: safesetid: Fix spelling mistake "cant" -> "can't"
Jun Miao (1):
selftests/x86: Fix error: variably modified 'altstack_data' at file scope
Li Zhijian (2):
selftests/sync: Remove the deprecated config SYNC selftests/cpufreq: Rename DEBUG_PI_LIST to DEBUG_PLIST
tools/testing/selftests/cpufreq/config | 2 +- tools/testing/selftests/openat2/openat2_test.c | 4 ++++ tools/testing/selftests/safesetid/safesetid-test.c | 2 +- tools/testing/selftests/sched/cs_prctl_test.c | 2 -- tools/testing/selftests/sync/config | 1 - tools/testing/selftests/x86/mov_ss_trap.c | 4 ++-- tools/testing/selftests/x86/sigreturn.c | 7 +++---- tools/testing/selftests/x86/single_step_syscall.c | 4 ++-- tools/testing/selftests/x86/syscall_arg_fault.c | 7 +++---- 9 files changed, 16 insertions(+), 17 deletions(-)
----------------------------------------------------------------
tools/testing/selftests/cpufreq/config +1 -1
@@ -6,7 +6,7 @@ CONFIG_CPU_FREQ_GOV_ONDEMAND=y CONFIG_CPU_FREQ_GOV_CONSERVATIVE=y CONFIG_CPU_FREQ_GOV_SCHEDUTIL=y CONFIG_DEBUG_RT_MUTEXES=y -CONFIG_DEBUG_PI_LIST=y +CONFIG_DEBUG_PLIST=y CONFIG_DEBUG_SPINLOCK=y CONFIG_DEBUG_MUTEXES=y CONFIG_DEBUG_LOCK_ALLOC=y
tools/testing/selftests/openat2/openat2_test.c +4 -0
@@ -22,7 +22,11 @@* XXX: This is wrong on {mips, parisc, powerpc, sparc}. */ #undef O_LARGEFILE +#ifdef __aarch64__ +#define O_LARGEFILE 0x20000 +#else #define O_LARGEFILE 0x8000 +#endif struct open_how_ext {struct open_how inner;
tools/testing/selftests/safesetid/safesetid-test.c +1 -1
@@ -152,7 +152,7 @@ static void write_policies(void) fd =open (add_whitelist_policy_file,O_WRONLY );if (fd <0 ) -die ("cant open add_whitelist_policy file\n" ); +die ("can't open add_whitelist_policy file\n" ); written =write (fd, policy_str,strlen (policy_str));if (written !=strlen (policy_str)) {if (written >=0 ) {
tools/testing/selftests/sched/cs_prctl_test.c +0 -2
@@ -25,8 +25,6 @@#include <sys/types.h> #include <sched.h> #include <sys/prctl.h> -#include <sys/types.h> -#include <sys/wait.h> #include <unistd.h> #include <time.h> #include <stdio.h>
tools/testing/selftests/sync/config +0 -1
@@ -1,4 +1,3 @@ CONFIG_STAGING=y CONFIG_ANDROID=y -CONFIG_SYNC=y CONFIG_SW_SYNC=y
tools/testing/selftests/x86/mov_ss_trap.c +2 -2
@@ -47,7 +47,6 @@unsigned short ss;extern unsigned char breakpoint_insn[];sigjmp_buf jmpbuf; -static unsigned char altstack_data[SIGSTKSZ ];static void enable_watchpoint (void ) {
@@ -250,13 +249,14 @@ int main()if (sigsetjmp (jmpbuf,1 ) ==0 ) {printf ("[RUN]\tMOV SS; SYSENTER\n" );stack_t stack = { - .ss_sp = altstack_data, + .ss_sp =malloc (sizeof (char ) *SIGSTKSZ ), .ss_size =SIGSTKSZ , };if (sigaltstack (&stack,NULL ) !=0 )err (1 ,"sigaltstack" );sethandler (SIGSEGV , handle_and_longjmp,SA_RESETHAND |SA_ONSTACK ); nr = SYS_getpid; +free (stack.ss_sp);/* Clear EBP first to make sure we segfault cleanly. */ asmvolatile ("xorl %%ebp, %%ebp; mov %[ss], %%ss; SYSENTER" :"+a" (nr) : [ss] "m" (ss) : "flags", "rcx"
tools/testing/selftests/x86/sigreturn.c +3 -4
@@ -138,9 +138,6 @@ static unsigned short LDT3(int idx)return (idx <<3 ) |7 ; } -/* Our sigaltstack scratch space. */ -static char altstack_data[SIGSTKSZ ]; -static void sethandler (int sig,void (*handler)(int ,siginfo_t *,void *),int flags) {
@@ -771,7 +768,8 @@ int main()setup_ldt ();stack_t stack = { - .ss_sp = altstack_data, +/* Our sigaltstack scratch space. */ + .ss_sp =malloc (sizeof (char ) *SIGSTKSZ ), .ss_size =SIGSTKSZ , };if (sigaltstack (&stack,NULL ) !=0 )
@@ -872,5 +870,6 @@ int main() total_nerrs +=test_nonstrict_ss ();#endif +free (stack.ss_sp);return total_nerrs ?1 :0 ; }
tools/testing/selftests/x86/single_step_syscall.c +2 -2
@@ -57,7 +57,6 @@ static void clearhandler(int sig)static volatile sig_atomic_t sig_traps, sig_eflags;sigjmp_buf jmpbuf; -static unsigned char altstack_data[SIGSTKSZ ];#ifdef __x86_64__# define REG_IP REG_RIP
@@ -210,7 +209,7 @@ int main()unsigned long nr = SYS_getpid;printf ("[RUN]\tSet TF and check SYSENTER\n" );stack_t stack = { - .ss_sp = altstack_data, + .ss_sp =malloc (sizeof (char ) *SIGSTKSZ ), .ss_size =SIGSTKSZ , };if (sigaltstack (&stack,NULL ) !=0 )
@@ -219,6 +218,7 @@ int main() SA_RESETHAND | SA_ONSTACK);sethandler (SIGILL , print_and_longjmp,SA_RESETHAND );set_eflags (get_eflags () |X86_EFLAGS_TF ); +free (stack.ss_sp);/* Clear EBP first to make sure we segfault cleanly. */ asmvolatile ("xorl %%ebp, %%ebp; SYSENTER" :"+a" (nr) ::"flags" ,"rcx" #ifdef __x86_64__
tools/testing/selftests/x86/syscall_arg_fault.c +3 -4
@@ -17,9 +17,6 @@#include "helpers.h" -/* Our sigaltstack scratch space. */ -static unsigned char altstack_data[SIGSTKSZ ]; -static void sethandler (int sig,void (*handler)(int ,siginfo_t *,void *),int flags) {
@@ -104,7 +101,8 @@ static void sigill(int sig, siginfo_t *info, void *ctx_void)int main () {stack_t stack = { - .ss_sp = altstack_data, +/* Our sigaltstack scratch space. */ + .ss_sp =malloc (sizeof (char ) *SIGSTKSZ ), .ss_size =SIGSTKSZ , };if (sigaltstack (&stack,NULL ) !=0 )
@@ -233,5 +231,6 @@ int main()set_eflags (get_eflags () & ~X86_EFLAGS_TF );#endif +free (stack.ss_sp);return 0 ; }
The pull request you sent on Fri, 3 Sep 2021 13:51:08 -0600:
The pull request you sent on Fri, 3 Sep 2021 13:51:08 -0600:
Quoted 1 line
git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftesttags/linux-kselftest-next-5.15-rc1
has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/f1583cb1be35c23df60b1c39e3e7e6704d749d0b
Thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/prtracker.html