From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754490AbdKAR6t (ORCPT ); Wed, 1 Nov 2017 13:58:49 -0400 Received: from merlin.infradead.org ([205.233.59.134]:42454 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751495AbdKAR6s (ORCPT ); Wed, 1 Nov 2017 13:58:48 -0400 Subject: Re: [PATCH 00/23] KAISER: unmap most of the kernel from userspace page tables To: Dave Hansen , Linus Torvalds Cc: Andy Lutomirski , Linux Kernel Mailing List , linux-mm , Kees Cook , Hugh Dickins References: <20171031223146.6B47C861@viggo.jf.intel.com> <9e45a167-3528-8f93-80bf-c333ae6acb71@linux.intel.com> <8bacac66-7d3e-b15d-a73b-92c55c0b1908@linux.intel.com> From: Randy Dunlap Message-ID: <094b0c84-929e-c108-0fc0-19753a18d892@infradead.org> Date: Wed, 1 Nov 2017 10:58:40 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <8bacac66-7d3e-b15d-a73b-92c55c0b1908@linux.intel.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/01/2017 10:31 AM, Dave Hansen wrote: (from attachment) diff --git a/arch/x86/mm/kaiser.c b/arch/x86/mm/kaiser.c index 57f7637..cde9014 100644 --- a/arch/x86/mm/kaiser.c +++ b/arch/x86/mm/kaiser.c @@ -49,9 +49,21 @@ static DEFINE_SPINLOCK(shadow_table_allocation_lock); /* + * This is a generic page table walker used only for walking kernel + * addresses. We use it too help recreate the "shadow" page tables to help + * which are used while we are in userspace. + * -- ~Randy