History

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

Chunyan Zhang committed 11 years ago

Commit 1f78dda1 parent f615e2b1 file · +1 −1Browse files

Unified · Split

tools/testing/selftests/memfd/memfd_test.c+1−1
@@ -18,7 +18,7 @@ · 17 unmodified lines
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)