public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] selftests: memfd_test: Revised STACK_SIZE to make it 16-byte aligned
@ 2015-10-01  7:33 Chunyan Zhang
  2015-10-15  3:22 ` Chunyan Zhang
  2015-10-15  8:44 ` Arnd Bergmann
  0 siblings, 2 replies; 4+ messages in thread
From: Chunyan Zhang @ 2015-10-01  7:33 UTC (permalink / raw)
  To: shuahkh; +Cc: linux-api, linux-kernel

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>
---
 tools/testing/selftests/memfd/memfd_test.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/testing/selftests/memfd/memfd_test.c b/tools/testing/selftests/memfd/memfd_test.c
index 0b9eafb..aa5d3eb 100644
--- a/tools/testing/selftests/memfd/memfd_test.c
+++ b/tools/testing/selftests/memfd/memfd_test.c
@@ -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)
-- 
1.9.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-10-15 13:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-01  7:33 [PATCH] selftests: memfd_test: Revised STACK_SIZE to make it 16-byte aligned Chunyan Zhang
2015-10-15  3:22 ` Chunyan Zhang
2015-10-15  8:44 ` Arnd Bergmann
2015-10-15 13:50   ` Shuah Khan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox