selftests/vm/pkeys: Bug fixes and a new test
Status from this message: [merged] selftests-vm-pkeys-exercise-x86-xsave-init-state.patch removed from -mm tree
Get series with b4
b4 am [email protected]Versions newest first
Patches in v1 All 4 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | selftests/vm/pkeys: Fix alloc_random_pkey() to make it really, really randomtools/ | +2 | 0 replies | Applied |
| 2/4 | selftests/vm/pkeys: Handle negative sys_pkey_alloc() return codetools/ | +1 | 0 replies | Applied |
| 3/4 | selftests/vm/pkeys: Refill shadow register after implicit kernel writetools/ | +7 | 0 replies | Applied |
| 4/4 | selftests/vm/pkeys: Exercise x86 XSAVE init statetools/ tools/ tools/ | +76 | 0 replies | Applied |
Reviews trailers per patch
None of the 4 patches has a Reviewed-by or Acked-by.
| Patch | Aneesh Kumar K.V |
|---|---|
| Series | T-b |
| 1/4 | |
| 2/4 | |
| 3/4 | |
| 4/4 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/4] selftests/vm/pkeys: Bug fixes and a new test
There has been a lot of activity on the x86 front around the XSAVE architecture which is used to context-switch processor state (among other things). In addition, AMD has recently joined the protection keys club by adding processor support for PKU.
The AMD implementation helped uncover a kernel bug around the PKRU "init state", which actually applied to Intel's implementation but was just harder to hit. This series adds a test which is expected to help find this class of bug both on AMD and Intel. All the work around pkeys on x86 also uncovered a few bugs in the selftest.
Any testing of this new code (especially from my powerpc friends) would be appreciated.