From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751615AbeAPTlP (ORCPT + 1 other); Tue, 16 Jan 2018 14:41:15 -0500 Received: from 8bytes.org ([81.169.241.247]:59362 "EHLO theia.8bytes.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750905AbeAPTlO (ORCPT ); Tue, 16 Jan 2018 14:41:14 -0500 Date: Tue, 16 Jan 2018 20:41:12 +0100 From: Joerg Roedel To: Dave Hansen Cc: Thomas Gleixner , Ingo Molnar , "H . Peter Anvin" , x86@kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Linus Torvalds , Andy Lutomirski , Josh Poimboeuf , Juergen Gross , Peter Zijlstra , Borislav Petkov , Jiri Kosina , Boris Ostrovsky , Brian Gerst , David Laight , Denys Vlasenko , Eduardo Valentin , Greg KH , Will Deacon , aliguori@amazon.com, daniel.gruss@iaik.tugraz.at, hughd@google.com, keescook@google.com, Andrea Arcangeli , Waiman Long , jroedel@suse.de Subject: Re: [PATCH 10/16] x86/mm/pti: Populate valid user pud entries Message-ID: <20180116194112.GD28161@8bytes.org> References: <1516120619-1159-1-git-send-email-joro@8bytes.org> <1516120619-1159-11-git-send-email-joro@8bytes.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On Tue, Jan 16, 2018 at 10:06:48AM -0800, Dave Hansen wrote: > On 01/16/2018 08:36 AM, Joerg Roedel wrote: > > > > In PAE page-tables at the top-level most bits we usually set > > with _KERNPG_TABLE are reserved, resulting in a #GP when > > they are loaded by the processor. > > Can you save me the trip to the SDM and remind me which bits actually > cause trouble here? Everything besides PRESENT, PCD, PWT and the actual physical address, so RW, and NX for example cause a #GP. Joerg From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-vk0-f69.google.com (mail-vk0-f69.google.com [209.85.213.69]) by kanga.kvack.org (Postfix) with ESMTP id 36EEC6B0069 for ; Fri, 19 Jan 2018 10:27:10 -0500 (EST) Received: by mail-vk0-f69.google.com with SMTP id y127so1050462vkg.17 for ; Fri, 19 Jan 2018 07:27:10 -0800 (PST) Received: from theia.8bytes.org (8bytes.org. [81.169.241.247]) by mx.google.com with ESMTPS id w51si2906558edb.141.2018.01.16.11.41.13 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 16 Jan 2018 11:41:13 -0800 (PST) Date: Tue, 16 Jan 2018 20:41:12 +0100 From: Joerg Roedel Subject: Re: [PATCH 10/16] x86/mm/pti: Populate valid user pud entries Message-ID: <20180116194112.GD28161@8bytes.org> References: <1516120619-1159-1-git-send-email-joro@8bytes.org> <1516120619-1159-11-git-send-email-joro@8bytes.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: owner-linux-mm@kvack.org List-ID: To: Dave Hansen Cc: Thomas Gleixner , Ingo Molnar , "H . Peter Anvin" , x86@kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Linus Torvalds , Andy Lutomirski , Josh Poimboeuf , Juergen Gross , Peter Zijlstra , Borislav Petkov , Jiri Kosina , Boris Ostrovsky , Brian Gerst , David Laight , Denys Vlasenko , Eduardo Valentin , Greg KH , Will Deacon , aliguori@amazon.com, daniel.gruss@iaik.tugraz.at, hughd@google.com, keescook@google.com, Andrea Arcangeli , Waiman Long , jroedel@suse.de On Tue, Jan 16, 2018 at 10:06:48AM -0800, Dave Hansen wrote: > On 01/16/2018 08:36 AM, Joerg Roedel wrote: > > > > In PAE page-tables at the top-level most bits we usually set > > with _KERNPG_TABLE are reserved, resulting in a #GP when > > they are loaded by the processor. > > Can you save me the trip to the SDM and remind me which bits actually > cause trouble here? Everything besides PRESENT, PCD, PWT and the actual physical address, so RW, and NX for example cause a #GP. Joerg -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org