Members of struct clone_args that represent pointers have already been enlarged to hold capabilities in PCuABI. However, for that to be useful, we also need to make sure that pointers are stored there as uintptr_t, instead of truncating them to 64-bit integers.
Signed-off-by: Kevin Brodsky kevin.brodsky@arm.com --- testcases/kernel/syscalls/clone3/clone301.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/testcases/kernel/syscalls/clone3/clone301.c b/testcases/kernel/syscalls/clone3/clone301.c index d0fadbc5d033..75a67c0bde47 100644 --- a/testcases/kernel/syscalls/clone3/clone301.c +++ b/testcases/kernel/syscalls/clone3/clone301.c @@ -114,9 +114,9 @@ static void run(unsigned int n) pid_t pid;
args->flags = tc->flags; - args->pidfd = (uint64_t)(&pidfd); - args->child_tid = (uint64_t)(&child_tid); - args->parent_tid = (uint64_t)(&parent_tid); + args->pidfd = (uintptr_t)(&pidfd); + args->child_tid = (uintptr_t)(&child_tid); + args->parent_tid = (uintptr_t)(&parent_tid); args->exit_signal = tc->exit_signal; args->stack = 0; args->stack_size = 0;