Re: [PATCH v2] x86: kaslr to avoid setup_data regions

2014-05-14 Thread Dave Young
On 05/14/14 at 04:23pm, Dave Young wrote: > On 05/14/14 at 10:13am, Mateusz Guzik wrote: > > On Wed, May 14, 2014 at 04:02:01PM +0800, Dave Young wrote: > > > X86 will pass setup_data region while necessary, these regions could be > > > overwitten by kernel due to kaslr. > > > > > > Thus iterate a

Re: [PATCH v2] x86: kaslr to avoid setup_data regions

2014-05-14 Thread Dave Young
On 05/14/14 at 10:13am, Mateusz Guzik wrote: > On Wed, May 14, 2014 at 04:02:01PM +0800, Dave Young wrote: > > X86 will pass setup_data region while necessary, these regions could be > > overwitten by kernel due to kaslr. > > > > Thus iterate and add setup regions to mem_avoid[] in this patch. > >

Re: [PATCH v2] x86: kaslr to avoid setup_data regions

2014-05-14 Thread Mateusz Guzik
On Wed, May 14, 2014 at 04:02:01PM +0800, Dave Young wrote: > X86 will pass setup_data region while necessary, these regions could be > overwitten by kernel due to kaslr. > > Thus iterate and add setup regions to mem_avoid[] in this patch. > Set max mem avoid entries 32, hopefully it will be enoug