From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756221AbaCLSkN (ORCPT ); Wed, 12 Mar 2014 14:40:13 -0400 Received: from mx1.redhat.com ([209.132.183.28]:31016 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755595AbaCLSkL (ORCPT ); Wed, 12 Mar 2014 14:40:11 -0400 Date: Wed, 12 Mar 2014 14:39:25 -0400 From: Dave Jones To: Andy Lutomirski Cc: "H. Peter Anvin" , Linus Torvalds , x86@kernel.org, Stefani Seibold , Andreas Brief , Martin Runge , Linux Kernel Mailing List , Andi Kleen Subject: Re: [PATCH v2 2/2] x86_32: Remove user bit from identity map PDE Message-ID: <20140312183925.GA19927@redhat.com> Mail-Followup-To: Dave Jones , Andy Lutomirski , "H. Peter Anvin" , Linus Torvalds , x86@kernel.org, Stefani Seibold , Andreas Brief , Martin Runge , Linux Kernel Mailing List , Andi Kleen References: <6a0db396c4b00ab6fee0d091039b549dd761e9b3.1394648864.git.luto@amacapital.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6a0db396c4b00ab6fee0d091039b549dd761e9b3.1394648864.git.luto@amacapital.net> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 12, 2014 at 11:29:45AM -0700, Andy Lutomirski wrote: > The only reason that the user bit was set was to support userspace > access to the compat vDSO in the fixmap. The compat vDSO is gone, > so the user bit can be removed. > > -/* > - * For PDE_IDENT_ATTR include USER bit. As the PDE and PTE protection > - * bits are combined, this will alow user to access the high address mapped > - * VDSO in the presence of CONFIG_COMPAT_VDSO > - */ > #define PTE_IDENT_ATTR 0x003 /* PRESENT+RW */ > -#define PDE_IDENT_ATTR 0x067 /* PRESENT+RW+USER+DIRTY+ACCESSED */ > +#define PDE_IDENT_ATTR 0x063 /* PRESENT+RW+USER+DIRTY+ACCESSED */ > #define PGD_IDENT_ATTR 0x001 /* PRESENT (no other attributes) */ update the comment too ? Dave