Skip to content

selftests/vm/pkeys: Bug fixes and a new test

Dave Hansen linux-mm lkml 1 version Applied

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

  1. v1 Latest4 patches 1 replyApplied 4/4

Patches in v1 All 4 applied

#Subject and filesSizeRepliesApplied
1/4selftests/vm/pkeys: Fix alloc_random_pkey() to make it really, really randomtools/testing/selftests/vm/protection_keys.c+2 -10 repliesApplied
2/4selftests/vm/pkeys: Handle negative sys_pkey_alloc() return codetools/testing/selftests/vm/protection_keys.c+1 -10 repliesApplied
3/4selftests/vm/pkeys: Refill shadow register after implicit kernel writetools/testing/selftests/vm/protection_keys.c+7 -00 repliesApplied
4/4selftests/vm/pkeys: Exercise x86 XSAVE init statetools/testing/selftests/vm/Makefile tools/testing/selftests/vm/pkey-x86.h tools/testing/selftests/vm/protection_keys.c+76 -20 repliesApplied

Reviews trailers per patch

None of the 4 patches has a Reviewed-by or Acked-by.

PatchAneesh Kumar K.V
SeriesT-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.

Read the v1 thread

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.

Cc Thomas Gleixner <[email protected]>
Cc Ram Pai <[email protected]>
Cc Sandipan Das <[email protected]>
Cc Andrew Morton <[email protected]>
Cc Florian Weimer <[email protected]>
Cc "Desnes A. Nunes do Rosario" <[email protected]>
Cc Ingo Molnar <[email protected]>
Cc Thiago Jung Bauermann <[email protected]>
Cc "Aneesh Kumar K.V" <[email protected]>
Cc Michael Ellerman <[email protected]>
Cc Michal Hocko <[email protected]>
Cc Michal Suchanek <[email protected]>
Cc Shuah Khan <[email protected]>