[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [Xen-devel] how to disable the NX flag in a domU?


  • To: "Hans-Christian Armingeon" <mog.johnny@xxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxx
  • From: "Petersson, Mats" <Mats.Petersson@xxxxxxx>
  • Date: Wed, 28 Jun 2006 13:55:48 +0200
  • Delivery-date: Wed, 28 Jun 2006 04:56:30 -0700
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • Thread-index: AcaanMKRA9e0MnTZTkCmFSAXrwbRrQADKVeQ
  • Thread-topic: [Xen-devel] how to disable the NX flag in a domU?

Pass "noexec=off" to the kernel, and it won't set the NX bit in it's
page-table entries, and I presume Xen will just use the same bits as the
guest asks for... One would think, at least.. [I haven't tried this, I
just scanned the kernel source code for the boot-line argument, as I
knew there is some way to enable/disable it...]

Care to divulge what the app is so I can add it to the list of apps that
I'm not going to use? ;-)

--
Mats

> -----Original Message-----
> From: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx 
> [mailto:xen-devel-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of 
> Hans-Christian Armingeon
> Sent: 28 June 2006 10:16
> To: xen-devel@xxxxxxxxxxxxxxxxxxx
> Subject: [Xen-devel] how to disable the NX flag in a domU?
> 
> Hi,
> 
> I am having problems with an unclean written closed source 
> application, which segfaults by time, because it has 
> executable code on the stack.
> 
> Is it possible, to disable the NX bit on modern processors 
> for a domU? I know, this is an unclean solution - but it 
> would be a quick fix.
> 
> Many thanks in advance,
> 
> Johnny
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-devel
> 
> 



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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.