Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp3891275imm; Wed, 5 Sep 2018 07:36:25 -0700 (PDT) X-Google-Smtp-Source: ANB0Vdb3prI3zfdK93UqXboFwgubyVKghXrz8bbcChiYu3EB2SDU+IYvaLy16jSBlnLAcoTbtkJZ X-Received: by 2002:a62:858c:: with SMTP id m12-v6mr40973529pfk.173.1536158185067; Wed, 05 Sep 2018 07:36:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536158185; cv=none; d=google.com; s=arc-20160816; b=OnqS3x6lpwapQr6XC8VcxJUbGujHV17o9AxpkJ4IgQQVaY97KqMzXOs3M6yvalEF+G zhL1UkDhkOWrUW/nxaaRA/A1ONzEV3CkbpGxM0DJHMRibJbLy8mNX52MncfyofHI3QLM FNWptS1A2xAjvtBGcZ1b9rlaYjHfFlCEY2RRfVYVh5kOggiFAkd+b6/QAN6zxxLJiuD+ wiB28f0zLBgynfaD4wVQ39UurYtlhGm3lA2jotF0Kc0HHNUZE+GXVY8tWH1jP3dR82bV eCEAQ+OyeZzsZmcPHnRo+Lb7o5VuowzV6aK84ojRTyl9X31P/45SA9JmuC9U3ZD0LZVS n0Vw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=vHKDgX6ebWT7Vs9crfIW+Zq3jPitVxUOdxw68TzB7hY=; b=JEsER8Kv4vpnzzGYEj5Af7Ffkxy4nvJRY8m98sa4iHDZdhEysDgpQbP6anItq068dr nXN7X/blGL0gfFv1cUh391ewO5pSGFkcSo0kCeeMS9AlXEV3d81UPoAkRBt+ZOjE0xLK 9gMC3QcbDOdH09YThVAawl9+IO2eMmaeL+9dfJejt2C7XT4+ImcLn51uzy1EArpl2ywJ 1EqO66/80AZPoYYns66fRhaTa+gI60dVogGAsshWyyg5pYBnFaaoFL3pjYUno6FtioD+ DYDeZ7nxI0eDXp3Tt9q6kTUX+XB9++YF+qtUtK53V40GKYhokDtWTIqJA38K9YwtVpNi MaxA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i184-v6si2370995pfb.98.2018.09.05.07.36.09; Wed, 05 Sep 2018 07:36:25 -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; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727698AbeIETFE (ORCPT + 99 others); Wed, 5 Sep 2018 15:05:04 -0400 Received: from foss.arm.com ([217.140.101.70]:59168 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727234AbeIETFE (ORCPT ); Wed, 5 Sep 2018 15:05:04 -0400 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 B402715B2; Wed, 5 Sep 2018 07:34:36 -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 859673F77D; Wed, 5 Sep 2018 07:34:36 -0700 (PDT) Received: by edgewater-inn.cambridge.arm.com (Postfix, from userid 1000) id E74D41AE358D; Wed, 5 Sep 2018 15:34:50 +0100 (BST) From: Will Deacon To: linux-kernel@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, arnd@arndb.de, linux@dominikbrodowski.net, ebiederm@xmission.com, akpm@linux-foundation.org, viro@zeniv.linux.org.uk, oleg@redhat.com, steve.mcintyre@arm.com, dave.martin@arm.com, Will Deacon Subject: [RESEND PATCH 2/2] arm64: compat: Provide definition for COMPAT_SIGMINSTKSZ Date: Wed, 5 Sep 2018 15:34:43 +0100 Message-Id: <1536158083-30166-3-git-send-email-will.deacon@arm.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1536158083-30166-1-git-send-email-will.deacon@arm.com> References: <1536158083-30166-1-git-send-email-will.deacon@arm.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Reviewed-by: Dave Martin Reported-by: Steve McIntyre Signed-off-by: Will Deacon --- 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) { -- 2.1.4