Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp3887139rdb; Mon, 11 Dec 2023 03:04:30 -0800 (PST) X-Google-Smtp-Source: AGHT+IEbSN8m657Z181oBZfGBiLZuoGkr/+aRFG7eAib5bI018vmT3rzX0PUEsR/SP41Om058O8s X-Received: by 2002:a05:6e02:13c6:b0:35d:59a2:1291 with SMTP id v6-20020a056e0213c600b0035d59a21291mr5328334ilj.61.1702292670266; Mon, 11 Dec 2023 03:04:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702292670; cv=none; d=google.com; s=arc-20160816; b=kN1R0uipWM9EEQttQiVBfg477fTteCJ/mGyH3Ux1De+Dh2KnsJWvjU92ZbdDxW/qqn lRtx1yUQ1wwNQJzA96Kiaum8hMzW+5rzo8JBTDlCcyfoAvCb8Nmi7Ng8OEiP+lNwRsJQ b0Kiedi2LpiFh5vqaRaZjxnXMnTv8MK4DmV1lA+Nhi8V/pfJbhfu/R7Ur7n6hETBbr9R ljfDOFFTJ1YpJlkAy71ZKHxCAhIEHcLpCsX3kMSzPLa/ns6nd12z68p1n9rGZFqPLJZ/ DK1L61g0RUkWiQ1xey8ZZ0BiJur84lCWYbP3bvQqgTp2wMdHQx8/mKtqbYPtKBU5yCs8 Jlzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:feedback-id:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from; bh=NBx2zKqlLl98SDkU9VmMRUVLTqXkwN8XyKCH8L/bocc=; fh=YqmtVtlCYqSxKxw7oR9L+AqD1915YV+mrPsvwR+AK7w=; b=CiaNiidIsfNm+sf7vsWBDL0BHosr/GG7hAUhN8b4S1+P/DWd4dsNYLkmmJkXxEpLEO Z9elCU8erGkGB2J0ywoQWeMH28T4OpVWUv8HLmLEflkBee1yMfQXCJtFjYzNPypA4Lxu j3fp0O7erOVGKK6kLXaAFEeQU17muJJbjGzkv9CqQ0mafY1wZHD6VESqi3QSJucTDLrL v9WSFveW2DaTLGz7l6sqhGHQS5n/KHMKcHMgfobbYmNfhgM8hvutJTmO48I+Yp3A2iiS OZMnWt/KcYFnpUvoE6WOtSiOVLTnt1javFJD8EwElgZcrilJJsmh/qUAlFsNnQF0uPwg 6JEQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id e3-20020a656483000000b0059cc8d682dfsi5825610pgv.814.2023.12.11.03.04.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Dec 2023 03:04:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id E2BFF8097898; Mon, 11 Dec 2023 03:04:28 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231734AbjLKLET (ORCPT + 99 others); Mon, 11 Dec 2023 06:04:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38894 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229512AbjLKLES (ORCPT ); Mon, 11 Dec 2023 06:04:18 -0500 Received: from bg4.exmail.qq.com (bg4.exmail.qq.com [43.155.65.254]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 324BDA1 for ; Mon, 11 Dec 2023 03:04:23 -0800 (PST) X-QQ-mid: bizesmtp73t1702292622tj8j5yuu Received: from localhost.localdomain ( [58.240.82.166]) by bizesmtp.qq.com (ESMTP) with id ; Mon, 11 Dec 2023 19:03:40 +0800 (CST) X-QQ-SSF: 01200000000000B0B000000A0000000 X-QQ-FEAT: 5q30pvLz2ifwectDw5X1ejEzovDe+SdttSK6eqA0chYVCh0XUtbv4XETa4kck A+EYAm88lWow0SrwX5RjG0MO7M/W+Bof2DsgZM/I833wDkp+7uhSiviaquZADvf09fp4u+j ZRRkoE0fhwUHZVssdj2ifiAk/CdC6zKgfyhjS70urfxWRyzk0tvZvnETKoZ4w+9iu9FYtvc V8E/j5fHNwNKMPLDihwgCw0zxsZPtGLM5uS7rdAVMrWs5tzsHPUyIIpiKU2jcQwXNhQRojT i7yaNzDXWtNRxMVEHkyAlw7e2LgeHLMYRkkSnG/RL06fXCqejNUYgDtMA5Ss03oZXZ+9bRE gU1Yh2jIZXo3AmCcjKczIBtSrKX6lxKvf0PE8xtw8SkCn4matw= X-QQ-GoodBg: 0 X-BIZMAIL-ID: 12009462421657250734 From: Song Shuai To: paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu, guoren@kernel.org, samitolvanen@google.com, conor.dooley@microchip.com, bjorn@rivosinc.com, debug@rivosinc.com, songshuaishuai@tinylab.org, greentime.hu@sifive.com Cc: linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH --fixes] riscv: Remove SHADOW_OVERFLOW_STACK_SIZE macro Date: Mon, 11 Dec 2023 19:03:31 +0800 Message-Id: <20231211110331.359534-1-songshuaishuai@tinylab.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:tinylab.org:qybglogicsvrsz:qybglogicsvrsz4a-0 X-Spam-Status: No, score=1.4 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,RCVD_IN_PBL,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: * X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Mon, 11 Dec 2023 03:04:29 -0800 (PST) The commit be97d0db5f44 ("riscv: VMAP_STACK overflow detection thread-safe") got rid of `shadow_stack`, so SHADOW_OVERFLOW_STACK_SIZE should be removed too. Fixes: be97d0db5f44 ("riscv: VMAP_STACK overflow detection thread-safe") Signed-off-by: Song Shuai --- arch/riscv/include/asm/thread_info.h | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/riscv/include/asm/thread_info.h b/arch/riscv/include/asm/thread_info.h index 574779900bfb..4856697c5f25 100644 --- a/arch/riscv/include/asm/thread_info.h +++ b/arch/riscv/include/asm/thread_info.h @@ -28,7 +28,6 @@ #define THREAD_SHIFT (PAGE_SHIFT + THREAD_SIZE_ORDER) #define OVERFLOW_STACK_SIZE SZ_4K -#define SHADOW_OVERFLOW_STACK_SIZE (1024) #define IRQ_STACK_SIZE THREAD_SIZE -- 2.20.1