summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorOrson Zhai <orson.zhai@linaro.org>2017-08-10 19:04:47 +0800
committerShuah Khan <shuahkh@osg.samsung.com>2017-08-11 10:09:14 -0600
commit0e64f1d7dd803cd95b646b53f638bfbd6d2d330b (patch)
tree90a7c2cb24fae0bc141f1473135e76b7da246ce4 /tools
parent43c6437453f2e777da306c81c1cb47612e21e972 (diff)
downloadop-kernel-dev-0e64f1d7dd803cd95b646b53f638bfbd6d2d330b.zip
op-kernel-dev-0e64f1d7dd803cd95b646b53f638bfbd6d2d330b.tar.gz
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. > <commit id: 1f78dda2cf5e4eeb00aee2a01c9515e2e704b4c0> > 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 <zhang.chunyan@linaro.org> > Acked-by: Arnd Bergmann <arnd@arndb.de> > Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com> Signed-off-by: Orson Zhai <orson.zhai@linaro.org> Reviewed-by: Sumit Semwal <sumit.semwal@linaro.org> Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/testing/selftests/memfd/fuse_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/memfd/fuse_test.c b/tools/testing/selftests/memfd/fuse_test.c
index 67908b1..7f36172 100644
--- a/tools/testing/selftests/memfd/fuse_test.c
+++ b/tools/testing/selftests/memfd/fuse_test.c
@@ -33,7 +33,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)
OpenPOWER on IntegriCloud