From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.9 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B62F8C10DCE for ; Fri, 6 Mar 2020 13:09:25 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 6E2D224655 for ; Fri, 6 Mar 2020 13:09:25 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=axtens.net header.i=@axtens.net header.b="gDWywhmb" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6E2D224655 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=axtens.net Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 1F91B6B0006; Fri, 6 Mar 2020 08:09:25 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 1A96D6B0007; Fri, 6 Mar 2020 08:09:25 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 098A86B0008; Fri, 6 Mar 2020 08:09:25 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0080.hostedemail.com [216.40.44.80]) by kanga.kvack.org (Postfix) with ESMTP id E79ED6B0006 for ; Fri, 6 Mar 2020 08:09:24 -0500 (EST) Received: from smtpin01.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id 93956180AD806 for ; Fri, 6 Mar 2020 13:09:24 +0000 (UTC) X-FDA: 76564968648.01.crow18_17e684fabf206 X-HE-Tag: crow18_17e684fabf206 X-Filterd-Recvd-Size: 4597 Received: from mail-pf1-f195.google.com (mail-pf1-f195.google.com [209.85.210.195]) by imf49.hostedemail.com (Postfix) with ESMTP for ; Fri, 6 Mar 2020 13:09:24 +0000 (UTC) Received: by mail-pf1-f195.google.com with SMTP id i13so1107154pfe.3 for ; Fri, 06 Mar 2020 05:09:24 -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=T2GBLuIvCBOmWl45i6b9vl6aJ1VEDw5RacoQqEYjc3PpBV1twuX0TQBy1Kt7NlU4zZ 5Gumrli4sKKaWgruC/F4+s3v9fEAo4MXrEii7DRObmgcyKTLHutsfpIA0RhRU6JLgj7g 41K1SIMG5Qd+OGWKFt6BmOKdRfElyZb70wPsEuvO3SJKZJQbGUdsc1GUku9ysQLCJjlL m9bxafVI64Ig2o4WQbcOI6WbjkZlHvgN/AjuP4HlAJUFrbOT1rXEba6j0+Wxj3EansTC clEUTnLRjMHDHvhBkUFP6D1x0msmetSvNM2nv0cKoL3Xsm7qNZr3cs1npjhVD4HbbZP+ PQFQ== X-Gm-Message-State: ANhLgQ3t+QZzDpHziSHOpsUtEmgzXQqfpXUs4nOwnekqj+URBdSaS348 PuwrBjIt94ZqaMW0IIbXRfbV4w== X-Google-Smtp-Source: ADFU+vv7MeaUlbRH0dd28x9kTKqYJIqOlQ7piuYzJGALMuTyWBBErd/77e69xbBepw42k+51RfRhkg== 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 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: 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