commit | f50b4878329ab61d8e05796f655adeb6f5fb57c6 | [log] [tgz] |
---|---|---|
author | Dave Hansen <[email protected]> | Wed May 09 10:13:50 2018 -0700 |
committer | Ingo Molnar <[email protected]> | Mon May 14 11:14:45 2018 +0200 |
tree | 60d88c468ac853a3982ab8221a19a363f69780d6 | |
parent | 6af17cf89e99b64cf1f660bf848755442ab2f047 [diff] |
x86/pkeys/selftests: Fix pkey exhaustion test off-by-one In our "exhaust all pkeys" test, we make sure that there is the expected number available. Turns out that the test did not cover the execute-only key, but discussed it anyway. It did *not* discuss the test-allocated key. Now that we have a test for the mprotect(PROT_EXEC) case, this off-by-one issue showed itself. Correct the off-by- one and add the explanation for the case we missed. Signed-off-by: Dave Hansen <[email protected]> Cc: Andrew Morton <[email protected]> Cc: Dave Hansen <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: Michael Ellermen <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Ram Pai <[email protected]> Cc: Shuah Khan <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: [email protected] Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Ingo Molnar <[email protected]>