From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CA819C0650F for ; Tue, 30 Jul 2019 09:25:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9FB15206A2 for ; Tue, 30 Jul 2019 09:25:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1564478757; bh=nqU4k4X/e7lYeTAPiZAW8mdKZR5UN/bj9V8U1bHWGn8=; h=From:To:Cc:Subject:Date:List-ID:From; b=CoAW2g2LWZwgf5LvgOzCOyLWFggCNfBbqneOJDwGHppZckwOt+O6QGyiUjObG3oXE iHPYiHtbvx0If9uNzN6xRKyNcw1ntplT7dkdKasQNc1ioan/zo3OMwL/0i38i9ccJX w2WWDkwW6jAkXdJ5yejHATYS8lCk8NMXQyVJj4BI= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731218AbfG3JZ4 (ORCPT ); Tue, 30 Jul 2019 05:25:56 -0400 Received: from mail.kernel.org ([198.145.29.99]:59216 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731046AbfG3JZy (ORCPT ); Tue, 30 Jul 2019 05:25:54 -0400 Received: from localhost.localdomain (236.31.169.217.in-addr.arpa [217.169.31.236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 906A22089E; Tue, 30 Jul 2019 09:25:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1564478753; bh=nqU4k4X/e7lYeTAPiZAW8mdKZR5UN/bj9V8U1bHWGn8=; h=From:To:Cc:Subject:Date:From; b=2F0v4akXyoiqT9/IdB6Ohu4GIcsn8FKvMOtHoG+WiVduFmfrv/2DFnEhZcTFRMI38 djITFzPR+wZabZ+x6kLMIDxM8IeHsUqlAD02hW1ZOJmf8bPYufh5CJ1EzwQEM2Abru Yd+T5QoVt9ASTYqx5qMTWhukv0Vsan1typDxX4/Q= From: Will Deacon To: gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org, Will Deacon , "# 4 . 9+" , Aurelien Jarno , Arnd Bergmann , Dominik Brodowski , "Eric W. Biederman" , Andrew Morton , Al Viro , Oleg Nesterov , Catalin Marinas Subject: [PATCH] arm64: compat: Provide definition for COMPAT_SIGMINSTKSZ Date: Tue, 30 Jul 2019 10:25:47 +0100 Message-Id: <20190730092547.1284-1-will@kernel.org> X-Mailer: git-send-email 2.11.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Will Deacon [ Upstream commit 24951465cbd279f60b1fdc2421b3694405bcff42 ] arch/arm/ defines a SIGMINSTKSZ of 2k, so we should use the same value for compat tasks. Cc: # 4.9+ Cc: Aurelien Jarno 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 --- Aurelien points out that this didn't get selected for -stable despite its counterpart (22839869f21a ("signal: Introduce COMPAT_SIGMINSTKSZ for use in compat_sys_sigaltstack")) being backported to 4.9. Oops. 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.11.0