Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp1243111ybi; Fri, 2 Aug 2019 11:50:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqzVy7y49QIu9XnF+WaJz4bVzR9zr1q5gvCqQBQT/p3sIOCGhf/sPKN1cO8onO9zY1yyUF5r X-Received: by 2002:a63:4185:: with SMTP id o127mr14153872pga.82.1564771834563; Fri, 02 Aug 2019 11:50:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564771834; cv=none; d=google.com; s=arc-20160816; b=ihqYCTFEYpJxVFrwfG7mkbHpNtrWGtZC0zBqaHN5CJfE/SXzRq1+pIT5v6OSK23Hv8 fYcqd74WT6kK1YAnomvaiLz5X45AhdjbgImVeLT63n+N9UghQl7wSjUGIaBF41wzxyVq 4l57eUeFYwtQ/csmg8eHaee7cN1aTSL+aaqP3uOx2P+ngvpBQ0OiJhdx1fGfFWy7wtQ9 hXx0+JlcUXEeYeovYemxRPSDViX7gkECQdOh/EgEtkIbglIBivRGHBdlqnAfGFcKRUx5 SKySbC5IpLV9TJ1PAIz9B1pwUXhXZqAPh8gyMcMouzn43nFuCuXlW7ZOiwcPWTT7VV3t Hwzg== 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 6si35263239plb.345.2019.08.02.11.50.19; Fri, 02 Aug 2019 11:50: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 S2406253AbfHBJxb (ORCPT + 99 others); Fri, 2 Aug 2019 05:53:31 -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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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) {