From patchwork Thu Oct 1 07:33:02 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chunyan Zhang X-Patchwork-Id: 54344 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f72.google.com (mail-la0-f72.google.com [209.85.215.72]) by patches.linaro.org (Postfix) with ESMTPS id 972A423009 for ; Thu, 1 Oct 2015 07:37:41 +0000 (UTC) Received: by laer8 with SMTP id r8sf32714293lae.2 for ; Thu, 01 Oct 2015 00:37:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe; bh=QCBp+3IcOm7qamaHRk6kqzwLVsA8lc0UWQHc+fxiNp0=; b=PtQojVWI7dcRwRyzX3WfCAj7Gg3a0DtkDGORQ4v2hG7LOyIZRVyQgL1ryyTLspdtnJ 58hqK65eNQXtVvGXayjDdaZWWSNbT9jwyjTwWqi7z39slsTQzdrG+vCRahJJUvVDtuMU tK8Dj+61bmogKiTHPALvM/mDsrfH57xufTnXEP7OhJV7QopYcXJ1D0e9MWOx5liCZJyY PfyaR5MAvEojr06QqvqRT2IRg2TZ4rIFZV+nA3hTYLIL0oA8IvOzU4pxk7oY29BFhPEo YwyqsrSAD/oJ/+X4VO6TQPvBL4VCOGs4/P6/HO/Ne3cxvKd7FdCcgvkyhS73gwAc58xj yj9w== X-Gm-Message-State: ALoCoQmJw1CtweTFqP7JJsmWfqbHLqDopfMxPJXu6RlxtxUsXAh1GZqpC7CARu8NuesW7QCb3tdh X-Received: by 10.112.40.17 with SMTP id t17mr1136453lbk.10.1443685060561; Thu, 01 Oct 2015 00:37:40 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.25.146.9 with SMTP id u9ls103029lfd.63.gmail; Thu, 01 Oct 2015 00:37:40 -0700 (PDT) X-Received: by 10.112.150.97 with SMTP id uh1mr1896961lbb.53.1443685060391; Thu, 01 Oct 2015 00:37:40 -0700 (PDT) Received: from mail-lb0-f179.google.com (mail-lb0-f179.google.com. [209.85.217.179]) by mx.google.com with ESMTPS id ku8si1050257lac.43.2015.10.01.00.37.40 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 01 Oct 2015 00:37:40 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.179 as permitted sender) client-ip=209.85.217.179; Received: by lbwr8 with SMTP id r8so4139696lbw.2 for ; Thu, 01 Oct 2015 00:37:40 -0700 (PDT) X-Received: by 10.112.163.131 with SMTP id yi3mr2401421lbb.36.1443685060269; Thu, 01 Oct 2015 00:37:40 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.59.35 with SMTP id w3csp411758lbq; Thu, 1 Oct 2015 00:37:39 -0700 (PDT) X-Received: by 10.67.8.102 with SMTP id dj6mr10373088pad.123.1443685059241; Thu, 01 Oct 2015 00:37:39 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id pw1si7029285pbb.1.2015.10.01.00.37.38; Thu, 01 Oct 2015 00:37:39 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756401AbbJAHhd (ORCPT + 30 others); Thu, 1 Oct 2015 03:37:33 -0400 Received: from mail-pa0-f54.google.com ([209.85.220.54]:36555 "EHLO mail-pa0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756335AbbJAHh2 (ORCPT ); Thu, 1 Oct 2015 03:37:28 -0400 Received: by pablk4 with SMTP id lk4so65999787pab.3 for ; Thu, 01 Oct 2015 00:37:28 -0700 (PDT) X-Received: by 10.68.88.130 with SMTP id bg2mr10263056pbb.129.1443685048266; Thu, 01 Oct 2015 00:37:28 -0700 (PDT) Received: from zcy-ubuntu.spreadtrum.com ([175.111.195.49]) by smtp.gmail.com with ESMTPSA id tp6sm4717588pbc.81.2015.10.01.00.37.26 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 01 Oct 2015 00:37:27 -0700 (PDT) From: Chunyan Zhang To: shuahkh@osg.samsung.com Cc: linux-api@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] selftests: memfd_test: Revised STACK_SIZE to make it 16-byte aligned Date: Thu, 1 Oct 2015 15:33:02 +0800 Message-Id: <1443684782-10898-1-git-send-email-zhang.chunyan@linaro.org> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: zhang.chunyan@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.179 as permitted sender) smtp.mailfrom=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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 Acked-by: Arnd Bergmann --- 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 #define MFD_DEF_SIZE 8192 -#define STACK_SIZE 65535 +#define STACK_SIZE 65536 static int sys_memfd_create(const char *name, unsigned int flags)