linux_dsm_epyc7002/tools/testing/selftests/powerpc
Breno Leitao 83e367f9ad selftests/powerpc: Add a signal fuzzer selftest
This is a new selftest that raises SIGUSR1 signals and handles it in a
set of different ways, trying to create different scenario for testing
purpose.

This test works raising a signal and calling sigreturn interleaved
with TM operations, as starting, suspending and terminating a
transaction. The test depends on random numbers, and, based on them,
it sets different TM states.

Other than that, the test fills out the user context struct that is
passed to the sigreturn system call with random data, in order to make
sure that the signal handler syscall can handle different and invalid
states properly.

This selftest has command line parameters to control what kind of
tests the user wants to run, as for example, if a transaction should
be started prior to signal being raised, or, after the signal being
raised and before the sigreturn. If no parameter is given, the default
is enabling all options.

This test does not check if the user context is being read and set
properly by the kernel. Its purpose, at this time, is basically
guaranteeing that the kernel does not crash on invalid scenarios.

Signed-off-by: Breno Leitao <leitao@debian.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
2019-05-03 02:55:02 +10:00
..
alignment selftests/powerpc: Fix Makefiles for headers_install change 2018-09-28 15:07:45 +10:00
benchmarks powerpc/selftest: fix type of mftb() in null_syscall 2019-02-22 00:10:15 +11:00
cache_shape selftests/powerpc/cache_shape: Fix out-of-tree build 2018-10-31 23:56:22 +11:00
copyloops powerpc: prepare string/mem functions for KASAN 2019-05-03 01:20:25 +10:00
dscr selftests/powerpc: Fix Makefiles for headers_install change 2018-09-28 15:07:45 +10:00
include selftests/powerpc: Add a signal fuzzer selftest 2019-05-03 02:55:02 +10:00
lib selftests/powerpc: Add ptrace tests for VSX, VMX registers 2016-11-17 17:11:51 +11:00
math selftests/powerpc: Fix Makefiles for headers_install change 2018-09-28 15:07:45 +10:00
mm selftests/powerpc: Adjust wild_bctr to build with old binutils 2018-11-15 23:05:17 +11:00
pmu selftests/powerpc: Remove duplicate header 2019-02-26 12:32:06 +11:00
primitives selftests/powerpc: Move UCONTEXT_NIA() into utils.h 2018-10-20 13:26:47 +11:00
ptrace selftests/powerpc: Skip test instead of failing 2018-11-25 17:11:22 +11:00
scripts selftests/powerpc: Add script to test HMI functionality 2015-12-17 10:46:43 +11:00
security selftests: powerpc: Fix warning for security subdir 2018-10-31 14:36:33 +11:00
signal selftests/powerpc: Add a signal fuzzer selftest 2019-05-03 02:55:02 +10:00
stringloops selftests/powerpc: Fix Makefiles for headers_install change 2018-09-28 15:07:45 +10:00
switch_endian selftests/powerpc/switch_endian: Fix out-of-tree build 2018-10-31 23:56:21 +11:00
syscalls selftests/powerpc: Fix Makefiles for headers_install change 2018-09-28 15:07:45 +10:00
tm selftests/powerpc: New TM signal self test 2019-01-15 11:17:09 +11:00
vphn powerpc/mm: Move book3s64 specifics in subdirectory mm/book3s64 2019-05-03 01:18:38 +10:00
harness.c selftests/powerpc: Add a signal fuzzer selftest 2019-05-03 02:55:02 +10:00
Makefile selftests/powerpc: Add test to verify rfi flush across a system call 2018-10-20 13:26:47 +11:00
utils.c selftests/powerpc: Fix compilation issue due to asm label 2018-11-01 10:06:03 +11:00