Skip to content

Improvements to pkey tests

Sandipan Das linuxppc-dev 2 versions – Applied

Status from this message: Applied to powerpc/next.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest6 patches 1 replyApplied
  2. v15 patches 4 repliesSuperseded

Changes in v2 from the cover letter

- Added a wrapper for the gettid syscall based on suggestions from Michael and Christophe.

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/6selftests/powerpc: Move pkey helpers to headerstools/testing/selftests/powerpc/include/pkeys.h tools/testing/selftests/powerpc/include/utils.h tools/testing/selftests/powerpc/mm/pkey_exec_prot.c+114 -980 replies
2/6selftests/powerpc: Add pkey helpers for rightstools/testing/selftests/powerpc/include/pkeys.h tools/testing/selftests/powerpc/mm/pkey_exec_prot.c+48 -160 replies
3/6selftests/powerpc: Harden test for execute-disabled pkeystools/testing/selftests/powerpc/mm/pkey_exec_prot.c+41 -430 replies
4/6selftests/powerpc: Add helper to exit on failuretools/testing/selftests/powerpc/include/utils.h+9 -00 replies
5/6selftests/powerpc: Add wrapper for gettidtools/testing/selftests/powerpc/include/utils.h+10 -00 replies
6/6selftests/powerpc: Add test for pkey siginfo verificationtools/testing/selftests/powerpc/mm/.gitignore tools/testing/selftests/powerpc/mm/Makefile tools/testing/selftests/powerpc/mm/pkey_siginfo.c+337 -10 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH v2 0/6] Improvements to pkey tests

Based on recent bugs found in the pkey infrastructure, this improves the test for execute-disabled pkeys and adds a new test for detecting inconsistencies with the pkey reported by the signal information upon getting a fault.

Previous versions can be found at:
v1: https://lore.kernel.org/linuxppc-dev/[email protected]/

Changes in v2:
- Added a wrapper for the gettid syscall based on suggestions from Michael and Christophe.

Sandipan Das (6):
selftests/powerpc: Move pkey helpers to headers selftests/powerpc: Add pkey helpers for rights selftests/powerpc: Harden test for execute-disabled pkeys selftests/powerpc: Add helper to exit on failure selftests/powerpc: Add wrapper for gettid selftests/powerpc: Add test for pkey siginfo verification

 .../testing/selftests/powerpc/include/pkeys.h | 136 +++++++
 .../testing/selftests/powerpc/include/utils.h |  23 ++
 tools/testing/selftests/powerpc/mm/.gitignore |   1 +
 tools/testing/selftests/powerpc/mm/Makefile   |   5 +-
 .../selftests/powerpc/mm/pkey_exec_prot.c     | 210 +++--------
 .../selftests/powerpc/mm/pkey_siginfo.c       | 332 ++++++++++++++++++
 6 files changed, 554 insertions(+), 153 deletions(-)
 create mode 100644 tools/testing/selftests/powerpc/include/pkeys.h
 create mode 100644 tools/testing/selftests/powerpc/mm/pkey_siginfo.c
Signature · 1 line
2.25.1