diff options
author | Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com> | 2020-07-09 05:29:35 +0200 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2020-07-20 14:57:58 +0200 |
commit | 3e4352aeb8b17eb1040ba288f586620e8294389d (patch) | |
tree | 4082d39e1c1a7b709f32ee540b5142b384cac12a /arch/powerpc/include/asm/book3s/64/mmu.h | |
parent | powerpc/book3s64/pkeys: Make initial_allocation_mask static (diff) | |
download | linux-3e4352aeb8b17eb1040ba288f586620e8294389d.tar.xz linux-3e4352aeb8b17eb1040ba288f586620e8294389d.zip |
powerpc/book3s64/pkeys: Mark all the pkeys above max pkey as reserved
The hypervisor can return less than max allowed pkey (for ex: 31) instead
of 32. We should mark all the pkeys above max allowed as reserved so
that we avoid the allocation of the wrong pkey(for ex: key 31 in the above
case) by userspace.
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200709032946.881753-13-aneesh.kumar@linux.ibm.com
Diffstat (limited to 'arch/powerpc/include/asm/book3s/64/mmu.h')
0 files changed, 0 insertions, 0 deletions