From patchwork Fri Aug 2 09:37:20 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 170420 Delivered-To: patch@linaro.org Received: by 2002:a92:512:0:0:0:0:0 with SMTP id q18csp589326ile; Fri, 2 Aug 2019 02:53:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqwKvYhTtOocOPL3oPgdnfBZeI2VbAoCM5WdmhA0uajy+RU5+v/PVUajhkNBUaBQQQ7Uyyj3 X-Received: by 2002:aa7:93bb:: with SMTP id x27mr60598772pff.10.1564739614168; Fri, 02 Aug 2019 02:53:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564739614; cv=none; d=google.com; s=arc-20160816; b=hEMhzxoowNnSHpc6+l7/Cm34uaPTwQIXsC4W63KXF4BbaUmKuodV2TecQK8veWOa7i 2L8bey0sOYks9iZUjNG+DKhZGnbXZG4LYpq6DLYnPYGg1bCtEI5NlJkFaetjCVJSaY7O qmBp+ICDDVmQE104Sl/mHvPJHWiijpMZRqaPZwjvofXcHKkYnM0d4+Qh009yvkZob1kN iTkgB7BWF3nsXDNRHMbAUoUKoYZvAX6KcyTLzFprjJV+U7iT9ZcyoCsPZmwKF//e/Mc6 cWlitjdOQpQetxfFqtkKiG2+zOQXZlf7TfG9vsgOZpokf/bOh/77bzT4iW9gmCLnp2mp P1Aw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=RA/mvo/IECqpCqCf2tijcrcxDxMPSQPHnpmJolOQ4ZU=; b=lw8SrYSwI/U/yGAWqrYsMiduy5ydb8+9i7jp511w7ltVZnnZD7wKvODdPsxTQNMMyC rLBBg6g4cwsnVKI89v8I8vusFt6qIgqAuRGaWM+CjJ0Ei3ehtN2bI/OhvpJbqqk04bp/ x7rdUaMnvB0uE6Fc1gYLl3Cntojm9XWhQPlaJ0lFDAbJaGDSHEILllQqZXDdQRvK2fB6 pDYiPKC4uSkGOAz1mwcSPDvGW2UWgPDHSTr7XIpqlbekC8cmWQSvrUTtzschTVdZjQge 609ISVc6Gds/2AFHd9t59FvTNN5jsX7sD4qMzU9jm+uDPmiYNd7RS9202kTIw2SRZc5H WT4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=slAYXma5; 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 k192si39376208pge.222.2019.08.02.02.53.33; Fri, 02 Aug 2019 02:53:34 -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; dkim=pass header.i=@kernel.org header.s=default header.b=slAYXma5; 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 S2406276AbfHBJxc (ORCPT + 29 others); Fri, 2 Aug 2019 05:53:32 -0400 Received: from mail.kernel.org ([198.145.29.99]:59488 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2406262AbfHBJxY (ORCPT ); Fri, 2 Aug 2019 05:53:24 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id AF663206A2; Fri, 2 Aug 2019 09:53:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1564739603; bh=Sus13iWclroigCwhhejUjmR7RmySRV/rrlISLxwdSts=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=slAYXma5KMizcHS5AqtgeQ79+XeZ5vNin0103H28nijp+mspC2ssj/72KgoMx0sxX J5xGz1TkjSQgzuy2aycN9K3ST7wXncIseyg5RKbzkHnBM+9dDaoi0Xk2oBuh0kKdCf 7xIqwWLCXXDEr5zSo7YKSX0K6Iy5uvtp15tK3hz8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Arnd Bergmann , Dominik Brodowski , "Eric W. Biederman" , Andrew Morton , Al Viro , Oleg Nesterov , Dave Martin , Steve McIntyre , Steve McIntyre <93sam@debian.org>, Will Deacon , Catalin Marinas Subject: [PATCH 4.9 215/223] arm64: compat: Provide definition for COMPAT_SIGMINSTKSZ Date: Fri, 2 Aug 2019 11:37:20 +0200 Message-Id: <20190802092250.685349111@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190802092238.692035242@linuxfoundation.org> References: <20190802092238.692035242@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Will Deacon commit 24951465cbd279f60b1fdc2421b3694405bcff42 upstream. 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 Tested-by: Steve McIntyre <93sam@debian.org> Signed-off-by: Will Deacon Signed-off-by: Catalin Marinas Signed-off-by: Greg Kroah-Hartman --- arch/arm64/include/asm/compat.h | 1 + 1 file changed, 1 insertion(+) --- a/arch/arm64/include/asm/compat.h +++ b/arch/arm64/include/asm/compat.h @@ -234,6 +234,7 @@ static inline compat_uptr_t ptr_to_compa } #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) {