diff options
author | Dave Hansen <dave.hansen@linux.intel.com> | 2018-05-09 10:13:56 -0700 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2018-05-14 11:14:45 +0200 |
commit | 3488a600d90bcaf061b104dbcfbdc8d99b398312 (patch) | |
tree | c56c21499e9a180a2ffde5a37bcb9179a78c6d5e /tools/arch/sparc/include | |
parent | acb25d761d6f2f64e785ccefc71e54f244f1eda4 (diff) | |
download | linux-3488a600d90bcaf061b104dbcfbdc8d99b398312.tar.gz linux-3488a600d90bcaf061b104dbcfbdc8d99b398312.tar.bz2 linux-3488a600d90bcaf061b104dbcfbdc8d99b398312.zip |
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 <dave.hansen@linux.intel.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Dave Hansen <dave.hansen@intel.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Michael Ellermen <mpe@ellerman.id.au>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Ram Pai <linuxram@us.ibm.com>
Cc: Shuah Khan <shuah@kernel.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-mm@kvack.org
Link: http://lkml.kernel.org/r/20180509171356.9E40B254@viggo.jf.intel.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'tools/arch/sparc/include')
0 files changed, 0 insertions, 0 deletions