Re: [PATCH v3 2/3] KASLR: Handle memory limit specified by memmap and mem option

2017-04-29 Thread Baoquan He
On 04/28/17 at 12:39pm, Kees Cook wrote: > On Wed, Apr 26, 2017 at 3:16 AM, Baoquan He wrote: > > Option mem= will limit the max address a system can use and any memory > > region above the limit will be removed. > > > > Furthermore, memmap=nn[KMG] which has no offset specified

Re: [PATCH v3 2/3] KASLR: Handle memory limit specified by memmap and mem option

2017-04-29 Thread Baoquan He
On 04/28/17 at 12:39pm, Kees Cook wrote: > On Wed, Apr 26, 2017 at 3:16 AM, Baoquan He wrote: > > Option mem= will limit the max address a system can use and any memory > > region above the limit will be removed. > > > > Furthermore, memmap=nn[KMG] which has no offset specified has the same > >

Re: [PATCH v3 2/3] KASLR: Handle memory limit specified by memmap and mem option

2017-04-28 Thread Kees Cook
On Wed, Apr 26, 2017 at 3:16 AM, Baoquan He wrote: > Option mem= will limit the max address a system can use and any memory > region above the limit will be removed. > > Furthermore, memmap=nn[KMG] which has no offset specified has the same > behaviour as mem=. > > KASLR needs to

Re: [PATCH v3 2/3] KASLR: Handle memory limit specified by memmap and mem option

2017-04-28 Thread Kees Cook
On Wed, Apr 26, 2017 at 3:16 AM, Baoquan He wrote: > Option mem= will limit the max address a system can use and any memory > region above the limit will be removed. > > Furthermore, memmap=nn[KMG] which has no offset specified has the same > behaviour as mem=. > > KASLR needs to consider this

[PATCH v3 2/3] KASLR: Handle memory limit specified by memmap and mem option

2017-04-26 Thread Baoquan He
Option mem= will limit the max address a system can use and any memory region above the limit will be removed. Furthermore, memmap=nn[KMG] which has no offset specified has the same behaviour as mem=. KASLR needs to consider this when choosing the random position for decompressing the kernel.

[PATCH v3 2/3] KASLR: Handle memory limit specified by memmap and mem option

2017-04-26 Thread Baoquan He
Option mem= will limit the max address a system can use and any memory region above the limit will be removed. Furthermore, memmap=nn[KMG] which has no offset specified has the same behaviour as mem=. KASLR needs to consider this when choosing the random position for decompressing the kernel.