Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1356183rwd; Thu, 18 May 2023 10:57:29 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ69CrliFp1yJm0uxg7vm3s48WL/yz1K1WAyR379P2YLczsrwGd5S5VBMJ3bZeMNcNB2rGnB X-Received: by 2002:a17:902:c94a:b0:1a9:546c:1593 with SMTP id i10-20020a170902c94a00b001a9546c1593mr4067825pla.14.1684432649619; Thu, 18 May 2023 10:57:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684432649; cv=none; d=google.com; s=arc-20160816; b=nUrq44OsV/9gmdKV8wIOPQayopVw7AhsAx4fWqJOF8NbvRvCWzUqK8Yemo3ctwzvzV qVuzZAomVelnDa3nmTJW5Q4V6pbIsQT4fkmWjaofyCkNaGbLiIeb7Lm2Fx430e7cExHf XoVA/clMcIUARtWjDP0kQXcJwVkh7H70AZo93P5mRxtOWI6GFsj7EF4plHaoJYJQxre8 9gWXhlP++SbXooj7pPQZzxkWhNpr6ih/0z0bBrbSP0cs8owxkuaHEzpFY1sNAEiPp7eG FI3Ey/aOIKpFSa/Ul/TKQzDl24dVO92WjSOas8A22b1wocfZP1Xveay3yoqgyP5U2Cst VcDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=P420+XAPzcK6aDZIZNh6+0EKzM8cRsGLxs5UIjHHbts=; b=QpLjeQcQluMsBCayEyIdD8v50/psLNavQDBqQq0kRwA+jumXR7wMQpkrHPDN42Po/m UQDiTQh/jC4nax7SBK/B2lYs2pFUBJTVJ9BPUcxZZpsyQHi4F15lzeyoL+hdPpfa/E3c pJyRRQ9Aco0LABhrCKdSlHWUxi9z8oBedb08QrdF8XJjPgxL8Ku7+L1hEhpmHFn1lfTa i2Dw/H44U4vi5aGbqe8cMbpQbcFcpZqEUUnxE1rgAzTs5OYJq2c8qzQUz0dkIgMrgfBf 0oym9B2LUYkJ28ZhxXZqV0FPH4kkkG7Y6gJ05T7yW5p2VIu0L5SdHtQhn4zpoq0r46aN Zb8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jsAPYUpO; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e11-20020a170902ed8b00b001a699fc81e8si1829790plj.98.2023.05.18.10.57.12; Thu, 18 May 2023 10:57:29 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jsAPYUpO; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229931AbjERRpa (ORCPT + 99 others); Thu, 18 May 2023 13:45:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37830 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229829AbjERRp2 (ORCPT ); Thu, 18 May 2023 13:45:28 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1964810CE; Thu, 18 May 2023 10:45:26 -0700 (PDT) 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 92DD5650D3; Thu, 18 May 2023 17:45:25 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C1E47C433D2; Thu, 18 May 2023 17:45:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684431925; bh=lrNR3Kj8pwFUL4gmGaZGPGna/6gQVw84egS4nJteM9A=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=jsAPYUpOGrJjow4IZQA8Vn9fegedOfdXtFRGY1bmYYo19X1SUsnAOamSK1TdB/aIg em2keJtu12XgSiWFyoWI5s41Vvsq+e4tKQ1nmZlbjjevZYT+eRUMZZ4IWLKbFVq4o2 B6N+W/CZKnGp9ACxHnWwjaEjeiXWMrIotVilRL1r8WayjPpbDd8EguOaV7aWYt99lG NcWuWTuaweS6Hn+2CLAYH4KOCTHD+iVXW4pt/RT02SImUgE3xfGYDypUaPyIKztjbD SNddghEDcllERzPdhV/BWqeX453R8n/1nUS5ukBAwnK0TE68QIbgD8m/XM5gbVThDZ Q63PWwsg6sUuQ== Date: Thu, 18 May 2023 13:45:23 -0400 From: Sasha Levin To: Alexandre Ghiti Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, Alexandre Ghiti , =?iso-8859-1?Q?Bj=F6rn_T=F6pel?= , Palmer Dabbelt , paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu, linux-riscv@lists.infradead.org Subject: Re: [PATCH AUTOSEL 6.3 5/7] riscv: Unconditionnally select KASAN_VMALLOC if KASAN Message-ID: References: <20230509035455.59524-1-sashal@kernel.org> <20230509035455.59524-5-sashal@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,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 On Fri, May 12, 2023 at 11:51:03AM +0200, Alexandre Ghiti wrote: >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). Ack, dropped. Thanks! -- Thanks, Sasha