Fix PROT_NONE page permissions when !CPU_USE_DOMAINS
Get series with b4
b4 am 1348179833.1132.36.camel@pasglopVersions newest first
- v1 Latest0 of 4 patches 0 repliesNew
Patches in v1 No applies recorded yet
None of the 4 patches the cover letter announces are in this archive.
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/4] Fix PROT_NONE page permissions when !CPU_USE_DOMAINS
On Thu, 2012-09-20 at 23:12 +0100, Russell King - ARM Linux wrote:
.../...
Quoted 7 lines
That'll make the
set_pteassembly more horrid, but I guess that's the price you pay for removing useful features which architecture folk don't like from CPUs... and it gets more horrid because you can't encode some of those bit patterns with the standard 8-bit and shift opcode representation.Really fun bug, but it needs more thought about how to solve it.
Yeah, fun isn't it ? :-)
The x86 way to solve it is simple, though ugly ... They use a SW bit called "PROTNONE". A PROT_NONE page gets that instead of the HW valid bit and pte_present() test if any of them is set.
Cheers,
Ben.