Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp4129211rdb; Mon, 11 Dec 2023 09:35:05 -0800 (PST) X-Google-Smtp-Source: AGHT+IEPxJ59Qclw+6I8lgMpPvB5rplw70ljSj9qs7S0xekA0I2zZYu6Q9xaxcTjTe1B9zIIZ9Ki X-Received: by 2002:a17:90a:5797:b0:286:6cc1:5fde with SMTP id g23-20020a17090a579700b002866cc15fdemr2102114pji.97.1702316105593; Mon, 11 Dec 2023 09:35:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702316105; cv=none; d=google.com; s=arc-20160816; b=hjoGhWf/OOv8i1so+OOZo3T5bgA5jHpzpUfl8obHu9gUQXNo3NXhLl1rFlGiIJPTjp 7PjgSpFSigwTsvPzWmD+wnBXmcLGwxbSL2iloJ51LHrDMDaNS+sfILuPRWflI+C7bmZf YRYWomDMDaxBfdI8Nv1UDlHQx/beQN0iZQbQcZhtOqluf5fYTcv6ui7K2Tpi5EI/Vh6p G+eSpYGIopDdVDGkhe7IMuMNDhAHlSen899jpEi3VH74MKPJ55PWyBNsdDPVdeb/N4mo m5JHU4Sjajv1b/FOij+4cS+ddyuMzdxqSPR7WcpBWYiUlWfVouX1vIxk4F7ytvZuBfWi SNaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=vGzPnVe+NCTMdJ+XuET4cvoiuLLibz97osrkOtPIDJM=; fh=LSGcojPimL8Iz+Eux7YaLFSZ7CSpv3qScU7mSJc77GA=; b=aCbZgy+Eg0djP8rmUedP1j8IljMZnrRO8Ku5xnUPGYD0hd4zrcuEocoCpqDWMtC3YQ Ae6fV9Yb6fYo58YmuOWbRkwMyw7z4BPiuwchnpiXyOz5LuYhEtSYsfFFpUL84q05UWj5 Ad/b1WGD7RaNHxVleHd/vGFW8cT2MIWdSayrrO0g7R5+zUJaIx+pim6gF4IA9jNengoy hZGHm2OqLPqhRxXtqE/kh/0ffgCCpP9925gnhO5aHjd53/B9GYp9FcRQDGc2uZYA6LC4 6gVM5OT0sB9PgyaTKcrc9h5h3Q9JSbYqA189uyTW/j/GclmKoZIYbb/IjxbYajKCtTxd t9WA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=mjvRERpW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id bx21-20020a17090af49500b00286c0eb88f3si7742980pjb.34.2023.12.11.09.35.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Dec 2023 09:35:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=mjvRERpW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 057728060CBD; Mon, 11 Dec 2023 09:35:03 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344706AbjLKRes (ORCPT + 99 others); Mon, 11 Dec 2023 12:34:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48866 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344703AbjLKReq (ORCPT ); Mon, 11 Dec 2023 12:34:46 -0500 Received: from mail-ot1-x32a.google.com (mail-ot1-x32a.google.com [IPv6:2607:f8b0:4864:20::32a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 38908ED for ; Mon, 11 Dec 2023 09:34:52 -0800 (PST) Received: by mail-ot1-x32a.google.com with SMTP id 46e09a7af769-6d9d59d6676so3560548a34.1 for ; Mon, 11 Dec 2023 09:34:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1702316091; x=1702920891; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=vGzPnVe+NCTMdJ+XuET4cvoiuLLibz97osrkOtPIDJM=; b=mjvRERpWrzqA+Pb/ppGiG9nViP5xE44t3GFGq7dwRNeIMIDBqUGICxCAUXkYePiSC0 Rxq/7jV4oyrXlEJl3wozVPaeQZGd1KvmiWiwCfMVgwZevBLuU5PUfkkZz54iJa83tXwE 0AENEw6xJfhS3XSSN3lGDXe8QeLNO6yeSw9ncgLTo7v5lMNqXstBCjzZLtLsZc1ysNca AZMBoccvNrY42GARd+mgDVHYQYDlVHaOG3YdCrioB1Q8MpRlMZJ9qpv4STEQL/lvVYd0 zV37dVTVLPkZBYcZywmjV9cPFlqSFmIjTwC8sWuooDknBCxopPJ3w6QY9kMtnRUVSy9s maYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702316091; x=1702920891; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=vGzPnVe+NCTMdJ+XuET4cvoiuLLibz97osrkOtPIDJM=; b=OnyoO8V/sGjmogQaEUb/kpMiJ7kXA1Brzr/ML2MopAhgivsae8vEcya+wewWxMyl6W 7eW5wR5Nxw4Ok79+2o01g9PgaDZ0J6EsaPyDWuILoYpWcBdzjDaBe6zyPCdWA+WBwyUn b/LbQuXsNJ48lTMhk1LYtynSf1RCKtpu2wz8AXpvU2vB1wt8R8UiiPdCInWQBLDP6pG4 T1sllshi2nIsi15c6j3Szu8ZMYuw5hDSWxeQjgg37TwRWIXHgaQvQwR+MrC1MHRE0h44 g+dm8LEXHcq4mRJnNuWdxEKnkfo6mH0YVdBjKsmdOQGSzHlS+H4Zr8n+zail2mugeWop 5O3Q== X-Gm-Message-State: AOJu0YxgSL9PGjaviw7BM5od5v3ZGPyaVqZ8oV5QCDx4c3CKFjLx4BcB FjL58KkYxlOL5fs7mh7zMyeA/LxmPAOwsUSLTI22PA== X-Received: by 2002:a9d:7690:0:b0:6d9:db29:6ad4 with SMTP id j16-20020a9d7690000000b006d9db296ad4mr4475370otl.64.1702316091311; Mon, 11 Dec 2023 09:34:51 -0800 (PST) MIME-Version: 1.0 References: <20231211110331.359534-1-songshuaishuai@tinylab.org> In-Reply-To: <20231211110331.359534-1-songshuaishuai@tinylab.org> From: Sami Tolvanen Date: Mon, 11 Dec 2023 09:34:13 -0800 Message-ID: Subject: Re: [PATCH --fixes] riscv: Remove SHADOW_OVERFLOW_STACK_SIZE macro To: Song Shuai Cc: paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu, guoren@kernel.org, conor.dooley@microchip.com, bjorn@rivosinc.com, debug@rivosinc.com, greentime.hu@sifive.com, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-8.4 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, USER_IN_DEF_DKIM_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email 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 (fry.vger.email [0.0.0.0]); Mon, 11 Dec 2023 09:35:03 -0800 (PST) Hi, On Mon, Dec 11, 2023 at 3:04=E2=80=AFAM Song Shuai wrote: > > 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/as= m/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 Ah, good catch. Thanks for the patch! Reviewed-by: Sami Tolvanen Sami