Skip to content

Commit 0e64f1d

Browse files
Orson ZhaiShuah Khan
authored andcommitted
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: 1f78dda> > 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]> Signed-off-by: Orson Zhai <[email protected]> Reviewed-by: Sumit Semwal <[email protected]> Signed-off-by: Shuah Khan <[email protected]>
1 parent 43c6437 commit 0e64f1d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/testing/selftests/memfd/fuse_test.c

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

3535
#define MFD_DEF_SIZE 8192
36-
#define STACK_SIZE 65535
36+
#define STACK_SIZE 65536
3737

3838
static int sys_memfd_create(const char *name,
3939
unsigned int flags)

0 commit comments

Comments
 (0)