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 D8D99C25B08 for ; Wed, 17 Aug 2022 18:25:33 +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:References:In-Reply-To: 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: List-Owner; bh=11MK/lca6s3FyUmXnNbMzuWzSGuRHuHUjwPFC4Axonc=; b=KXc0D6kPL2d28q DW5HLrV6mIVNga6uXrIq1UCMB1RdWtglDPPMgcLQHTRhwOpuu/dDLWl7z22HIcxyx0Uqg7a/PZXv3 0lo+oV+FZ8SLxkKGtAeMFeQxjH0sIuhHaYHGPUl3Z3gZemM6JrRt+qwiIPR3m6OMvP2grG8deil2w VoCdyIZOF2zisv+i6rmbnqxscCv2RrTsy8uFu7XDoB1N/x6Ai8t9+NqNwdPeqFujCMfidD/tsXdZr zIx5wnviVnLzY7gzWf7iWuoAxfbbG1Crvdx8xpygLaXFwiFA2fYN47HrOnAJ2oAW4DmYgzVrnb21w O5TXnl/0SkQlO9xdRsBw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oONiU-004wZ3-4D; Wed, 17 Aug 2022 18:24:34 +0000 Received: from ams.source.kernel.org ([2604:1380:4601:e00::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oONiK-004wPJ-St for linux-arm-kernel@lists.infradead.org; Wed, 17 Aug 2022 18:24: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 ams.source.kernel.org (Postfix) with ESMTPS id 95931B81EB3; Wed, 17 Aug 2022 18:24:23 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5160BC433C1; Wed, 17 Aug 2022 18:24:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1660760662; bh=7tPminuUR98Qtg2ox8IDqRFkL3sXsVDezxKVG4mAZuM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pYWaMDqQ98O10jrn6P3VzcopgfLyy5jtDycGUNoNxTogMVJ9KHOy5OPUcNFy1/Miv ccRsJvd7X4lT0z7nQCFWH79HYsni7ZlaUHmBeyT51VoPsaJMlrr8WjnCi1vzO7OitF mCiTOzxOcDb73SlnFFer8WVyxLl+e7a5j4mZk2JPAQirsf7HS7UcyTodzJokLmHr29 NxoX43wMilplnVWxFp5V8I3N1jX9IRrZ1+ySLolkZvXtvdFuRPsGe/WEUBEACbH89x r+mQNhlNXJROiS+SS+8E6u7isJMIS+xorapvzwNt9O0NmGgoo0cuVvFaeMLZGJVsdP iLPjn24LQ8bbw== From: Mark Brown To: Catalin Marinas , Will Deacon Cc: linux-arm-kernel@lists.infradead.org, Mark Brown Subject: [PATCH v3 1/4] arm64/signal: Raise limit on stack frames Date: Wed, 17 Aug 2022 19:23:21 +0100 Message-Id: <20220817182324.638214-2-broonie@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220817182324.638214-1-broonie@kernel.org> References: <20220817182324.638214-1-broonie@kernel.org> MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1266; i=broonie@kernel.org; h=from:subject; bh=7tPminuUR98Qtg2ox8IDqRFkL3sXsVDezxKVG4mAZuM=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBi/TIYSi4nzvP4+UhX7X2p2WGk0wAoiSN9RsFQiDam zAhT9OGJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCYv0yGAAKCRAk1otyXVSH0LJJB/ 9Eq5nFXNMRgr3XrGoaEy03tJ/PxQgD43GWGlNhMQ7ZPvBnx4cAsy6ZGepuzyhvbyWTZzAmiq5n1A7H lDMp7Fw9X+v1L3aMTLwv3VFj6sKmCsdggGlgIL0t9Az/d6E+F2qnYzNAplz6JKrxI3/b0Zhe8IqNT8 VIceVRD6jGr4b1OCKQbuneSrVV2650kJn8RTO8Uv9icAyUSuKjYaA3bWvdoLcVJV9Yy6I4Ds80mBPw 55bTsIy/WINCFB7uodsx4joPlWOvj/gHj37KHhq7zmWo28gej7moCjywmQfkUdJPY15fMeX+b2YQVI TuyQBx2WWN/lEzElndFafNDmxCZwaU 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-20220817_112425_111464_F554362C X-CRM114-Status: GOOD ( 16.49 ) 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 Acked-by: Catalin Marinas --- 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..0685b8784927 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_256K 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