From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753945AbdKXQdM (ORCPT ); Fri, 24 Nov 2017 11:33:12 -0500 Received: from mga14.intel.com ([192.55.52.115]:63127 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753730AbdKXQdL (ORCPT ); Fri, 24 Nov 2017 11:33:11 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.44,448,1505804400"; d="scan'208";a="11513031" Subject: Re: [PATCH 25/43] x86/mm/kaiser: Unmap kernel from userspace page tables (core patch) To: Peter Zijlstra , Ingo Molnar References: <20171124091448.7649-1-mingo@kernel.org> <20171124091448.7649-26-mingo@kernel.org> <20171124121638.ej2flgfvctw2cqer@hirez.programming.kicks-ass.net> Cc: linux-kernel@vger.kernel.org, Andy Lutomirski , Thomas Gleixner , "H . Peter Anvin" , Borislav Petkov , Linus Torvalds From: Dave Hansen Message-ID: <36922832-274f-89fa-d39d-b73e75292216@linux.intel.com> Date: Fri, 24 Nov 2017 08:33:09 -0800 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: <20171124121638.ej2flgfvctw2cqer@hirez.programming.kicks-ass.net> 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/24/2017 04:16 AM, Peter Zijlstra wrote: > On Fri, Nov 24, 2017 at 10:14:30AM +0100, Ingo Molnar wrote: >> +The minimalistic kernel portion of the user page tables try to >> +map only what is needed to enter/exit the kernel such as the >> +entry/exit functions themselves and the interrupt descriptor >> +table (IDT). > > There are a few unnecessary things that get mapped >> +such as the first C function when entering an interrupt (see >> +comments in kaiser.c). > > If I understood Andy's patches correctly, this should no longer be > required. Is this text still correct? It is out of date. We were able to remove the irq handler mappings.