Re: [BUGFIX] x86_64: NX bit handling in change_page_attr

2007-09-12 Thread Huang, Ying
On Wed, 2007-09-12 at 15:35 +0200, Andi Kleen wrote: > > > Index: linux-2.6.23-rc2-mm2/arch/x86_64/mm/pageattr.c > > > === > > > --- linux-2.6.23-rc2-mm2.orig/arch/x86_64/mm/pageattr.c 2007-08-17 > > > 12:50:25.0 +0800 +++ >

Re: [BUGFIX] x86_64: NX bit handling in change_page_attr

2007-09-12 Thread Andi Kleen
> > Index: linux-2.6.23-rc2-mm2/arch/x86_64/mm/pageattr.c > > === > > --- linux-2.6.23-rc2-mm2.orig/arch/x86_64/mm/pageattr.c 2007-08-17 > > 12:50:25.0 +0800 +++ > > linux-2.6.23-rc2-mm2/arch/x86_64/mm/pageattr.c

Re: [BUGFIX] x86_64: NX bit handling in change_page_attr

2007-09-12 Thread Huang, Ying
On Tue, 2007-09-11 at 20:23 -0700, Andrew Morton wrote: > On Fri, 17 Aug 2007 13:28:38 +0800 "Huang, Ying" <[EMAIL PROTECTED]> wrote: > > > This patch fixes a bug of change_page_attr/change_page_attr_addr on > > Intel x86_64 CPU. After changing page attribute to be executable with > > these

Re: [BUGFIX] x86_64: NX bit handling in change_page_attr

2007-09-12 Thread Huang, Ying
On Wed, 2007-09-12 at 15:35 +0200, Andi Kleen wrote: Index: linux-2.6.23-rc2-mm2/arch/x86_64/mm/pageattr.c === --- linux-2.6.23-rc2-mm2.orig/arch/x86_64/mm/pageattr.c 2007-08-17 12:50:25.0 +0800 +++

Re: [BUGFIX] x86_64: NX bit handling in change_page_attr

2007-09-12 Thread Huang, Ying
On Tue, 2007-09-11 at 20:23 -0700, Andrew Morton wrote: On Fri, 17 Aug 2007 13:28:38 +0800 Huang, Ying [EMAIL PROTECTED] wrote: This patch fixes a bug of change_page_attr/change_page_attr_addr on Intel x86_64 CPU. After changing page attribute to be executable with these functions, the

Re: [BUGFIX] x86_64: NX bit handling in change_page_attr

2007-09-12 Thread Andi Kleen
Index: linux-2.6.23-rc2-mm2/arch/x86_64/mm/pageattr.c === --- linux-2.6.23-rc2-mm2.orig/arch/x86_64/mm/pageattr.c 2007-08-17 12:50:25.0 +0800 +++ linux-2.6.23-rc2-mm2/arch/x86_64/mm/pageattr.c 2007-08-17

Re: [BUGFIX] x86_64: NX bit handling in change_page_attr

2007-09-11 Thread Andrew Morton
On Fri, 17 Aug 2007 13:28:38 +0800 "Huang, Ying" <[EMAIL PROTECTED]> wrote: > This patch fixes a bug of change_page_attr/change_page_attr_addr on > Intel x86_64 CPU. After changing page attribute to be executable with > these functions, the page remains un-executable on Intel x86_64 > CPU.

Re: [BUGFIX] x86_64: NX bit handling in change_page_attr

2007-09-11 Thread Andrew Morton
On Fri, 17 Aug 2007 13:28:38 +0800 Huang, Ying [EMAIL PROTECTED] wrote: This patch fixes a bug of change_page_attr/change_page_attr_addr on Intel x86_64 CPU. After changing page attribute to be executable with these functions, the page remains un-executable on Intel x86_64 CPU. Because on

[BUGFIX] x86_64: NX bit handling in change_page_attr

2007-08-16 Thread Huang, Ying
This patch fixes a bug of change_page_attr/change_page_attr_addr on Intel x86_64 CPU. After changing page attribute to be executable with these functions, the page remains un-executable on Intel x86_64 CPU. Because on Intel x86_64 CPU, only if the "NX" bits of all four level page tables are

[BUGFIX] x86_64: NX bit handling in change_page_attr

2007-08-16 Thread Huang, Ying
This patch fixes a bug of change_page_attr/change_page_attr_addr on Intel x86_64 CPU. After changing page attribute to be executable with these functions, the page remains un-executable on Intel x86_64 CPU. Because on Intel x86_64 CPU, only if the NX bits of all four level page tables are cleared,