Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp6816391ybf; Fri, 6 Mar 2020 05:10:36 -0800 (PST) X-Google-Smtp-Source: ADFU+vv0jQ01sP8L0NWTfDvFf7UQiF5aPpgk1YGn+xVZyUeI3cXBAPx25PHEdePBg4CGa0XNTnAq X-Received: by 2002:aca:c30a:: with SMTP id t10mr2534100oif.9.1583500236273; Fri, 06 Mar 2020 05:10:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583500236; cv=none; d=google.com; s=arc-20160816; b=NgI3KSz+NKm1ZiRhBany0AKgaIlz+wjLXBotkDg9HBmM7qaxG+yxT3g7uQAAWF4PEP rg1qhxc+atBvaajuiOA0GE1Gz/FSGa+Gx9ITlD4irWJKg/ztreU6YfzdLPdHAImO7cIx AUrF1r629I/z+ZWdGf549i7T+W/Id3TCuPR6ZV86If1f8W3Pk+uVLtd5kZSPxvKiV7ge u2VWBZtkgVwWH2EztBdLIcisKFhyh6yx5GtnhezqA4PQ3FFbt4Wj4MTb+TgvRv/rKLSY 5xx4R6JHtIBvu642yKuxY3CLftt7B6YtpqdQVHvMuZxUzmzlHmUGgNqJUN0+uFs1K4Ax SDWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:references:in-reply-to:subject:cc:to:from :dkim-signature; bh=QwvL99c3sTAWScS17ZDj22BvXW0QqQWIhRt4cYTFYXI=; b=P/lr1cVrLn+gBz0q+uppnUcbiuVduQp4twj3tiargfhudMCDSPGhvxEzLsvb86i5WZ uopzS3I3NH/AVI3Vm+Sy1SxIxrF6fSbqFrcaPxk6lu59F0ev+eV2PIHvaYxYNst+l2Jd oP2Sl0BxqOWR5Y5bz2r1XZm0DSr3UhHRZoALK7yDi6ZklphE0dZ+7FoqGXlDA+xzfH6q wxybasJEXLbHHkALbZixRb0RlV3CqmAI4rbRyGcC93rL5GSqLsvxd6AUyG+E5TqTK/zK dL/B/1/WhancFuFycssSxiY6RmzuR58Q/AJuxqS9oHtgJxRCMlAh8cmi/NqSh3/8x7X+ sY+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@axtens.net header.s=google header.b=gDWywhmb; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n70si1220736oig.95.2020.03.06.05.10.23; Fri, 06 Mar 2020 05:10:36 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@axtens.net header.s=google header.b=gDWywhmb; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727069AbgCFNJZ (ORCPT + 99 others); Fri, 6 Mar 2020 08:09:25 -0500 Received: from mail-pf1-f195.google.com ([209.85.210.195]:46158 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726650AbgCFNJY (ORCPT ); Fri, 6 Mar 2020 08:09:24 -0500 Received: by mail-pf1-f195.google.com with SMTP id o24so1084852pfp.13 for ; Fri, 06 Mar 2020 05:09:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axtens.net; s=google; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-transfer-encoding; bh=QwvL99c3sTAWScS17ZDj22BvXW0QqQWIhRt4cYTFYXI=; b=gDWywhmbdzL/1mNf8BQtKOQQExNz+wqF3qt0L2eaCPZbG2Lj6B7bL8WZg+7u0K5wes 7pVDP7QvRuKySmNNFafef4bDzshFV/CT33oXdQ+tiARnCAzwniqXtfPzWNYFvlYn8K9m KMzZFJKAxHpogMkKBks+kigB6njnZ3FSc9GT4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version:content-transfer-encoding; bh=QwvL99c3sTAWScS17ZDj22BvXW0QqQWIhRt4cYTFYXI=; b=RKNYbHtigw28E+k6yv5KqqKX+0+7OqqfEECyVTiboeHCeIGMPFjOqqpKhITBFwEymR PUeqcYfc2Luy59xXUlO4+85otn6DGvppW3EHVOhYOjfkGdlU1GcLZNjK2rQ8oH4jqEu3 v5aNHL/rlCj/5G5qH5wg+km2VncMptuGn5q2UJ3jLj3CMLJfv/HBGSaMK15sA4A5CAZa aGJcUgDNrZ70C8d+iuGQmXXdv+H0xW5odCT6ViZGUEHvuFE+gX64sIahQNOapr/hjIys cOHtfZz69VERqTBkYOSNjF8BbUTV4F5X+xLNnYrvPi5KENwCqZvZxNkLlW58rmKcjxP3 unLg== X-Gm-Message-State: ANhLgQ07uVR9iiJLuOoqaQR15yUtTla+tw58yZIErR/sqqjLnV5gHdV9 uyJjnBEVNQ6UsU9b6ZxlJjnCdQ== X-Received: by 2002:a63:a351:: with SMTP id v17mr3195903pgn.319.1583500163031; Fri, 06 Mar 2020 05:09:23 -0800 (PST) Received: from localhost (2001-44b8-111e-5c00-b120-f113-a8cb-35fd.static.ipv6.internode.on.net. [2001:44b8:111e:5c00:b120:f113:a8cb:35fd]) by smtp.gmail.com with ESMTPSA id k5sm9354724pju.29.2020.03.06.05.09.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Mar 2020 05:09:21 -0800 (PST) From: Daniel Axtens To: Christophe Leroy , linux-kernel@vger.kernel.org, linux-mm@kvack.org, linuxppc-dev@lists.ozlabs.org, kasan-dev@googlegroups.com, aneesh.kumar@linux.ibm.com, bsingharora@gmail.com Cc: Michael Ellerman Subject: Re: [PATCH v7 4/4] powerpc: Book3S 64-bit "heavyweight" KASAN support In-Reply-To: References: <20200213004752.11019-1-dja@axtens.net> <20200213004752.11019-5-dja@axtens.net> Date: Sat, 07 Mar 2020 00:09:17 +1100 Message-ID: <87wo7xpr42.fsf@dja-thinkpad.axtens.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Christophe Leroy writes: > Le 13/02/2020 =C3=A0 01:47, Daniel Axtens a =C3=A9crit=C2=A0: >> diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig >> index 497b7d0b2d7e..f1c54c08a88e 100644 >> --- a/arch/powerpc/Kconfig >> +++ b/arch/powerpc/Kconfig >> @@ -169,7 +169,9 @@ config PPC >> select HAVE_ARCH_HUGE_VMAP if PPC_BOOK3S_64 && PPC_RADIX_MMU >> select HAVE_ARCH_JUMP_LABEL >> select HAVE_ARCH_KASAN if PPC32 >> + select HAVE_ARCH_KASAN if PPC_BOOK3S_64 && PPC_RADIX_MMU > > That's probably detail, but as it is necessary to deeply define the HW=20 > when selecting that (I mean giving the exact amount of memory and with=20 > restrictions like having a wholeblock memory), should it also depend of=20 > EXPERT ? If it weren't a debug feature I would definitely agree with you, but I think being a debug feature it's not so necessary. Also anything with more memory than the config option specifies will still boot - it's just less memory that won't boot. I've set the default to 1024MB: I know that's a lot of memory for an embedded system but I think for anything with the Radix MMU it's an OK default. I'm sure if mpe disagrees he can add EXPERT when he's merging :) > Maybe we could have > > - select HAVE_ARCH_KASAN_VMALLOC if PPC32 > + select HAVE_ARCH_KASAN_VMALLOC if HAVE_ARCH_KASAN That's a good idea. Done. Thanks for the review! Regards, Daniel > >> select HAVE_ARCH_KGDB >> select HAVE_ARCH_MMAP_RND_BITS >> select HAVE_ARCH_MMAP_RND_COMPAT_BITS if COMPAT > > > Christophe