Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1237080 > unrolled thread

[PATCH] selftests: memfd_test: Revised STACK_SIZE to make it 16-byte aligned

Started byChunyan Zhang <zhang.chunyan@linaro.org>
First post2015-10-01 09:40 +0200
Last post2015-10-01 09:40 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH] selftests: memfd_test: Revised STACK_SIZE to make it 16-byte aligned Chunyan Zhang <zhang.chunyan@linaro.org> - 2015-10-01 09:40 +0200

#1237080 — [PATCH] selftests: memfd_test: Revised STACK_SIZE to make it 16-byte aligned

FromChunyan Zhang <zhang.chunyan@linaro.org>
Date2015-10-01 09:40 +0200
Subject[PATCH] selftests: memfd_test: Revised STACK_SIZE to make it 16-byte aligned
Message-ID<qeGD7-5vh-1@gated-at.bofh.it>
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

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web