提交 1f78dda2 编写于 作者: C Chunyan Zhang 提交者: Shuah Khan

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#L265Signed-off-by: NChunyan Zhang <zhang.chunyan@linaro.org>
Acked-by: NArnd Bergmann <arnd@arndb.de>
Signed-off-by: NShuah Khan <shuahkh@osg.samsung.com>
上级 f615e2bb
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册