On Fri, 8 Feb 2008, Andi Kleen wrote:
quoted text > There is a big difference between NX and RO. NX absolutely has to be cleared
> or the kernel will fail while RO just can be set, but does not need to.
> And for a large page area not setting NX if there is a area below
> it that needs it is essential, while making it ro is optional again.
No, it's not optional. Making the PMD RO will write protect all 4k
PTEs below independent of their setting. So there is the same
restriction as we have with NX.
quoted text > This is needed for a followup patch who uses requred_static_prot() for large
> pages where it is inconvenient to check all pages.
quoted text > No behaviour change in this patch.
>
> [Lines > 80 characters are changed in followup patch]
ROTFL.
tglx
--
unsubscribe notice To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Messages in current thread:
Re: [PATCH] [1/5] CPA: Split static_protections into require... , Thomas Gleixner , (Sat Feb 9, 10:56 am)