Received: by 10.223.185.116 with SMTP id b49csp1099755wrg; Wed, 14 Feb 2018 11:37:19 -0800 (PST) X-Google-Smtp-Source: AH8x225ZcqpNKBY5gjx6XCNGYsGy3s8EqLg99UXo1tREwfBE6cVLK/0rqrKEGa8w1qWriD7lQHcG X-Received: by 2002:a17:902:12f:: with SMTP id 44-v6mr92559plb.403.1518637038955; Wed, 14 Feb 2018 11:37:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518637038; cv=none; d=google.com; s=arc-20160816; b=y+K9eu+QUVtEnzUMoFD2W8iIDXxov0eu+BRevaFWE5WGbJjXeAsQRGMfKPlDDDhZvg SZl+fBPSPdRP1RfZJOqfhhBElq8AKmsZlVYfa46YP91bXM7pPZ1pCTdLBrUMVkBTxyx1 XceOTMU7ahWtrPJuOzsjkmRWblPzmQxRoX79mBNV8s1OcxCcZ+VWECVcA4PFu1eqhyMc oNDt1WBM6rOpxu65CHekVkja37g9zXo8n1aJOgW0nYqq2BtkqduAQKNEbkMFNSQ2rrMU 63420uIg+/sd4qMHoddmy2mHtbz1FBazqXSx4OLqDhj+GMBDjjtC+/m7T4OGb8uOqfTq +Anw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature:dkim-signature :arc-authentication-results; bh=LOq7+TRubxz5WD6WL46mDh+R6ScvsNem6FpQbvaIWcU=; b=W5oCkJ4CGedHfcItUAioPV9Al7yo/9Ezhi0nzedCc9QIWOZwk7SZl0mJeBsmnD7wSq XvCSIF1/GzIOCYFCaG4c0viyeGxT4T0orGOHjxix7Zag5SqmxRtpw9aYg/qayJR4idcs 3/h6qaavDR//t6Ba9Cumt66bjE97XJ59ToZG0Cy152FTzlXUO223GwBcsrmfFE7Zropz FzRbWNOEHgmjr/m1kbljDCLswh6mbhTQLp02NEyk6QRfzeQgGx31sZG+HOnYoDiJFGc0 FJdIzq3HPlxAHgYip+IM0YHeq4PdhF90CzkzYTDY/YVJSgCiQ2ukHvq4ML3URotewbgm lM4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@google.com header.s=20161025 header.b=O+1+VrJ8; dkim=fail header.i=@chromium.org header.s=google header.b=VCkNTQEu; 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=fail (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l4-v6si185272plk.510.2018.02.14.11.37.03; Wed, 14 Feb 2018 11:37:18 -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=fail header.i=@google.com header.s=20161025 header.b=O+1+VrJ8; dkim=fail header.i=@chromium.org header.s=google header.b=VCkNTQEu; 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=fail (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1163064AbeBNTgI (ORCPT + 99 others); Wed, 14 Feb 2018 14:36:08 -0500 Received: from mail-vk0-f68.google.com ([209.85.213.68]:45957 "EHLO mail-vk0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1163042AbeBNTfz (ORCPT ); Wed, 14 Feb 2018 14:35:55 -0500 Received: by mail-vk0-f68.google.com with SMTP id j204so13570237vke.12 for ; Wed, 14 Feb 2018 11:35:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=LOq7+TRubxz5WD6WL46mDh+R6ScvsNem6FpQbvaIWcU=; b=O+1+VrJ8ufGTfa1IEACVDz0zT6Q1A9gn64moVX+0TCNVDkAyTZpxXyf5suCSTzQGpS 6f3QdRBRsj6sv0jXKUS0H4NKZmMH2/7ziIeW2SS9M8QHwwVQlfi545C38LKkg1/jCYz/ cAvjpaMr7lsYzzr+FJ04W5xy1m/wW1UBr27C27dVhGwV1bKDkHA4CAI2PRh5owOVbEeu EqcFLjdUDukVeAyqjSu8Jli+n8fgvWSomKOFYxCeXdpZUGZbLkZOb3FkOr1nKo25Hs7z AwdxoCHw59wV9XWlGTACLYh1wz1i/ijYetpt00qI1d2vrdqrWEZFPYm4rJK7Wqe6lii1 px+w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=LOq7+TRubxz5WD6WL46mDh+R6ScvsNem6FpQbvaIWcU=; b=VCkNTQEuG6ft0YfePtZUh04XEpyYHqppgOHqqjbwNFfDWeNTLrW+rn8oYkP3tGuypi 6vmmj8OXlJsUFoMGU/xchyoz0dFjaLEfQtTUA3ihPytDhDghH/l1Ixz1jrDweWzmcWqr ZoRLjpoDUJm/2E7Mab5Nr5yyeDIw+u9FDLq68= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=LOq7+TRubxz5WD6WL46mDh+R6ScvsNem6FpQbvaIWcU=; b=nj9ePfg8X+XnjLZN2Ez36Jacea5CfResWuoV9eMM4QnQ8t3pSXyF+sSQ7353j7hrTv p9JE9kFywCiGE7wogSC5xjjYKNW76oHMUngci9nvY9nm9JhiHXD5li0HZne0oOhS9y5R Vxwbl93rSOdZkl+P94mwvPxd0696SlbWFCoZdGL3q9mKAL1T1hZRsmT6nXn4R8q4xn4f qw7EO9zbOtzKNyAKI244IL7XC9tQaU+qZyGvCYkQdDdwwj0xamFdi3xwmeshf4I7+/UA VFBRe5XH7CDIp9+7MTA+0oaIDXI7LhuC0MBxVvtOxZ32heaVDwBpgVeQb9ZKJlr/Qae2 bTeA== X-Gm-Message-State: APf1xPD8iykmj4ccuhEQUWN62GUMPYQqhz9cFliwLL0vn0BawJzXBG5F MYWcEbr+rVQ3xYFGiIOS6ubZo9RVafIkam/6d709Jw== X-Received: by 10.31.230.132 with SMTP id d126mr308119vkh.123.1518636954748; Wed, 14 Feb 2018 11:35:54 -0800 (PST) MIME-Version: 1.0 Received: by 10.31.56.87 with HTTP; Wed, 14 Feb 2018 11:35:54 -0800 (PST) In-Reply-To: References: <20180124175631.22925-1-igor.stoppa@huawei.com> <20180124175631.22925-5-igor.stoppa@huawei.com> <20180126053542.GA30189@bombadil.infradead.org> <8818bfd4-dd9f-f279-0432-69b59531bd41@huawei.com> <17e5b515-84c8-dca2-1695-cdf819834ea2@huawei.com> <414027d3-dd73-cf11-dc2a-e8c124591646@redhat.com> <2f23544a-bd24-1e71-967b-e8d1cf5a20a3@redhat.com> From: Kees Cook Date: Wed, 14 Feb 2018 11:35:54 -0800 X-Google-Sender-Auth: ffGQw7x9JhgsWGsRpCVEXVixKxc Message-ID: Subject: Re: arm64 physmap (was Re: [kernel-hardening] [PATCH 4/6] Protectable Memory) To: Laura Abbott Cc: Jann Horn , Igor Stoppa , Boris Lukashev , Christopher Lameter , Matthew Wilcox , Jerome Glisse , Michal Hocko , Christoph Hellwig , linux-security-module , Linux-MM , kernel list , Kernel Hardening , linux-arm-kernel Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 14, 2018 at 11:29 AM, Kees Cook wrote: > Why does using finer granularity on the physmap degrade performance? I > assume TLB pressure, but what is heavily using that area? (I must not > be understanding what physmap actually gets used for -- I thought it > was just a convenience to have a 1:1 virt/phys map for some lookups?) Jann has sorted me out: it's that physmap isn't an _alias_ for the buddy allocator memory areas; it's used directly. -Kees -- Kees Cook Pixel Security