From patchwork Mon Dec 11 11:03:31 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Song Shuai X-Patchwork-Id: 176602 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:bcd1:0:b0:403:3b70:6f57 with SMTP id r17csp6963665vqy; Mon, 11 Dec 2023 03:04:29 -0800 (PST) X-Google-Smtp-Source: AGHT+IFClJqSH9916aZpdwNIyr0GpvrrQpGeg6Wlkc9eBXXEt2qGrZrsNErxBGlis4p6sYVsPNj+ X-Received: by 2002:a17:902:a383:b0:1cf:f3c7:e081 with SMTP id x3-20020a170902a38300b001cff3c7e081mr1438358pla.69.1702292669274; Mon, 11 Dec 2023 03:04:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702292669; cv=none; d=google.com; s=arc-20160816; b=uLvv3FsCh2bk1SLKIL2b/O12tL6C8UWvAkeU7cgXTarz83ltjw6fgAZKAVXsEFupih cGfvWqYsmsHv/loClByPGYQyqQgK35Fli+qnVJk+ybbFpxoBgU4UYlhfxeDWqC8paPXr G0Z4Z5JHBSmuRNLbOhHteHcv81nrwtVdO7QYaB/8g8pstV/KQupk+xEAkIuThG/gLnwt JSWuz9ZdZwcbaU5SmOg1leTCTWkm9tITj1BUid89ijyU7lWsT3/o48q1bpjiXh2kPk3P 9HeHZ886eoZ+KUVRYMjB2PoqDW+eTVuXuxudIu4cauJ3O31B8bpZ0P6LX6BqO35e5VnG hVVg== 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 Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id b6-20020a170902bd4600b001b7d2b55d8asi5764862plx.626.2023.12.11.03.04.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Dec 2023 03:04:29 -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 41223805B333; 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 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:28 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1784983237913538924 X-GMAIL-MSGID: 1784983237913538924 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 Reviewed-by: Sami Tolvanen --- 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