Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp243283ybg; Mon, 8 Jun 2020 22:34:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy4iwWW4bKNfCipRIZB+awLrutlNMWRMjMfVl57KwURbZMZJy0rOvqqR/FEJuLXYsQJVZ1W X-Received: by 2002:aa7:ce13:: with SMTP id d19mr25936959edv.355.1591680872373; Mon, 08 Jun 2020 22:34:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591680872; cv=none; d=google.com; s=arc-20160816; b=0gnWBoiv96wRJu3sBqE6/r3tRSDaUuox5S2y/BO4zB5MS+XlLVvYvzs8LzEjsV7Mcb Gq067tPkN5Ci3kr1H/WYh3TT/N9ps/oDD4lAYIbQgVfOc4326UtaytCKMibaAIOn5q2u LfPy8FOg14k5Lvz+kLJQQY5UE/+RY/bIMBiJNBo68Mg4G2sG40mjcwzuRBBYI65LQNXW x1hrE6srJA6PzeoDCBZQ71mTxJbo3wbwuPTY0I2m0th26w5IcNr/qHFidUVSU5QJv7+S 65u462NBsmilqaAGzyRP4d+SGdhanpQKMLsLe8bkrjCAuXvUe33OI12j7Upi/YkWOjqm JPtQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:message-id:subject:references :in-reply-to:cc:to:from; bh=gCPCLELzPWOShc5jJfTrwwp4UjyqmEYIsdC6+hlS/6U=; b=ZScS68lo3NLe6ynapYV+XdfwDsdN0Z1CdVIg2qmyycU88GqX3jZGW+vq1UZbc/zrCM c85CLSX8EIZNr7Tyk3xHSRl3gqVc8/fwcxncUapOtEF6xn3gMkc3tYTOS+D8gGAmWOsu oh802KA1oVP6G7uWVz/KnEYQjxyXWVWqyz7zZJ6imiTt0nXaiUucKiaXvsFhm6CTFbw5 JER9IqoF1uA+VOid5M+zaj9q/Ci19Os7ps8FhLlKS0z4r6pLda8kVx4DAEHPPeJmhvLl +LVZv2vyVPiK8p9+bCb7an+3F29WBG4pJaxGhpSqbFCfCZihqf2zzRPQqPceosNcvoEV 3hFg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n12si10497084edo.509.2020.06.08.22.34.10; Mon, 08 Jun 2020 22:34:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727980AbgFIF3c (ORCPT + 99 others); Tue, 9 Jun 2020 01:29:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39800 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727792AbgFIF2r (ORCPT ); Tue, 9 Jun 2020 01:28:47 -0400 Received: from ozlabs.org (ozlabs.org [IPv6:2401:3900:2:1::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0BEFAC03E969 for ; Mon, 8 Jun 2020 22:28:47 -0700 (PDT) Received: by ozlabs.org (Postfix, from userid 1034) id 49gzDs2zx8z9sTH; Tue, 9 Jun 2020 15:28:44 +1000 (AEST) From: Michael Ellerman To: Paul Mackerras , Benjamin Herrenschmidt , Michael Ellerman , Christophe Leroy Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org In-Reply-To: <7195fcde7314ccbf7a081b356084a69d421b10d4.1590660977.git.christophe.leroy@csgroup.eu> References: <7195fcde7314ccbf7a081b356084a69d421b10d4.1590660977.git.christophe.leroy@csgroup.eu> Subject: Re: [PATCH] powerpc/32: disable KASAN with pages bigger than 16k Message-Id: <159168035113.1381411.9694012621969820760.b4-ty@ellerman.id.au> Date: Tue, 9 Jun 2020 15:28:44 +1000 (AEST) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 28 May 2020 10:17:04 +0000 (UTC), Christophe Leroy wrote: > Mapping of early shadow area is implemented by using a single static > page table having all entries pointing to the same early shadow page. > The shadow area must therefore occupy full PGD entries. > > The shadow area has a size of 128Mbytes starting at 0xf8000000. > With 4k pages, a PGD entry is 4Mbytes > With 16k pages, a PGD entry is 64Mbytes > With 64k pages, a PGD entry is 256Mbytes which is too big. > > [...] Applied to powerpc/next. [1/1] powerpc/32: Disable KASAN with pages bigger than 16k https://git.kernel.org/powerpc/c/888468ce725a4cd56d72dc7e5096078f7a9251a0 cheers