Skip to content

Commit

Permalink
selftests: memfd_test: Revised STACK_SIZE to make it 16-byte aligned
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Chunyan Zhang authored and Shuah Khan committed Oct 16, 2015
1 parent f615e2b commit 1f78dda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/testing/selftests/memfd/memfd_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1f78dda

Please sign in to comment.