lkml.org 
[lkml]   [2012]   [Dec]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC] stack and heap are executable on x86_64
On 12/21/2012 09:28 AM, Yinghai Lu wrote:
>
> which line?
>
> 0xffffffff83000000-0xffffffff83c00000 12M RW PSE
> GLB x pmd
>
> my kernel INIT_SIZE is 27M, and it includes everything that i needed
> in the kernel.
>

We should NEVER have RW + x at the same time (at least when the kernel
is compiled properly.) Looks like your patch does get rid of a bunch of
stuff in the low mapping -- although the low mapping really should never
be +x at all -- but there are still problems with the high mapping.

Oh yes, and then there is EFI. If that means we need to keep a
completely separate page tables for EFI than so be it...

-hpa



\
 
 \ /
  Last update: 2012-12-21 19:21    [W:0.738 / U:0.044 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site