Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 571C0C00144 for ; Mon, 1 Aug 2022 15:47:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=oL8SiKqZr2Jqobdkl/w6bzqVJQb3j5KVt2tkrsbUUSg=; b=hOz5dhMwbzXAcX DQ0WdHqxHDRd4COI9QG/Sxx9l8VlYZY9eXzOPxtoLTwnYvpXxnrUuf4N8wiYZjnG63l5rgljmRIc6 CepvKNQDR+yE/zkLZJLhkJ6OQ57rFA55YnWJrtfRKBy/q8J6K0sIk59AS5iZ/dhXRVRchwy4fOAW3 dJ5FIhD14OBapQjWJwX9R5LERP6mvB6L4xRGfzTEixVaQuoXdQ8PYaP7UL+jILtL16qCg39hdsaUG OYfGQ711QRlTmYVxElXfjqoBErk1bDdk2zeu/FgtmGB02UEBcYnEd9261aHL2tAYSHfB6ZpL1ywaQ zv5a+F0uQU53OjAEnNJg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oIXci-007Za6-OH; Mon, 01 Aug 2022 15:46:29 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oIXcf-007ZYD-H8 for linux-arm-kernel@lists.infradead.org; Mon, 01 Aug 2022 15:46:26 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id DC1206068B; Mon, 1 Aug 2022 15:46:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3B3EFC433D7; Mon, 1 Aug 2022 15:46:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1659368784; bh=VLu45HldX2ahaHX/IbJAZjIiOYfmBfxLKx8Mq2xNVJQ=; h=From:To:Cc:Subject:Date:From; b=dMHIHudFOouGu8kjeOifezDNu2HGP/We8malIkkDwn6FiuHjfJqzBmfYCZbmzLhfB 2EG7mTRAXdOgN9mnw2DF6Ad0xSMErGCM0UwfDlBksFFDJU6JeY47YRCrlLQkRP5fbW YW/Mhw17RAUdnuMJtdScQoyaUaWOWi5P89JKoaLkzKRjP7X7x9ouxK3uamR2ivfJYl sRu2Pv2icB9wt/E9mpv0JaxGdn1kNfWxsVD1z8GgD/UHwO1Cgk4iGnlZnDyICUNxiK 3pdBYprkzbfPFcYGlu4lFUOktXnJUb101bLDu1Of6xDnXpkrKCHoyu2AvFwmAFS/SR OjK40G66ohexw== From: Mark Brown To: Catalin Marinas , Will Deacon Cc: linux-arm-kernel@lists.infradead.org, Mark Brown Subject: [PATCH] arm64/signal: Raise limit on stack frames Date: Mon, 1 Aug 2022 16:46:19 +0100 Message-Id: <20220801154619.190713-1-broonie@kernel.org> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1218; i=broonie@kernel.org; h=from:subject; bh=VLu45HldX2ahaHX/IbJAZjIiOYfmBfxLKx8Mq2xNVJQ=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBi5/VKy9rVf62HtvEywEa6KxqV5DHQrBftR4wcfd5F 0Rlbv8eJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCYuf1SgAKCRAk1otyXVSH0KtAB/ 4r/w13BSJuITdYyd29Gzz98eNJe8fjof7xV4rz6ph2Lcgc8i64xo6bKQRqTL0Q3hAfO0Y60XTGe3R8 V93ctwlD8vrRkjozpDoOB6gZPnBFKBKkaVfz+Ajkt8yekrtIEfB9JHHMlUJeJAgWI9hSbr+YsNrFhn EvivIPD73FtHf97jXlmK6uMkVWV/BFADJO662DTocxpbDBTKDn7rxRBrXNq7noAPeFBGQGu6s206Bi V4YHua8Jl1EkTbHgdoRgVnliQ7l1bDEzaug8L/vtYuN6k2sgyB0YnrsYkKRt1MpfDjFQ8uWAxsHKUf AnhBbV/giP5Fl/p9xBvnvfEzOdUhmi X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220801_084625_635373_8BBC34D6 X-CRM114-Status: GOOD ( 16.60 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The signal code has a limit of 64K on the size of a stack frame that it will generate, if this limit is exceeded then a process will be killed if it receives a signal. Unfortunately with the advent of SME this limit is too small - the maximum possible size of the ZA register alone is 64K. This is not an issue for practical systems at present but is easily seen using virtual platforms. Raise the limit to 256K, this is substantially more than could be used by any current architecture extension. Signed-off-by: Mark Brown --- arch/arm64/kernel/signal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/kernel/signal.c b/arch/arm64/kernel/signal.c index 3e6d0352d7d3..a410c980e50e 100644 --- a/arch/arm64/kernel/signal.c +++ b/arch/arm64/kernel/signal.c @@ -91,7 +91,7 @@ static size_t sigframe_size(struct rt_sigframe_user_layout const *user) * not taken into account. This limit is not a guarantee and is * NOT ABI. */ -#define SIGFRAME_MAXSZ SZ_64K +#define SIGFRAME_MAXSZ (SZ_64K * 4) static int __sigframe_alloc(struct rt_sigframe_user_layout *user, unsigned long *offset, size_t size, bool extend) -- 2.30.2 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel