Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1237080
| Path | csiph.com!eternal-september.org!feeder.eternal-september.org!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | Chunyan Zhang <zhang.chunyan@linaro.org> |
| Newsgroups | linux.kernel |
| Subject | [PATCH] selftests: memfd_test: Revised STACK_SIZE to make it 16-byte aligned |
| Date | Thu, 01 Oct 2015 09:40:01 +0200 |
| Message-ID | <qeGD7-5vh-1@gated-at.bofh.it> (permalink) |
| X-Original-To | shuahkh@osg.samsung.com |
| X-Google-Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=7k0pPj/E+S1wugZGbiqezgM+jeL4/DRs63Z/JIc5uAw=; b=UPNoNfOkEP8ai7HhKZsa4zYI5e58TlKFXm9+PmyLMyZ9caa9xXBocUdjvJtSZrvAcH c0sRM40CqnqI2cRkwMSEp5l7tRXRIVkoIBmGv2zdHuYCyifyAhs6c7x1BUgTCCFoNCsy bHQhllTNN8FblXlU3DltJ5FoJFgxBmkB0GU6cnr+MHF5iV3lOfS7DOY9MzXuG9nfJ+Gp OVejxaIv+dNjKwcZA09r0ebcWhL06sHABmtltl0VXzZq13Xz0yjw5+lfncwQ/SGGkuSw MhlXU6JQ1Xyj1wZSbfIBIdbw7pfhHH1aGPU7VBvXMrzbheA1xlVF4xFzLCcn4KEKJABJ Bofg== |
| X-Gm-Message-State | ALoCoQljCHIAw0LmKAPFYUw0XdBcuFG2UDQ5a4sWmZP/IRyERs3P03viOJ1MDG07jYx3LmBOgJP1 |
| X-Received | by 10.68.88.130 with SMTP id bg2mr10263056pbb.129.1443685048266; Thu, 01 Oct 2015 00:37:28 -0700 (PDT) |
| X-Mailer | git-send-email 1.9.1 |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 32 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | linux-api@vger.kernel.org, linux-kernel@vger.kernel.org |
| X-Original-Date | Thu, 1 Oct 2015 15:33:02 +0800 |
| X-Original-Message-ID | <1443684782-10898-1-git-send-email-zhang.chunyan@linaro.org> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1237080 |
Show key headers only | View raw
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/
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
[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
csiph-web