From 0e64f1d7dd803cd95b646b53f638bfbd6d2d330b Mon Sep 17 00:00:00 2001 From: Orson Zhai Date: Thu, 10 Aug 2017 19:04:47 +0800 Subject: selftests: memfd: Align STACK_SIZE for ARM AArch64 system The stack size should be 16 bytes aligned in arm64 system. The similar patch has been merged already. > > 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 Signed-off-by: Orson Zhai Reviewed-by: Sumit Semwal Signed-off-by: Shuah Khan --- tools/testing/selftests/memfd/fuse_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/testing/selftests/memfd') diff --git a/tools/testing/selftests/memfd/fuse_test.c b/tools/testing/selftests/memfd/fuse_test.c index 67908b18f035..7f3617274bf5 100644 --- a/tools/testing/selftests/memfd/fuse_test.c +++ b/tools/testing/selftests/memfd/fuse_test.c @@ -33,7 +33,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) -- cgit v1.2.3