Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp10051197rwr; Fri, 12 May 2023 03:08:23 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7A/Mfsm0MN3yPSMwCdTBGvtWUceDapgvR4Q6N8rbhjEcl/oATsGR6/brYAIGeger1CYFpN X-Received: by 2002:a05:6a21:920d:b0:f8:ea21:7c37 with SMTP id tl13-20020a056a21920d00b000f8ea217c37mr28852547pzb.20.1683886103098; Fri, 12 May 2023 03:08:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683886103; cv=none; d=google.com; s=arc-20160816; b=eXm0nkPzR0W1dr8T8oKWbpCsbX5bLJUFYFIy6GbE95O1q2b6w0tEUfiUDTufb4ikAc LoL3g5JeHUkLA34L3Ohz1kPXZpy7/0E51g2PyRkVcZSC8rnrakaP72iNHydfdGkfczsy hdIASk1i2KrUX1zTsn0ebSIKEQOxdtL06QyKWyuV8Ehja739tL27gIrY3cpz0Sueh8wp rbvXME33cno2O3Bxanap6tIWrGgzYhen7W2DKsdxuFaQg0yd5r31kYRp7iyN/o2Tyi1x iMTu1T95GZCNhgCfHVXuzICLNL+9WA5nAdSHBrCvaLx5bN24VWOUos4TXlXE53b1g9jV 6hTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=Ce+K7r6zAzgqHm++pgM/8r6r28HkDCqchPm5H+X+lQY=; b=edDxEP/Nb7/JGfN6ilsU5LT4cX9ADAHUL+VfZAiY5THKYntWFPLCWuDNvWgN/exr2e SkI7QGuNh6L8IQ/IhCLS7O6iU8/c/Hi0UAgnf8O4vkWsljuzjgeocr5/JKazIEOX0jY+ TaKbpB5hOmL/u1JITxfEh43JRPvqn6jVR3ah3RuzEejobRqS/qDgpgXaEv3SnE/PJxlC K2upQArWuytcyrsFKFImvm3ZvShOvvI5vP8rkUhL3y7pnifaSORRrGHs2+sUyiiynPv0 /9UvcGq59i4iJlqUv/nUIDcBq7L5/IkTrqRxhWhSSfOwBVPnZnILfjBJIuI3lDxazfNK lhTQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w24-20020a63af18000000b00524d1d335bbsi9606658pge.56.2023.05.12.03.08.08; Fri, 12 May 2023 03:08:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240319AbjELJvQ (ORCPT + 99 others); Fri, 12 May 2023 05:51:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46866 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240422AbjELJvN (ORCPT ); Fri, 12 May 2023 05:51:13 -0400 Received: from relay1-d.mail.gandi.net (relay1-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::221]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 099F74C1F; Fri, 12 May 2023 02:51:09 -0700 (PDT) Received: (Authenticated sender: alex@ghiti.fr) by mail.gandi.net (Postfix) with ESMTPSA id 5C7EF24000C; Fri, 12 May 2023 09:51:04 +0000 (UTC) Message-ID: Date: Fri, 12 May 2023 11:51:03 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH AUTOSEL 6.3 5/7] riscv: Unconditionnally select KASAN_VMALLOC if KASAN Content-Language: en-US To: Sasha Levin , linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Alexandre Ghiti , =?UTF-8?B?QmrDtnJuIFTDtnBlbA==?= , Palmer Dabbelt , paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu, linux-riscv@lists.infradead.org References: <20230509035455.59524-1-sashal@kernel.org> <20230509035455.59524-5-sashal@kernel.org> From: Alexandre Ghiti In-Reply-To: <20230509035455.59524-5-sashal@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 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 Hi Sasha, On 5/9/23 05:54, Sasha Levin wrote: > From: Alexandre Ghiti > > [ Upstream commit 864046c512c2cd8418dc928b91981fb12a80396c ] > > If KASAN is enabled, VMAP_STACK depends on KASAN_VMALLOC so enable > KASAN_VMALLOC with KASAN so that we can enable VMAP_STACK by default. > > Signed-off-by: Alexandre Ghiti > Reviewed-by: Björn Töpel > Link: https://lore.kernel.org/r/20230203075232.274282-7-alexghiti@rivosinc.com > Signed-off-by: Palmer Dabbelt > Signed-off-by: Sasha Levin > --- > arch/riscv/Kconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig > index eb7f29a412f87..d6aad84efb95e 100644 > --- a/arch/riscv/Kconfig > +++ b/arch/riscv/Kconfig > @@ -118,6 +118,7 @@ config RISCV > select HAVE_SYSCALL_TRACEPOINTS > select IRQ_DOMAIN > select IRQ_FORCED_THREADING > + select KASAN_VMALLOC if KASAN > select MODULES_USE_ELF_RELA if MODULES > select MODULE_SECTIONS if MODULES > select OF KASAN_VMALLOC is broken for any kernel < 6.4, so this one should not be backported to any kernel (5.15, 6.1, 6.2, 6.3). Thanks, Alex