Commit 29e8131c authored by Ram Pai's avatar Ram Pai Committed by Michael Ellerman

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: default avatarThiago Jung Bauermann <bauerman@linux.ibm.com>
Signed-off-by: default avatarRam Pai <linuxram@us.ibm.com>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent 5db26e89
...@@ -104,6 +104,10 @@ static int child(struct shared_info *info) ...@@ -104,6 +104,10 @@ static int child(struct shared_info *info)
if (disable_execute) if (disable_execute)
info->expected_iamr |= 1ul << pkeyshift(pkey1); 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) | info->expected_uamor |= 3ul << pkeyshift(pkey1) |
3ul << pkeyshift(pkey2); 3ul << pkeyshift(pkey2);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment