Received: by 10.192.165.148 with SMTP id m20csp61533imm; Thu, 3 May 2018 14:56:09 -0700 (PDT) X-Google-Smtp-Source: AB8JxZobW5v/Mr8ib+FVzMdDWeU7OgxD+dWEvhhDjyMEBSsCXJITYtzCjqXewOObiAVjzNcpy4XY X-Received: by 2002:a63:2787:: with SMTP id n129-v6mr20443409pgn.167.1525384569537; Thu, 03 May 2018 14:56:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525384569; cv=none; d=google.com; s=arc-20160816; b=IYD89dSN2pPzZVdv+6rqVD3nQXI/3q+AVujTbJmKDKTexHWxkh0QJq9haH88qGtdYg SPU9X6vW/sJj4mNfNLiMl/7djYs4R/kwuzASqbanjTVJM4smVlOrDzSdFxeENmsdk8ss vnQGwXhUsnqoZX8LIEsSmQ0+B8I9wQD20biuIMVhjwxDlfYkgM+9TvmMOAL6xwZtP0J7 Yb38WAItT41qCI1vw8PDO2BLcRaq1bOPlJmalNgOEyudlIAAyxpDkiw0wDKHIL/Sjlrn VF9nRkZW/0IPSXgos+Ogs/YeVqG0fWR1nFenslSvMo3TF9i03vahJPvkIwLvZB8ixhqG CV9g== 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:openpgp:from:cc:references:to:subject :arc-authentication-results; bh=BGlvOfGtMdqyKqdH2qS4G5L0vACwGyb2TdUlUI/4Epo=; b=OvdFhkEsng6HEKSUx+ckK2V53gfS2PLX3P+XD9lxN7YvJKt8FcAONbZn+fgMSywv1q YgziLO+l94WQ45NCUymxLpqR9MOhhfFAdRkf6I1XM8L4JHlnc6Slfa05QPTaSA1WaGx6 fUGSGNapWM/q6uhmkt40nH5BM6/qfBptk7/n86a5ENBldksEaNmeJu6d26IbwCq8JgS4 qJ3J3ENcPeTR3fQJQ1hhr51FUjClSQWicDFz4uds0DaKLK7zXuYUysibfXcOIQm073ZF CW8Kz06639TCXc6rAQqm9dSy7X2KLNQoPrwUzetH7HLoSGqlATLkQG4coHarAVQvJ1+y Y1xg== ARC-Authentication-Results: i=1; mx.google.com; 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 e1-v6si14227694pld.69.2018.05.03.14.55.55; Thu, 03 May 2018 14:56:09 -0700 (PDT) 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; 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 S1751291AbeECVzZ (ORCPT + 99 others); Thu, 3 May 2018 17:55:25 -0400 Received: from mga03.intel.com ([134.134.136.65]:12701 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750911AbeECVzY (ORCPT ); Thu, 3 May 2018 17:55:24 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 03 May 2018 14:55:24 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,360,1520924400"; d="scan'208";a="48118855" Received: from ray.jf.intel.com (HELO [10.7.201.133]) ([10.7.201.133]) by orsmga003.jf.intel.com with ESMTP; 03 May 2018 14:55:24 -0700 Subject: Re: Correct way to access the physmap? - Was: Re: [PATCH 7/9] Pmalloc Rare Write: modify selected pools To: Igor Stoppa , Matthew Wilcox References: <20180423125458.5338-1-igor.stoppa@huawei.com> <20180423125458.5338-8-igor.stoppa@huawei.com> <20180424115050.GD26636@bombadil.infradead.org> <035f2bba-ebb1-06a0-fb88-3d40f7e484a7@gmail.com> Cc: linux-security-module@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, kernel-hardening@lists.openwall.com, Igor Stoppa From: Dave Hansen Openpgp: preference=signencrypt Message-ID: Date: Thu, 3 May 2018 14:55:23 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <035f2bba-ebb1-06a0-fb88-3d40f7e484a7@gmail.com> 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 05/03/2018 02:52 PM, Igor Stoppa wrote: > At the end of the summit, we agreed that I would go through the physmap. Do you mean the kernel linear map? That's just another name for the virtual address that you get back from page_to_virt(): int *j = page_to_virt(vmalloc_to_page(i));