Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1340786ybl; Fri, 13 Dec 2019 13:38:47 -0800 (PST) X-Google-Smtp-Source: APXvYqw3GYD94cXFbrvQ/A+4Xz0J40LKyw5nhz0tiTxfyu3D5qXeXXwCWhSy5WUorscIOsB3ays3 X-Received: by 2002:aca:5188:: with SMTP id f130mr8333098oib.47.1576273127600; Fri, 13 Dec 2019 13:38:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576273127; cv=none; d=google.com; s=arc-20160816; b=EydB3ZxzP+boHZBKgc4Qd2Hx+n4R0n3uxRJxJiw7beoDhohI0gKH/63mv1gc15mP29 mP0R460aLgwNmCiSlNQ6GAqHXrF4WJyyxaHdcZ8WQXhEUxSwP6Yhr5zk/7/zQluo0HO9 3YC3bC2YoKeHqcmRl8h+ZbjjsvQ9jWBytdXbTTaAgzFb29nHjWr44IMQaddpQZXAoi9x ZN1xMyrcZdntFbEFVpZVYs6tcKkeXu5fV9nwbn5o9xtciIctivDP/UO/bhHltwhbn4Je 6hAvCiqov4JFLW27al61r78dU7CuL5nTX3VCoogvnEb1AwY5i61D6fcJ15Rg8OGBV2B5 Tyrg== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject:dkim-signature; bh=6Cel1cpD0Jtu0AycJ47huuRD/DgMmGpodkanI6OR1bo=; b=aL1HJEWe/2ZCFHEzKkgHcxlTXz+ixdhow2BmrkE51/B/Q66FxGkyP8+Pntll9K3NEf K+kGZ+o0QfF8K8CVFnqJvpVtertV4/fS+awoHe7QQyR56sVB9CwwjhC0kEsJXg5BlDks RPEtPN/oI8B+P8EIQPEOVhnuQACdROfwOYI/832JN5Tk8YDK59KiWzGN/cVJXTHElqGF ABGH6g6tPGqVYNrustlosb5Yn63J1oPOmN/aJa2owL+rLlCBN+Edlneyt8F5GAdDGlKz eYv7aXEY0flH+fdRl4sZMtlLO4B82osmxDzKYX4f7EuCCvQHLZg1kbkaCjRvjB3VMsBL a4kA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=BkJUDoxm; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y198si6060746oia.163.2019.12.13.13.38.35; Fri, 13 Dec 2019 13:38:47 -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=@gmail.com header.s=20161025 header.b=BkJUDoxm; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726613AbfLMVhb (ORCPT + 99 others); Fri, 13 Dec 2019 16:37:31 -0500 Received: from mail-lj1-f194.google.com ([209.85.208.194]:39369 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725747AbfLMVha (ORCPT ); Fri, 13 Dec 2019 16:37:30 -0500 Received: by mail-lj1-f194.google.com with SMTP id e10so233002ljj.6 for ; Fri, 13 Dec 2019 13:37:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=6Cel1cpD0Jtu0AycJ47huuRD/DgMmGpodkanI6OR1bo=; b=BkJUDoxm4UTj76qbb34bMW8fVbz7oLUiI7HX3/57fDHmH3Uv+GHq3VcDR+vHKaAg5U MRvB2yJVN7+A61+KCixPlGkUzaVMQiuVTIlI172XVT5x+S7mtRuVBdgZMlZ52VvAd6w5 8DS69v4jrJn0jMy9a5+r0cCy2lYUVl4XLKLiepprazD+qKqkNHo0ECt0YCpdRVGTyHz4 VjAzgEPu/D/m8aE66lLDO+FNBU7D7ZHpuDWXX8Fl352r0ij5bbjS4FbTOJxn+TYzVZO7 Bj3w9oapQScyHyiAMtgvC+M5Mq1e2F52BG03GzWhSggUR+7xTx4IhJagsXPmx1ye6JJI O/PQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=6Cel1cpD0Jtu0AycJ47huuRD/DgMmGpodkanI6OR1bo=; b=DCUpTKZREb5B4GfJ/KIf6MBaTjbxUjZuvq7BlX4KHzREodFhE0ocd2OBNWulKeeGJk uVB6DKumpDNdmNgkYX7oeE3w1KFeUQkyMukL8JAkVgeRAzW9z0YhLyETGuzRKXJ+wJdA qQ9YLHhkPmzJ6oqH+PxFeeBZdxJpyWaeFndsxcvEYnyyuwfaL3FryvlALZ12SKsauz14 ZmfX8c0r0m/7q0MZiqml085kMfUEV4ZxnIuARROLTKNfP6GMhuPbn2bVo+rfLSQumpG7 JwWfiTzlF1jPQbG4mNXwhH2PyIDVhAn/5dxumZ0ieQLeGRS/350VEqLUO5mELTOx0Csh GrFg== X-Gm-Message-State: APjAAAV9/jRidtaUDcgKOS29B9/t8TM9JGrLLa1bInE+Kyrw5/0SzCRC m+mhQ5OYALK8DHgDLiq3nK4= X-Received: by 2002:a2e:165c:: with SMTP id 28mr10631069ljw.247.1576273048447; Fri, 13 Dec 2019 13:37:28 -0800 (PST) Received: from [192.168.68.108] (115-64-122-209.tpgi.com.au. [115.64.122.209]) by smtp.gmail.com with ESMTPSA id z7sm5774631lfa.81.2019.12.13.13.37.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 13 Dec 2019 13:37:27 -0800 (PST) Subject: Re: [PATCH v3 1/3] kasan: define and use MAX_PTRS_PER_* for early shadow tables To: Daniel Axtens , linux-kernel@vger.kernel.org, linux-mm@kvack.org, linuxppc-dev@lists.ozlabs.org, kasan-dev@googlegroups.com, christophe.leroy@c-s.fr, aneesh.kumar@linux.ibm.com References: <20191212151656.26151-1-dja@axtens.net> <20191212151656.26151-2-dja@axtens.net> From: Balbir Singh Message-ID: <37872cba-5cdf-2e28-df45-70df4e8ef5af@gmail.com> Date: Sat, 14 Dec 2019 08:37:20 +1100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <20191212151656.26151-2-dja@axtens.net> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 13/12/19 2:16 am, Daniel Axtens wrote: > powerpc has a variable number of PTRS_PER_*, set at runtime based > on the MMU that the kernel is booted under. > > This means the PTRS_PER_* are no longer constants, and therefore > breaks the build. > > Define default MAX_PTRS_PER_*s in the same style as MAX_PTRS_PER_P4D. > As KASAN is the only user at the moment, just define them in the kasan > header, and have them default to PTRS_PER_* unless overridden in arch > code. > > Suggested-by: Christophe Leroy > Suggested-by: Balbir Singh > Signed-off-by: Daniel Axtens > --- Reviewed-by: Balbir Singh Balbir