From: Dmitry V. Levin Date: Fri, 14 Apr 2017 01:21:19 +0000 (+0000) Subject: tests: fix ioctl_nsfs.test on hppa X-Git-Tag: v4.17~100 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=05a9a86c2305edeacdd0b00e826a33aa62169a49;p=strace tests: fix ioctl_nsfs.test on hppa * tests/ioctl_nsfs.c (test_user_namespace): Specify an address in the middle of a mapped page as child_stack address argument of the clone call. [IA64] (clone): Update. --- diff --git a/tests/ioctl_nsfs.c b/tests/ioctl_nsfs.c index c784c49d..b2dbd1ba 100644 --- a/tests/ioctl_nsfs.c +++ b/tests/ioctl_nsfs.c @@ -106,7 +106,7 @@ child(void *arg) #ifdef IA64 extern int __clone2(int (*)(void *), void *, size_t, int, void *, ...); # define clone(fn, child_stack, flags, arg) \ - __clone2(fn, child_stack - 4096, 4096, flags, arg) + __clone2(fn, child_stack, get_page_size() / 2, flags, arg) #endif static void @@ -119,7 +119,7 @@ test_user_namespace(void) if (pipe(pipefd)) perror_msg_and_fail("pipe"); - pid = clone(child, tail_alloc(1) + 1, + pid = clone(child, tail_alloc(get_page_size() / 2), CLONE_NEWUSER | CLONE_UNTRACED | SIGCHLD, pipefd); if (pid == -1) { perror("clone");