selftests: memfd_test: Revised STACK_SIZE to make it 16-byte aligned
authorChunyan Zhang <zhang.chunyan@linaro.org>
Thu, 1 Oct 2015 07:33:02 +0000 (15:33 +0800)
committerShuah Khan <shuahkh@osg.samsung.com>
Fri, 16 Oct 2015 02:00:32 +0000 (20:00 -0600)
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 <zhang.chunyan@linaro.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
tools/testing/selftests/memfd/memfd_test.c

index 0b9eafb..aa5d3eb 100644 (file)
@@ -18,7 +18,7 @@
 #include <unistd.h>
 
 #define MFD_DEF_SIZE 8192
-#define STACK_SIZE 65535
+#define STACK_SIZE 65536
 
 static int sys_memfd_create(const char *name,
                            unsigned int flags)