Re: [PATCH 3/4] kaslr setup_data handling

2014-09-09 Thread Kees Cook
On Tue, Sep 9, 2014 at 12:49 PM, H. Peter Anvin wrote: > setup_data is used by a variety of bootloaders. The first user was large > memory machines with more than 128 memory areas. > > On September 9, 2014 12:45:00 PM PDT, Vivek Goyal wrote: >>On Fri, Sep 05, 2014 at 10:32:56AM -0700, Kees

Re: [PATCH 3/4] kaslr setup_data handling

2014-09-09 Thread H. Peter Anvin
setup_data is used by a variety of bootloaders. The first user was large memory machines with more than 128 memory areas. On September 9, 2014 12:45:00 PM PDT, Vivek Goyal wrote: >On Fri, Sep 05, 2014 at 10:32:56AM -0700, Kees Cook wrote: >> On Fri, Sep 05, 2014 at 10:08:16PM +0800, Baoquan He

Re: [PATCH 3/4] kaslr setup_data handling

2014-09-09 Thread Vivek Goyal
On Fri, Sep 05, 2014 at 10:32:56AM -0700, Kees Cook wrote: > On Fri, Sep 05, 2014 at 10:08:16PM +0800, Baoquan He wrote: > > From: Dave Young > > > > X86 will pass setup_data region while necessary, these regions could be > > overwitten by kernel due to kaslr. > > > > Thus iterate and add setup

Re: [PATCH 3/4] kaslr setup_data handling

2014-09-09 Thread Vivek Goyal
On Fri, Sep 05, 2014 at 10:32:56AM -0700, Kees Cook wrote: On Fri, Sep 05, 2014 at 10:08:16PM +0800, Baoquan He wrote: From: Dave Young dyo...@redhat.com X86 will pass setup_data region while necessary, these regions could be overwitten by kernel due to kaslr. Thus iterate and add

Re: [PATCH 3/4] kaslr setup_data handling

2014-09-09 Thread H. Peter Anvin
setup_data is used by a variety of bootloaders. The first user was large memory machines with more than 128 memory areas. On September 9, 2014 12:45:00 PM PDT, Vivek Goyal vgo...@redhat.com wrote: On Fri, Sep 05, 2014 at 10:32:56AM -0700, Kees Cook wrote: On Fri, Sep 05, 2014 at 10:08:16PM

Re: [PATCH 3/4] kaslr setup_data handling

2014-09-09 Thread Kees Cook
On Tue, Sep 9, 2014 at 12:49 PM, H. Peter Anvin h...@zytor.com wrote: setup_data is used by a variety of bootloaders. The first user was large memory machines with more than 128 memory areas. On September 9, 2014 12:45:00 PM PDT, Vivek Goyal vgo...@redhat.com wrote: On Fri, Sep 05, 2014 at

Re: [PATCH 3/4] kaslr setup_data handling

2014-09-05 Thread Baoquan He
On 09/05/14 at 10:32am, Kees Cook wrote: > On Fri, Sep 05, 2014 at 10:08:16PM +0800, Baoquan He wrote: > > From: Dave Young > > > > 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

Re: [PATCH 3/4] kaslr setup_data handling

2014-09-05 Thread Kees Cook
On Fri, Sep 05, 2014 at 10:08:16PM +0800, Baoquan He wrote: > From: Dave Young > > 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. > Up to now there isn't a official

[PATCH 3/4] kaslr setup_data handling

2014-09-05 Thread Baoquan He
From: Dave Young 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. Up to now there isn't a official data to state the maximal entries setup data could use. So just set max

[PATCH 3/4] kaslr setup_data handling

2014-09-05 Thread Baoquan He
From: Dave Young dyo...@redhat.com 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. Up to now there isn't a official data to state the maximal entries setup data could use.

Re: [PATCH 3/4] kaslr setup_data handling

2014-09-05 Thread Kees Cook
On Fri, Sep 05, 2014 at 10:08:16PM +0800, Baoquan He wrote: From: Dave Young dyo...@redhat.com 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. Up to now there isn't

Re: [PATCH 3/4] kaslr setup_data handling

2014-09-05 Thread Baoquan He
On 09/05/14 at 10:32am, Kees Cook wrote: On Fri, Sep 05, 2014 at 10:08:16PM +0800, Baoquan He wrote: From: Dave Young dyo...@redhat.com 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