Skip to content

selftests/x86/xstate: more test cases for coredump and ptrace

Chang S. Bae linux-kselftest lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6selftests/x86/xstate: Track testing status by kselftest APItools/testing/selftests/x86/amx.c tools/testing/selftests/x86/apx.c tools/testing/selftests/x86/avx.c +2 more+142 -550 replies
2/6selftests/x86/xstate: Pre-allocate ptracee XSAVE buffertools/testing/selftests/x86/xstate.c+10 -100 replies
3/6selftests/x86/xstate: Validate XSTATE_BV in ptrace testtools/testing/selftests/x86/xstate.c+8 -01 reply
4/6selftests/x86/xstate: Validate state reset in ptrace testtools/testing/selftests/x86/xstate.c+19 -10 replies
5/6selftests/x86/xstate: Add coredump testtools/testing/selftests/x86/coredump.h tools/testing/selftests/x86/xstate.c+308 -200 replies
6/6selftests/mm: Add coredump test for x86tools/testing/selftests/mm/Makefile tools/testing/selftests/mm/pkey-x86.h tools/testing/selftests/mm/pkey_coredump_tests.c +1 more+102 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/6] selftests/x86/xstate: more test cases for coredump and ptrace

The recent PKRU bugfix [*] has motivated to address the missing test coverage for the case.

Since other XSTATE tests do not cover the coredump path either, ad x86 tests with shareable helpers and then include the PKRU test by reusing them.

While doing so, I also found a few missing ptrace cases and the gap of inefficient error tracking to those common tests. So the series ended up growing to address those things.

Thanks,
Chang

[*] https://lore.kernel.org/lkml/[email protected]

Chang S. Bae (6):
selftests/x86/xstate: Track testing status by kselftest API selftests/x86/xstate: Pre-allocate ptracee XSAVE buffer selftests/x86/xstate: Validate XSTATE_BV in ptrace test selftests/x86/xstate: Validate state reset in ptrace test selftests/x86/xstate: Add coredump test selftests/mm: Add coredump test for x86

 tools/testing/selftests/mm/Makefile           |   2 +-
 tools/testing/selftests/mm/pkey-x86.h         |   1 +
 .../selftests/mm/pkey_coredump_tests.c        |  89 +++++++
 tools/testing/selftests/mm/run_vmtests.sh     |  11 +
 tools/testing/selftests/x86/amx.c             |   5 +-
 tools/testing/selftests/x86/apx.c             |   2 +-
 tools/testing/selftests/x86/avx.c             |  33 ++-
 tools/testing/selftests/x86/coredump.h        | 229 ++++++++++++++++
 tools/testing/selftests/x86/xstate.c          | 246 ++++++++++++++----
 tools/testing/selftests/x86/xstate.h          |   2 +-
 10 files changed, 561 insertions(+), 59 deletions(-)
 create mode 100644 tools/testing/selftests/mm/pkey_coredump_tests.c
 create mode 100644 tools/testing/selftests/x86/coredump.h

base-commit: 7475ea8b58616b33c04afb976cf0fbaad9dd63fb

Signature · 1 line
2.53.0