Re: [PATCH] [1/5] CPA: Split static_protections into required_static_protand advised_static_prot
From: Thomas Gleixner
Date: Sat Feb 09 2008 - 09:56:27 EST
On Fri, 8 Feb 2008, Andi Kleen wrote:
> 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.
> This is needed for a followup patch who uses requred_static_prot() for large
> pages where it is inconvenient to check all pages.
> No behaviour change in this patch.
>
> [Lines > 80 characters are changed in followup patch]
ROTFL.
tglx
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/