commit | 3488a600d90bcaf061b104dbcfbdc8d99b398312 | [log] [tgz] |
---|---|---|
author | Dave Hansen <[email protected]> | Wed May 09 10:13:56 2018 -0700 |
committer | Ingo Molnar <[email protected]> | Mon May 14 11:14:45 2018 +0200 |
tree | c56c21499e9a180a2ffde5a37bcb9179a78c6d5e | |
parent | acb25d761d6f2f64e785ccefc71e54f244f1eda4 [diff] |
x86/pkeys/selftests: Add a test for pkey 0 Protection key 0 is the default key for all memory and will not normally come back from pkey_alloc(). But, you might still want pass it to mprotect_pkey(). This check ensures that you can use pkey 0. 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]>