Re: [PATCH v3] powerpc: mm: support ARCH_MMAP_RND_BITS

2017-04-16 Thread Bhupesh SHARMA
On Thu, Apr 13, 2017 at 12:39 PM, Balbir Singh wrote: >>> >>> Yes. It was derived from TASK_SIZE : >>> >>> http://lxr.free-electrons.com/source/arch/powerpc/include/asm/processor.h#L105 >>> >> >> That is getting update to 128TB by default and conditionally to 512TB >> > > Since this is compile tim

Re: [PATCH v3] powerpc: mm: support ARCH_MMAP_RND_BITS

2017-04-13 Thread Bhupesh Sharma
On Thu, Apr 13, 2017 at 12:28 PM, Aneesh Kumar K.V wrote: > > > On Thursday 13 April 2017 12:22 PM, Bhupesh Sharma wrote: >> >> Hi Aneesh, >> >> On Thu, Apr 13, 2017 at 12:06 PM, Aneesh Kumar K.V >> wrote: >>> >>> Bhupesh Sharma writes: >>> powerpc arch_mmap_rnd() currently uses hard-coded

Re: [PATCH v3] powerpc: mm: support ARCH_MMAP_RND_BITS

2017-04-13 Thread Balbir Singh
>> >> Yes. It was derived from TASK_SIZE : >> >> http://lxr.free-electrons.com/source/arch/powerpc/include/asm/processor.h#L105 >> > > That is getting update to 128TB by default and conditionally to 512TB > Since this is compile time, we should probably keep the scope to 128TB for now and see if w

Re: [PATCH v3] powerpc: mm: support ARCH_MMAP_RND_BITS

2017-04-12 Thread Aneesh Kumar K.V
On Thursday 13 April 2017 12:22 PM, Bhupesh Sharma wrote: Hi Aneesh, On Thu, Apr 13, 2017 at 12:06 PM, Aneesh Kumar K.V wrote: Bhupesh Sharma writes: powerpc arch_mmap_rnd() currently uses hard-coded values - (23-PAGE_SHIFT) for 32-bit and (30-PAGE_SHIFT) for 64-bit, to generate the rando

Re: [PATCH v3] powerpc: mm: support ARCH_MMAP_RND_BITS

2017-04-12 Thread Bhupesh Sharma
Hi Aneesh, On Thu, Apr 13, 2017 at 12:06 PM, Aneesh Kumar K.V wrote: > Bhupesh Sharma writes: > >> powerpc arch_mmap_rnd() currently uses hard-coded values - (23-PAGE_SHIFT) >> for >> 32-bit and (30-PAGE_SHIFT) for 64-bit, to generate the random offset >> for the mmap base address for a ASLR EL

Re: [PATCH v3] powerpc: mm: support ARCH_MMAP_RND_BITS

2017-04-12 Thread Aneesh Kumar K.V
Bhupesh Sharma writes: > powerpc arch_mmap_rnd() currently uses hard-coded values - (23-PAGE_SHIFT) for > 32-bit and (30-PAGE_SHIFT) for 64-bit, to generate the random offset > for the mmap base address for a ASLR ELF. > > This patch makes sure that powerpc mmap arch_mmap_rnd() implementation > i

Re: [PATCH v3] powerpc: mm: support ARCH_MMAP_RND_BITS

2017-04-10 Thread Bhupesh Sharma
Hi Michael, On Wed, Mar 29, 2017 at 1:15 AM, Bhupesh Sharma wrote: > powerpc arch_mmap_rnd() currently uses hard-coded values - (23-PAGE_SHIFT) for > 32-bit and (30-PAGE_SHIFT) for 64-bit, to generate the random offset > for the mmap base address for a ASLR ELF. > > This patch makes sure that pow

[PATCH v3] powerpc: mm: support ARCH_MMAP_RND_BITS

2017-03-28 Thread Bhupesh Sharma
powerpc arch_mmap_rnd() currently uses hard-coded values - (23-PAGE_SHIFT) for 32-bit and (30-PAGE_SHIFT) for 64-bit, to generate the random offset for the mmap base address for a ASLR ELF. This patch makes sure that powerpc mmap arch_mmap_rnd() implementation is similar to other ARCHs (like x86,