WSL2-Linux-Kernel/tools/testing/selftests
Matt Redfearn 0ce105bf97 selftests/seccomp: add MIPS self-test support
This adds self-test support on MIPS, based on RFC patch from Kees Cook.
Modifications from the RFC:
- support the O32 syscall which passes the real syscall number in a0.
- Use PTRACE_{GET,SET}REGS
- Because SYSCALL_NUM and SYSCALL_RET are the same register, it is not
  possible to test modifying the syscall return value when skipping,
  since both would need to set the same register. Therefore modify that
  test case to just detect the skipped test.
Tested on MIPS32r2 / MIPS64r2 with O32, N32 and N64 userlands.

Signed-off-by: Matt Redfearn <matt.redfearn@imgtec.com>
Acked-by: Kees Cook <keescook@chromium.org>
Cc: Andy Lutomirski <luto@amacapital.net>
Cc: Shuah Khan <shuahkh@osg.samsung.com>
Cc: Will Drewry <wad@chromium.org>
Cc: IMG-MIPSLinuxKerneldevelopers@imgtec.com
Cc: linux-kernel@vger.kernel.org
Cc: linux-kselftest@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/12977/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2016-05-13 14:02:00 +02:00
..
breakpoints selftests: add missing .gitignore file or entry 2016-02-25 13:16:36 -07:00
capabilities selftests/capabilities: clean up for Makefile 2015-11-23 13:20:10 -07:00
cpu-hotplug selftests: create test-specific kconfig fragments 2016-02-25 09:47:52 -07:00
efivarfs efi: Make efivarfs entries immutable by default 2016-02-10 16:25:52 +00:00
exec selftests: exec: revert to default emit rule 2015-09-14 16:45:05 -06:00
firmware selftests: create test-specific kconfig fragments 2016-02-25 09:47:52 -07:00
ftrace linux-kselftest-4.6-rc1 2016-03-17 19:37:08 -07:00
futex tools:testing/selftests: fix typo in futex/README 2015-11-16 19:22:49 -07:00
intel_pstate tools, testing, add test for intel_pstate driver 2015-11-23 13:30:59 -07:00
ipc selftests: add missing .gitignore file or entry 2016-02-25 13:16:36 -07:00
kcmp
lib test_bitmap: unit tests for lib/bitmap.c 2016-02-19 22:54:09 -05:00
media_tests selftests: media_dcevice_test fix usage information 2016-02-25 17:22:42 -07:00
membarrier membarrier: clean up selftest 2015-09-22 15:09:53 -07:00
memfd selftests: Make scripts executable 2015-11-03 16:54:57 -07:00
memory-hotplug selftests: create test-specific kconfig fragments 2016-02-25 09:47:52 -07:00
mount selftests: create test-specific kconfig fragments 2016-02-25 09:47:52 -07:00
mqueue selftests: Add missing #include directives 2015-11-03 16:53:53 -07:00
net soreuseport: test mixed v4/v6 sockets 2016-04-14 21:14:04 -04:00
powerpc selftests/powerpc: Test FPU and VMX regs in signal ucontext 2016-03-02 23:34:47 +11:00
pstore selftests: create test-specific kconfig fragments 2016-02-25 09:47:52 -07:00
ptrace add ptrace/.gitignore 2016-01-07 13:38:11 -07:00
rcutorture rcutorture: Check for self-detected stalls 2016-01-25 16:17:41 -08:00
seccomp selftests/seccomp: add MIPS self-test support 2016-05-13 14:02:00 +02:00
size
static_keys selftests: create test-specific kconfig fragments 2016-02-25 09:47:52 -07:00
sysctl
timers Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial 2016-03-17 21:38:27 -07:00
user selftests: create test-specific kconfig fragments 2016-02-25 09:47:52 -07:00
vm selftests: create test-specific kconfig fragments 2016-02-25 09:47:52 -07:00
x86 selftests/x86: Add an iopl test 2016-03-17 09:49:26 +01:00
zram selftests: create test-specific kconfig fragments 2016-02-25 09:47:52 -07:00
Makefile selftest/ipc: actually test it 2015-11-23 13:21:15 -07:00
gen_kselftest_tar.sh selftests: Add tool to generate kselftest tar archive 2015-03-24 08:43:19 -06:00
kselftest.h kselftest: Add exit code defines 2015-05-26 15:58:08 -06:00
kselftest_install.sh
lib.mk selftests: change install command to rsync 2015-09-14 16:43:51 -06:00