From 1f78dda2cf5e4eeb00aee2a01c9515e2e704b4c0 Mon Sep 17 00:00:00 2001 From: Chunyan Zhang Date: Thu, 1 Oct 2015 15:33:02 +0800 Subject: [PATCH] selftests: memfd_test: Revised STACK_SIZE to make it 16-byte aligned There is a mandate of 16-byte aligned stack on AArch64 [1], so the STACK_SIZE here should also be 16-byte aligned, otherwise we would get an error when calling clone(). [1] http://lxr.free-electrons.com/source/arch/arm64/kernel/process.c#L265 Signed-off-by: Chunyan Zhang Acked-by: Arnd Bergmann Signed-off-by: Shuah Khan --- tools/testing/selftests/memfd/memfd_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/memfd/memfd_test.c b/tools/testing/selftests/memfd/memfd_test.c index 0b9eafb7ab7b..aa5d3ebbd760 100644 --- a/tools/testing/selftests/memfd/memfd_test.c +++ b/tools/testing/selftests/memfd/memfd_test.c @@ -18,7 +18,7 @@ #include #define MFD_DEF_SIZE 8192 -#define STACK_SIZE 65535 +#define STACK_SIZE 65536 static int sys_memfd_create(const char *name, unsigned int flags) -- 2.20.1