selftests, powerpc, x86 : Memory Protection Keys
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v14 Latest22 patches 16 repliesIn review
- v13 posting 3/324 patches 24 repliesSuperseded
- v13 posting 2/32 of 3 patches 4 repliesSuperseded
Earlier versions · 17
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v13 posting 1/3 | 3 patches | 0 replies | Superseded | |
| v12 posting 2/2 | 22 patches | 26 replies | Superseded | |
| v12 posting 1/2 | 3 patches | 8 replies | Superseded | |
| v11 | 3 patches | 5 replies | Superseded | |
| v10 posting 4/4 | 24 patches | 0 replies | Superseded | |
| v10 posting 3/4 | 2 patches | 0 replies | Superseded | |
| v10 posting 2/4 | 2 of 27 patches | 1 reply | Superseded | |
| v10 posting 1/4 | 27 patches | 8 replies | Superseded | |
| v9 | 51 patches | 24 replies | Superseded | |
| v7 RFC posting 2/2 | 25 patches | 41 replies | Superseded | |
| v7 RFC posting 1/2 | 25 patches | 0 replies | Superseded | |
| v6 RFC | 62 patches | 40 replies | Superseded | |
| v5 RFC | 38 patches | 53 replies | Superseded | |
| v4 RFC | 17 patches | 7 replies | Superseded | |
| v3 RFC | 23 patches | 6 replies | Superseded | |
| v2 RFC | 12 patches | 43 replies | Superseded | |
| v1 RFC | 7 patches | 15 replies | Superseded |
Patches in v14 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/22 | selftests/x86: Move protecton key selftest to arch neutral directorytools/ tools/ tools/ +4 more | +1706 | 1 reply | |
| 2/22 | selftests/vm: rename all references to pkru to a generic nametools/ tools/ | +169 | 0 replies | |
| 3/22 | selftests/vm: move generic definitions to header filetools/ tools/ | +30 | 1 reply | |
| 4/22 | selftests/vm: move arch-specific definitions to arch-specific headertools/ tools/ tools/ | +162 | 1 reply | |
| 5/22 | selftests/vm: Make gcc check arguments of sigsafe_printf()tools/ | +4 | 0 replies | |
| 6/22 | selftests/vm: typecast the pkey registertools/ tools/ tools/ | +73 | 1 reply | |
| 7/22 | selftests/vm: generic function to handle shadow key registertools/ tools/ tools/ | +56 | 1 reply | |
| 8/22 | selftests/vm: fix the wrong assert in pkey_disable_set()tools/ | +1 | 1 reply | |
| 9/22 | selftests/vm: fixed bugs in pkey_disable_clear()tools/ | +2 | 1 reply | |
| 10/22 | selftests/vm: fix alloc_random_pkey() to make it really randomtools/ | +5 | 1 reply | |
| 11/22 | selftests/vm: introduce two arch independent abstractiontools/ tools/ tools/ | +14 | 1 reply | |
| 12/22 | selftests/vm: pkey register should match shadow pkeytools/ | +2 | 1 reply | |
| 13/22 | selftests/vm: generic cleanuptools/ | +43 | 1 reply | |
| 14/22 | selftests/vm: Introduce generic abstractionstools/ tools/ tools/ +1 more | +153 | 1 reply | |
| 15/22 | selftests/vm: powerpc implementation to check support for pkeytools/ tools/ tools/ +1 more | +23 | 1 reply | |
| 16/22 | selftests/vm: fix an assertion in test_pkey_alloc_exhaust()tools/ | +4 | 1 reply | |
| 17/22 | selftests/vm: associate key on a mapped page and detect access violationtools/ | +19 | 0 replies | |
| 18/22 | selftests/vm: associate key on a mapped page and detect write violationtools/ | +12 | 0 replies | |
| 19/22 | selftests/vm: detect write violation on a mapped access-denied-key pagetools/ | +13 | 0 replies | |
| 20/22 | selftests/vm: testcases must restore pkey-permissionstools/ | +5 | 1 reply | |
| 21/22 | selftests/vm: sub-page allocatortools/ tools/ tools/ +1 more | +37 | 0 replies | |
| 22/22 | selftests/vm: test correct behavior of pkey-0tools/ | +64 | 1 reply |
Reviews trailers per patch
11 of 22 patches have a Reviewed-by or Acked-by.
| Patch | Ingo Molnar | Dave Hansen |
|---|---|---|
| 1/22 | A-b | A-b |
| 2/22 | R-b | |
| 3/22 | A-b | |
| 4/22 | A-b | |
| 5/22 | ||
| 6/22 | A-b | |
| 7/22 | ||
| 8/22 | ||
| 9/22 | A-b | |
| 10/22 | A-b | |
| 11/22 | R-b | |
| 12/22 | ||
| 13/22 | ||
| 14/22 | ||
| 15/22 | ||
| 16/22 | ||
| 17/22 | A-b | |
| 18/22 | A-b | |
| 19/22 | A-b | |
| 20/22 | ||
| 21/22 | ||
| 22/22 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v14 00/22] selftests, powerpc, x86 : Memory Protection Keys
Memory protection keys enables an application to protect its address space from inadvertent access by its own code.
This feature is now enabled on powerpc architecture and integrated in 4.16-rc1. The patches move the selftests to arch neutral directory and enhance their test coverage.
Test
----
Verified for correctness on powerpc and on x86.
History:
-------
version 14:
(1) incorporated another round of comments from Dave Hansen.
version 13:
(1) Incorporated comments for Dave Hansen.
(2) Added one more test for correct pkey-0 behavior.
version 12:
(1) fixed the offset of pkey field in the siginfo structure for x86_64 and powerpc. And tries to use the actual field if the headers have it defined.
version 11:
(1) fixed a deadlock in the ptrace testcase.
version 10 and prior:
(1) moved the testcase to arch neutral directory
(2) split the changes into incremental patches.
Ram Pai (20):
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: 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: Introduce generic abstractions 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
selftests/vm: test correct behavior of pkey-0
Thiago Jung Bauermann (2):
selftests/vm: move arch-specific definitions to arch-specific header selftests/vm: Make gcc check arguments of sigsafe_printf()
tools/testing/selftests/vm/.gitignore | 1 + tools/testing/selftests/vm/Makefile | 1 + tools/testing/selftests/vm/pkey-helpers.h | 214 ++++ tools/testing/selftests/vm/pkey-powerpc.h | 128 ++ tools/testing/selftests/vm/pkey-x86.h | 184 +++ tools/testing/selftests/vm/protection_keys.c | 1593 +++++++++++++++++++++++++ tools/testing/selftests/x86/.gitignore | 1 - tools/testing/selftests/x86/pkey-helpers.h | 219 ---- tools/testing/selftests/x86/protection_keys.c | 1485 ----------------------- 9 files changed, 2121 insertions(+), 1705 deletions(-) create mode 100644 tools/testing/selftests/vm/pkey-helpers.h create mode 100644 tools/testing/selftests/vm/pkey-powerpc.h create mode 100644 tools/testing/selftests/vm/pkey-x86.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