From patchwork Wed Jul 25 13:45:12 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Will Deacon X-Patchwork-Id: 10544029 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A33B6139A for ; Wed, 25 Jul 2018 13:45:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9244D26247 for ; Wed, 25 Jul 2018 13:45:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 864E72A021; Wed, 25 Jul 2018 13:45:43 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 105F926247 for ; Wed, 25 Jul 2018 13:45:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=0eEko4V7MCroLSaci1obqPac5vFAMOGxDjfLkdPHewo=; b=fqU27bWXLcainB50GCBgF7b+LV qc2uHSXfgrM1j6uLMqmeWvm2gMjP3hg763BVDUEchTt8jNmIOhm9GWwHW8lzM3y5xU4XRsgP9I8gO lBoReMoRtVpaAJ996Xgsiv5WLi1UZcO+Kkj6We2J9a47twmOqotDU31GRIc1u4totteYcVfQ8rXYc zsq1EVDQzIAMURmht+CaLNswDWSiv/LmvV5ceDlAz5lPDYtamEN1eHsUChAnVYIyClDXDvIvTnNK0 BJO2JbJia4Yw8P4GbtTaCoRnAzytf3BdQAdyTQ5w5nemEVIAHEE3SMWz1g6SA9J25d8w3lAlnw9Lv JUzr0WHA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fiK6j-0002F1-60; Wed, 25 Jul 2018 13:45:37 +0000 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70] helo=foss.arm.com) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fiK6Z-0001vP-Pc for linux-arm-kernel@lists.infradead.org; Wed, 25 Jul 2018 13:45:29 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 9A91015BE; Wed, 25 Jul 2018 06:45:17 -0700 (PDT) Received: from edgewater-inn.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 6C0433F906; Wed, 25 Jul 2018 06:45:17 -0700 (PDT) Received: by edgewater-inn.cambridge.arm.com (Postfix, from userid 1000) id 610331AE0946; Wed, 25 Jul 2018 14:45:17 +0100 (BST) From: Will Deacon To: linux-kernel@vger.kernel.org Subject: [PATCH 2/2] arm64: compat: Provide definition for COMPAT_SIGMINSTKSZ Date: Wed, 25 Jul 2018 14:45:12 +0100 Message-Id: <1532526312-26993-3-git-send-email-will.deacon@arm.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1532526312-26993-1-git-send-email-will.deacon@arm.com> References: <1532526312-26993-1-git-send-email-will.deacon@arm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180725_064527_867426_D5B2F9C8 X-CRM114-Status: GOOD ( 13.41 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: arnd@arndb.de, Will Deacon , oleg@redhat.com, linux@dominikbrodowski.net, viro@zeniv.linux.org.uk, akpm@linux-foundation.org, steve.mcintyre@arm.com, dave.martin@arm.com, linux-arm-kernel@lists.infradead.org, ebiederm@xmission.com MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP arch/arm/ defines a SIGMINSTKSZ of 2k, so we should use the same value for compat tasks. Cc: Arnd Bergmann Cc: Dominik Brodowski Cc: "Eric W. Biederman" Cc: Andrew Morton Cc: Al Viro Cc: Oleg Nesterov Reported-by: Steve McIntyre Signed-off-by: Will Deacon Reviewed-by: Dave Martin --- arch/arm64/include/asm/compat.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/include/asm/compat.h b/arch/arm64/include/asm/compat.h index 1a037b94eba1..cee28a05ee98 100644 --- a/arch/arm64/include/asm/compat.h +++ b/arch/arm64/include/asm/compat.h @@ -159,6 +159,7 @@ static inline compat_uptr_t ptr_to_compat(void __user *uptr) } #define compat_user_stack_pointer() (user_stack_pointer(task_pt_regs(current))) +#define COMPAT_MINSIGSTKSZ 2048 static inline void __user *arch_compat_alloc_user_space(long len) {