WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] Re: [GIT PULL] xen: Check NX state before setting up GDT map

To: Jeremy Fitzhardinge <jeremy@xxxxxxxx>
Subject: [Xen-devel] Re: [GIT PULL] xen: Check NX state before setting up GDT mapping
From: Ingo Molnar <mingo@xxxxxxx>
Date: Wed, 23 Sep 2009 14:35:27 +0200
Cc: Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>, Linux Kernel Mailing List <linux-kernel@xxxxxxxxxxxxxxx>, Ingo Molnar <mingo@xxxxxxxxxx>, the arch/x86 maintainers <x86@xxxxxxxxxx>, Stable Kernel <stable@xxxxxxxxxx>
Delivery-date: Wed, 23 Sep 2009 05:36:08 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4AB7EC1D.5010102@xxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <4AB7EC1D.5010102@xxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.18 (2008-05-17)
* Jeremy Fitzhardinge <jeremy@xxxxxxxx> wrote:

> Hi Ingo,
> 
> This is a little followup fix to the previous Xen stack-protector
> patches to deal with the case of a 64-bit processor without NX support
> (either old Intel or disabled in BIOS).  Before creating the mapping for
> the GDT we need to make sure that NX is actually supported or the
> processor will fault on us.
> 
> This ends up making mm/init.o non-stack-protected.  Given that this file
> has some fairly complex functions with local arrays, I've made an
> additional change to move the NX setup into its own file to limit the
> non-stack-protected code.  I added it as a later delta so that the pure
> bugfix can be applied to stable, and the cleanup can go on top into
> mainline.
> 
> Thanks,
>     J
> 
> The following changes since commit 79b520e87e1214cfa107bdc8528b5d6c055a8b82:
>   Linus Torvalds (1):
>         Merge branch 'for-linus' of git://oss.sgi.com/xfs/xfs
> 
> are available in the git repository at:
> 
>   git://git.kernel.org/pub/scm/linux/kernel/git/jeremy/xen.git bugfix
> 
> Jeremy Fitzhardinge (2):
>       xen: check EFER for NX before setting up GDT mapping
>       x86: split NX setup into separate file to limit unstack-protected code
> 
>  arch/x86/include/asm/pgtable_types.h |    1 +
>  arch/x86/mm/Makefile                 |    3 +-
>  arch/x86/mm/init.c                   |   63 -------------------------------
>  arch/x86/mm/setup_nx.c               |   69 
> ++++++++++++++++++++++++++++++++++
>  arch/x86/xen/enlighten.c             |   10 ++--
>  5 files changed, 77 insertions(+), 69 deletions(-)
>  create mode 100644 arch/x86/mm/setup_nx.c

Pulled, thanks Jeremy!

        Ingo

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel