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 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 45691C19F2A for ; Thu, 11 Aug 2022 11:05:16 +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=OySpYfuPOPyO+7xjO7261ifi1H8Z5H4ZzMufC2Js4K8=; b=zYy3ETxlkUucir xnQGHueFzbM1zBIUQh6zwJPa7FKwKEAi3LHncybHOuNSV8s+Q7K3YaRTnEkDLTpCzPAFQ8k88Re+5 sx02NfKmPBcztd71Liu7YsI5/czhz6p8V4DsSjzZEVUNoV5sVdc8Ixry21KUPoBXxKgP6i1mYiywX tR03YbB4pjOOLl/uim6CBCs6qafEdMYIZ3WqkHkXIa1lc2R12+nnP5LyiY0FL9tM+OiWVmpvSGC/H nxNQkntFPzyxqm9ziXjS5Orzh353cTqhwzCj3mNQdcp45pZhgBA6jRJTOhzzPrAHvrMr10JsbAj2i 49/7UGxNJAYLpnryrtBA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oM5z9-00BSqa-JZ; Thu, 11 Aug 2022 11:04:19 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oM5yy-00BSjD-Ni for linux-arm-kernel@lists.infradead.org; Thu, 11 Aug 2022 11:04:09 +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 51D9161058; Thu, 11 Aug 2022 11:04:08 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A4CF8C43470; Thu, 11 Aug 2022 11:04:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1660215847; bh=7+Sz9SnuxgcAjMnECfs6IRFb4iRE6uRhfNfHTgKKAv4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=uHVK0OYybshlU1fngzDbX/Yg67X1S6CMlxVs7AIugKvOO0PI7fm3LyDHh2wcl/cEz waqG8vq/ir/OkAhStAKNP7vVPtNInGzohjYEX4kds54QE/xvq9JZAzR0ev6Q6zkSWU NvF7FIZ92RpC5DAaYMdLKhBHN+5+kA2EAKaeW0gAAdeCUnEnMmwmaBbLRQT/xR63Bl wTkjxeWxjktt/LA/gV1NtVM+O9MhtLcP8CoEwZqVF2P7or/t9KPXGvfRPVptHJS/Qi 057f4ECHgzg4E229e8n7vL7H3L1tSMMtf9mYPcEoH3AJlZ8o10gV4YMKW+c2JA3w3O JLK5Xnpx1pVHQ== From: Mark Brown To: Catalin Marinas , Will Deacon Cc: linux-arm-kernel@lists.infradead.org, Mark Brown Subject: [PATCH v1 1/4] arm64/signal: Raise limit on stack frames Date: Thu, 11 Aug 2022 11:57:48 +0100 Message-Id: <20220811105751.25081-2-broonie@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220811105751.25081-1-broonie@kernel.org> References: <20220811105751.25081-1-broonie@kernel.org> MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1218; i=broonie@kernel.org; h=from:subject; bh=7+Sz9SnuxgcAjMnECfs6IRFb4iRE6uRhfNfHTgKKAv4=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBi9OCr+MUf4ubUhwyFt7Qi7PWwooORNr1fsRFtxevr NuIH6LeJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCYvTgqwAKCRAk1otyXVSH0GyAB/ 40821t7kzu4CKfxhwdzfDlST2QM8T6k92/sHV4eKTN2H1R1vVufKU9tpNF0CHpFJKmCWsvnCe9K5Co PKaGWa1lCU1ph9pM3tiEeV7oxFmlQeEReBapEh6GzoSehGmHGsdkIw3+yizGEKqBDTgSp4dybGKsx0 0ArB3rEgociAa+MMwRlTR3ZfQItBIlnoJNDWJOAib7YG2dWFUx+Tpy5mswuMlwmANC1/C5qYIC7+/T iUD42Q7Ax+b8vciWJ7MGdukKy9UKf8W2o+1+5dTsP0k64spE7JUr8IjM+PvW6YC5GWsd8e+CwN21Z3 CC88dV94+owhkGJuyVeYcwSduTWQCn 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-20220811_040408_830602_2FEE513A X-CRM114-Status: GOOD ( 17.00 ) 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 b0980fbb6bc7..13dee9cedfc6 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