Re: [PATCH v3 1/4] mm: mmap: Add new /proc tunable for mmap_base ASLR.

2015-11-25 Thread Daniel Cashman
On 11/24/2015 08:40 PM, Michael Ellerman wrote: > On Wed, 2015-11-18 at 15:20 -0800, Daniel Cashman wrote: > >> From: dcashman >> >> ASLR currently only uses 8 bits to generate the random offset for the >> mmap base address on 32 bit architectures. This value was chosen to >> prevent a poorly

Re: [PATCH v3 1/4] mm: mmap: Add new /proc tunable for mmap_base ASLR.

2015-11-25 Thread Daniel Cashman
On 11/24/2015 04:47 PM, Kees Cook wrote: > On Tue, Nov 24, 2015 at 4:40 PM, Andrew Morton > wrote: >> On Wed, 18 Nov 2015 15:20:05 -0800 Daniel Cashman >> wrote: >> >>> --- a/kernel/sysctl.c >>> +++ b/kernel/sysctl.c >>> @@ -1568,6 +1568,28 @@ static struct ctl_table vm_table[] = { >>>

Re: [PATCH v3 1/4] mm: mmap: Add new /proc tunable for mmap_base ASLR.

2015-11-25 Thread Daniel Cashman
On 11/24/2015 04:47 PM, Kees Cook wrote: > On Tue, Nov 24, 2015 at 4:40 PM, Andrew Morton > wrote: >> On Wed, 18 Nov 2015 15:20:05 -0800 Daniel Cashman >> wrote: >> >>> --- a/kernel/sysctl.c >>> +++ b/kernel/sysctl.c >>> @@ -1568,6 +1568,28 @@

Re: [PATCH v3 1/4] mm: mmap: Add new /proc tunable for mmap_base ASLR.

2015-11-25 Thread Daniel Cashman
On 11/24/2015 08:40 PM, Michael Ellerman wrote: > On Wed, 2015-11-18 at 15:20 -0800, Daniel Cashman wrote: > >> From: dcashman >> >> ASLR currently only uses 8 bits to generate the random offset for the >> mmap base address on 32 bit architectures. This value was chosen to

Re: [PATCH v3 1/4] mm: mmap: Add new /proc tunable for mmap_base ASLR.

2015-11-24 Thread Michael Ellerman
On Wed, 2015-11-18 at 15:20 -0800, Daniel Cashman wrote: > From: dcashman > > ASLR currently only uses 8 bits to generate the random offset for the > mmap base address on 32 bit architectures. This value was chosen to > prevent a poorly chosen value from dividing the address space in such > a

Re: [PATCH v3 1/4] mm: mmap: Add new /proc tunable for mmap_base ASLR.

2015-11-24 Thread Kees Cook
On Tue, Nov 24, 2015 at 4:40 PM, Andrew Morton wrote: > On Wed, 18 Nov 2015 15:20:05 -0800 Daniel Cashman > wrote: > >> --- a/kernel/sysctl.c >> +++ b/kernel/sysctl.c >> @@ -1568,6 +1568,28 @@ static struct ctl_table vm_table[] = { >> .mode = 0644, >>

Re: [PATCH v3 1/4] mm: mmap: Add new /proc tunable for mmap_base ASLR.

2015-11-24 Thread Andrew Morton
On Wed, 18 Nov 2015 15:20:05 -0800 Daniel Cashman wrote: > --- a/kernel/sysctl.c > +++ b/kernel/sysctl.c > @@ -1568,6 +1568,28 @@ static struct ctl_table vm_table[] = { > .mode = 0644, > .proc_handler = proc_doulongvec_minmax, > }, > +#ifdef

Re: [PATCH v3 1/4] mm: mmap: Add new /proc tunable for mmap_base ASLR.

2015-11-24 Thread Andrew Morton
On Wed, 18 Nov 2015 15:20:05 -0800 Daniel Cashman wrote: > --- a/kernel/sysctl.c > +++ b/kernel/sysctl.c > @@ -1568,6 +1568,28 @@ static struct ctl_table vm_table[] = { > .mode = 0644, > .proc_handler = proc_doulongvec_minmax, >

Re: [PATCH v3 1/4] mm: mmap: Add new /proc tunable for mmap_base ASLR.

2015-11-24 Thread Kees Cook
On Tue, Nov 24, 2015 at 4:40 PM, Andrew Morton wrote: > On Wed, 18 Nov 2015 15:20:05 -0800 Daniel Cashman > wrote: > >> --- a/kernel/sysctl.c >> +++ b/kernel/sysctl.c >> @@ -1568,6 +1568,28 @@ static struct ctl_table vm_table[] = { >>

Re: [PATCH v3 1/4] mm: mmap: Add new /proc tunable for mmap_base ASLR.

2015-11-24 Thread Michael Ellerman
On Wed, 2015-11-18 at 15:20 -0800, Daniel Cashman wrote: > From: dcashman > > ASLR currently only uses 8 bits to generate the random offset for the > mmap base address on 32 bit architectures. This value was chosen to > prevent a poorly chosen value from dividing the

Re: [PATCH v3 1/4] mm: mmap: Add new /proc tunable for mmap_base ASLR.

2015-11-18 Thread Daniel Cashman
On 11/18/2015 03:20 PM, Daniel Cashman wrote: > == > > +mmap_rnd_bits: > + > +This value can be used to select the number of bits to use to > +determine the random offset to the base address of vma regions > +resulting from mmap

Re: [PATCH v3 1/4] mm: mmap: Add new /proc tunable for mmap_base ASLR.

2015-11-18 Thread Daniel Cashman
On 11/18/2015 03:20 PM, Daniel Cashman wrote: > == > > +mmap_rnd_bits: > + > +This value can be used to select the number of bits to use to > +determine the random offset to the base address of vma regions > +resulting from mmap