[PATCH 1/2] powerpc: mm: support ARCH_MMAP_RND_BITS

Bhupesh Sharma bhsharma at redhat.com
Fri Feb 3 05:14:17 AEDT 2017


HI Balbir,

On Thu, Feb 2, 2017 at 2:41 PM, Balbir Singh <bsingharora at gmail.com> wrote:
>> @@ -100,6 +132,8 @@ config PPC
>>       select HAVE_EFFICIENT_UNALIGNED_ACCESS if !(CPU_LITTLE_ENDIAN && POWER7_CPU)
>>       select HAVE_KPROBES
>>       select HAVE_ARCH_KGDB
>> +     select HAVE_ARCH_MMAP_RND_BITS
>> +     select HAVE_ARCH_MMAP_RND_COMPAT_BITS if COMPAT
>
> COMPAT is on for ppc64 by default, so we'll end up with COMPAT_BITS same
> as before all the time.


No, actually the 'ARCH_MMAP_RND_COMPAT_BITS'  values can be changed
after boot using the '/proc/sys/vm/mmap_rnd_compat_bits' tunable:

http://lxr.free-electrons.com/source/arch/Kconfig#L624

Regards,
Bhupesh


More information about the Linuxppc-dev mailing list