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: 142857 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp838907ljj; Wed, 25 Jul 2018 06:45:20 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfLhibA82g/uQkAJcydyhv4eYHOJtnJoa4cCtxMP9w6dmuIdXyFacQcJYze6LnITTewRne9 X-Received: by 2002:a63:d011:: with SMTP id z17-v6mr20218581pgf.272.1532526320841; Wed, 25 Jul 2018 06:45:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532526320; cv=none; d=google.com; s=arc-20160816; b=jcwN1HfBp0zUttlQPMztVTjpmqWT+rr2PX/us+Flmcg5ZTdcH0dmHnFWXzKoLbk2Tv Hn9dt2kVfxdFRXPmawVNx5v7wyrhQ9xoDP0ybZKTGIQlqY4l5q0VwXu6DUnQHjxuJCY5 6cd2qaVVW01KgbKa8cnyyN7FEvvjnj+GwScabsnLs2K5B3ILpMm55q7D0OVK5MQssvT+ XTJYstVP4Y9M7XCPjnJjXsO27raOsOevgzE4L0HE+MN3mtGQzo3OIU5HUOOuxtinqVkq 7f6B78FaAvQ1xMmsB4tSAevFKT3QYVu1tv+rAzSLuuZbsgrhXXloTX5nFMF0eMeKVwwJ WTlw== 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:arc-authentication-results; bh=Zs/Vj/4B91V49AS0YldpOD4v/12Juj79uerxgVZaNYs=; b=QHSp1d4l4cgqJRQ101iU5DMhTkXWHC8hEQ11+I89lKVmgwCm1heuZSZrylElXQmG+L VvoZNUiCipb9GXGdzfjKrmJwgPEPe8ZoXC12wEO7BNBgxxEZmd7Fw8lWASOkakWXMkW0 2+5nstoYYbMSS328K/2toP305l6HehIq5qdi4RN8pVEJzCbUItUXyQDRPBZU53brd3sL rNA/1PmzklzScOLFOH6+O+JeyHdet6st2yRP/Yh1FeDnNqhDYo9Ian7aJkl7ftvYYWar P9szudopOeoO4u2AA5ykhvtHVfGEaHe9+XnGPur7mnsA5zlDgXZaUxYCNfDmxOd1L0dg q7Fg== 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 s199-v6si15391234pfs.255.2018.07.25.06.45.20; Wed, 25 Jul 2018 06:45:20 -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 S1729428AbeGYO5D (ORCPT + 31 others); Wed, 25 Jul 2018 10:57:03 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:39058 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729326AbeGYO5C (ORCPT ); Wed, 25 Jul 2018 10:57:02 -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 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 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: [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> 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 Reported-by: Steve McIntyre Signed-off-by: Will Deacon --- arch/arm64/include/asm/compat.h | 1 + 1 file changed, 1 insertion(+) -- 2.1.4 Reviewed-by: Dave Martin 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) {