linux-kselftest.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [Linux-kselftest-mirror] [PATCH v10 00/24] selftests, powerpc, x86 : Memory Protection Keys
@ 2018-01-22 18:51 linuxram
  2018-01-22 18:51 ` Ram Pai
                   ` (24 more replies)
  0 siblings, 25 replies; 50+ messages in thread
From: linuxram @ 2018-01-22 18:51 UTC (permalink / raw)


Memory protection keys enable applications to protect its address space from
inadvertent access from itself.

This feature is now enabled on powerpc architecture.  The patches move the
selftests to arch neutral directory and enhances them. Verified for correctness
on powerpc and on x86 architectures(using EC2 ubuntu VM instances).

Ram Pai (21):
  selftests/x86: Move protecton key selftest to arch neutral directory
  selftests/vm: rename all references to pkru to a generic name
  selftests/vm: move generic definitions to header file
  selftests/vm: typecast the pkey register
  selftests/vm: generic function to handle shadow key register
  selftests/vm: fix the wrong assert in pkey_disable_set()
  selftests/vm: fixed bugs in pkey_disable_clear()
  selftests/vm: clear the bits in shadow reg when a pkey is freed.
  selftests/vm: fix alloc_random_pkey() to make it really random
  selftests/vm: introduce two arch independent abstraction
  selftests/vm: pkey register should match shadow pkey
  selftests/vm: generic cleanup
  selftests/vm: powerpc implementation for generic abstraction
  selftests/vm: clear the bits in shadow reg when a pkey is freed.
  selftests/vm: powerpc implementation to check support for pkey
  selftests/vm: fix an assertion in test_pkey_alloc_exhaust()
  selftests/vm: associate key on a mapped page and detect access
    violation
  selftests/vm: associate key on a mapped page and detect write
    violation
  selftests/vm: detect write violation on a mapped access-denied-key
    page
  selftests/vm: testcases must restore pkey-permissions
  selftests/vm: sub-page allocator

Thiago Jung Bauermann (3):
  selftests/vm: Fix deadlock in protection_keys.c
  selftests/powerpc: Add ptrace tests for Protection Key register
  selftests/powerpc: Add core file test for Protection Key register

 tools/testing/selftests/powerpc/include/reg.h      |    1 +
 tools/testing/selftests/powerpc/ptrace/Makefile    |    5 +-
 tools/testing/selftests/powerpc/ptrace/core-pkey.c |  438 ++++++
 .../testing/selftests/powerpc/ptrace/ptrace-pkey.c |  443 ++++++
 tools/testing/selftests/vm/Makefile                |    1 +
 tools/testing/selftests/vm/pkey-helpers.h          |  419 ++++++
 tools/testing/selftests/vm/protection_keys.c       | 1471 ++++++++++++++++++++
 tools/testing/selftests/x86/Makefile               |    2 +-
 tools/testing/selftests/x86/pkey-helpers.h         |  223 ---
 tools/testing/selftests/x86/protection_keys.c      | 1407 -------------------
 10 files changed, 2778 insertions(+), 1632 deletions(-)
 create mode 100644 tools/testing/selftests/powerpc/ptrace/core-pkey.c
 create mode 100644 tools/testing/selftests/powerpc/ptrace/ptrace-pkey.c
 create mode 100644 tools/testing/selftests/vm/pkey-helpers.h
 create mode 100644 tools/testing/selftests/vm/protection_keys.c
 delete mode 100644 tools/testing/selftests/x86/pkey-helpers.h
 delete mode 100644 tools/testing/selftests/x86/protection_keys.c

--
To unsubscribe from this list: send the line "unsubscribe linux-kselftest" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 50+ messages in thread

end of thread, other threads:[~2018-01-22 18:52 UTC | newest]

Thread overview: 50+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-22 18:51 [Linux-kselftest-mirror] [PATCH v10 00/24] selftests, powerpc, x86 : Memory Protection Keys linuxram
2018-01-22 18:51 ` Ram Pai
2018-01-22 18:51 ` [Linux-kselftest-mirror] [PATCH v10 01/24] selftests/x86: Move protecton key selftest to arch neutral directory linuxram
2018-01-22 18:51   ` Ram Pai
2018-01-22 18:51 ` [Linux-kselftest-mirror] [PATCH v10 02/24] selftests/vm: rename all references to pkru to a generic name linuxram
2018-01-22 18:51   ` Ram Pai
2018-01-22 18:51 ` [Linux-kselftest-mirror] [PATCH v10 03/24] selftests/vm: move generic definitions to header file linuxram
2018-01-22 18:51   ` Ram Pai
2018-01-22 18:51 ` [Linux-kselftest-mirror] [PATCH v10 04/24] selftests/vm: typecast the pkey register linuxram
2018-01-22 18:51   ` Ram Pai
2018-01-22 18:51 ` [Linux-kselftest-mirror] [PATCH v10 05/24] selftests/vm: generic function to handle shadow key register linuxram
2018-01-22 18:51   ` Ram Pai
2018-01-22 18:51 ` [Linux-kselftest-mirror] [PATCH v10 06/24] selftests/vm: fix the wrong assert in pkey_disable_set() linuxram
2018-01-22 18:51   ` Ram Pai
2018-01-22 18:52 ` [Linux-kselftest-mirror] [PATCH v10 07/24] selftests/vm: fixed bugs in pkey_disable_clear() linuxram
2018-01-22 18:52   ` Ram Pai
2018-01-22 18:52 ` [Linux-kselftest-mirror] [PATCH v10 08/24] selftests/vm: clear the bits in shadow reg when a pkey is freed linuxram
2018-01-22 18:52   ` Ram Pai
2018-01-22 18:52 ` [Linux-kselftest-mirror] [PATCH v10 09/24] selftests/vm: fix alloc_random_pkey() to make it really random linuxram
2018-01-22 18:52   ` Ram Pai
2018-01-22 18:52 ` [Linux-kselftest-mirror] [PATCH v10 10/24] selftests/vm: introduce two arch independent abstraction linuxram
2018-01-22 18:52   ` Ram Pai
2018-01-22 18:52 ` [Linux-kselftest-mirror] [PATCH v10 11/24] selftests/vm: pkey register should match shadow pkey linuxram
2018-01-22 18:52   ` Ram Pai
2018-01-22 18:52 ` [Linux-kselftest-mirror] [PATCH v10 12/24] selftests/vm: generic cleanup linuxram
2018-01-22 18:52   ` Ram Pai
2018-01-22 18:52 ` [Linux-kselftest-mirror] [PATCH v10 13/24] selftests/vm: powerpc implementation for generic abstraction linuxram
2018-01-22 18:52   ` Ram Pai
2018-01-22 18:52 ` [Linux-kselftest-mirror] [PATCH v10 14/24] selftests/vm: clear the bits in shadow reg when a pkey is freed linuxram
2018-01-22 18:52   ` Ram Pai
2018-01-22 18:52 ` [Linux-kselftest-mirror] [PATCH v10 15/24] selftests/vm: powerpc implementation to check support for pkey linuxram
2018-01-22 18:52   ` Ram Pai
2018-01-22 18:52 ` [Linux-kselftest-mirror] [PATCH v10 16/24] selftests/vm: fix an assertion in test_pkey_alloc_exhaust() linuxram
2018-01-22 18:52   ` Ram Pai
2018-01-22 18:52 ` [Linux-kselftest-mirror] [PATCH v10 17/24] selftests/vm: associate key on a mapped page and detect access violation linuxram
2018-01-22 18:52   ` Ram Pai
2018-01-22 18:52 ` [Linux-kselftest-mirror] [PATCH v10 18/24] selftests/vm: associate key on a mapped page and detect write violation linuxram
2018-01-22 18:52   ` Ram Pai
2018-01-22 18:52 ` [Linux-kselftest-mirror] [PATCH v10 19/24] selftests/vm: detect write violation on a mapped access-denied-key page linuxram
2018-01-22 18:52   ` Ram Pai
2018-01-22 18:52 ` [Linux-kselftest-mirror] [PATCH v10 20/24] selftests/vm: testcases must restore pkey-permissions linuxram
2018-01-22 18:52   ` Ram Pai
2018-01-22 18:52 ` [Linux-kselftest-mirror] [PATCH v10 21/24] selftests/vm: sub-page allocator linuxram
2018-01-22 18:52   ` Ram Pai
2018-01-22 18:52 ` [Linux-kselftest-mirror] [PATCH v10 22/24] selftests/vm: Fix deadlock in protection_keys.c linuxram
2018-01-22 18:52   ` Ram Pai
2018-01-22 18:52 ` [Linux-kselftest-mirror] [PATCH v10 23/24] selftests/powerpc: Add ptrace tests for Protection Key register linuxram
2018-01-22 18:52   ` Ram Pai
2018-01-22 18:52 ` [Linux-kselftest-mirror] [PATCH v10 24/24] selftests/powerpc: Add core file test " linuxram
2018-01-22 18:52   ` Ram Pai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).