lkml.org 
[lkml]   [2015]   [Oct]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH 26/26] x86, pkeys: Documentation
From
Date
On 10/03/2015 01:17 AM, Ingo Molnar wrote:
> Right now the native x86 PTE format allows two protection related bits for
> user-space pages:
>
> _PAGE_BIT_RW: if 0 the page is read-only, if 1 then it's read-write
> _PAGE_BIT_NX: if 0 the page is executable, if 1 then it's not executable
>
> As discussed previously, pkeys allows 'true execute only (--x)' mappings.
>
> Another possibility would be 'true write-only (-w-)' mappings.

How would those work?

Protection Keys has a Write-Disable and an Access-Disable bit. But,
Access-Disable denies _all_ data access to the region. There's no way
to allow only writes.

Or am I missing something?


\
 
 \ /
  Last update: 2015-10-07 22:41    [W:0.178 / U:1.424 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site