]> git.baikalelectronics.ru Git - kernel.git/commit
x86, nx: Don't force pages RW when setting NX bits
authorMatthieu CASTET <castet.matthieu@free.fr>
Thu, 20 Jan 2011 20:11:45 +0000 (21:11 +0100)
committerH. Peter Anvin <hpa@linux.intel.com>
Thu, 3 Feb 2011 00:02:36 +0000 (16:02 -0800)
commitcf4da55367879fc8613679d9acc7acbcaee6254f
tree3fa4d535cff0faad53d4b08aa252a9d522cf6ef3
parentb91a3d2fc5ef95c6ea5d0efd4ced5dc9c2e99d37
x86, nx: Don't force pages RW when setting NX bits

Xen want page table pages read only.

But the initial page table (from head_*.S) live in .data or .bss.

That was broken by a3a57637103777cc80c6016a45b018d1d45c8d2e.  There is
absolutely no reason to force these pages RW after they have already
been marked RO.

Signed-off-by: Matthieu CASTET <castet.matthieu@free.fr>
Tested-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
arch/x86/mm/pageattr.c