mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 01:10:04 +00:00
selftests/powerpc: Fix ptrace-pkey for default execute permission change
The test case assumes execute-permissions of unallocated keys are enabled by default, which is incorrect. Reviewed-by: Thiago Jung Bauermann <bauerman@linux.ibm.com> Signed-off-by: Ram Pai <linuxram@us.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
This commit is contained in:
parent
5db26e8903
commit
29e8131cd7
1 changed files with 4 additions and 0 deletions
|
@ -104,6 +104,10 @@ static int child(struct shared_info *info)
|
|||
|
||||
if (disable_execute)
|
||||
info->expected_iamr |= 1ul << pkeyshift(pkey1);
|
||||
else
|
||||
info->expected_iamr &= ~(1ul << pkeyshift(pkey1));
|
||||
|
||||
info->expected_iamr &= ~(1ul << pkeyshift(pkey2) | 1ul << pkeyshift(pkey3));
|
||||
|
||||
info->expected_uamor |= 3ul << pkeyshift(pkey1) |
|
||||
3ul << pkeyshift(pkey2);
|
||||
|
|
Loading…
Reference in a new issue