Skip to content

Commit 1f78dda

Browse files
Chunyan ZhangShuah Khan
authored andcommitted
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 <[email protected]> Acked-by: Arnd Bergmann <[email protected]> Signed-off-by: Shuah Khan <[email protected]>
1 parent f615e2b commit 1f78dda

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/testing/selftests/memfd/memfd_test.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#include <unistd.h>
1919

2020
#define MFD_DEF_SIZE 8192
21-
#define STACK_SIZE 65535
21+
#define STACK_SIZE 65536
2222

2323
static int sys_memfd_create(const char *name,
2424
unsigned int flags)

0 commit comments

Comments
 (0)