From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf0-f198.google.com (mail-pf0-f198.google.com [209.85.192.198]) by kanga.kvack.org (Postfix) with ESMTP id 1893F6B000A for ; Thu, 3 May 2018 17:55:26 -0400 (EDT) Received: by mail-pf0-f198.google.com with SMTP id z1so265785pfh.3 for ; Thu, 03 May 2018 14:55:26 -0700 (PDT) Received: from mga01.intel.com (mga01.intel.com. [192.55.52.88]) by mx.google.com with ESMTPS id u75-v6si11620280pgb.468.2018.05.03.14.55.24 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 03 May 2018 14:55:25 -0700 (PDT) Subject: Re: Correct way to access the physmap? - Was: Re: [PATCH 7/9] Pmalloc Rare Write: modify selected pools 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> From: Dave Hansen Message-ID: Date: Thu, 3 May 2018 14:55:23 -0700 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: owner-linux-mm@kvack.org List-ID: To: Igor Stoppa , Matthew Wilcox Cc: linux-security-module@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, kernel-hardening@lists.openwall.com, Igor Stoppa 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));