android_kernel_google_msm/arch/x86/mm
dcashman 4b659025f0 BACKPORT: FROMLIST: mm: ASLR: use get_random_long()
(cherry picked from commit https://lkml.org/lkml/2016/2/4/833)

Replace calls to get_random_int() followed by a cast to (unsigned long)
with calls to get_random_long().  Also address shifting bug which, in case
of x86 removed entropy mask for mmap_rnd_bits values > 31 bits.

Bug: 26963541
Signed-off-by: Daniel Cashman <dcashman@android.com>
Signed-off-by: Daniel Cashman <dcashman@google.com>
Change-Id: Iac34b63294ec120edcbf8760186667a84a5cf556
2017-12-27 22:50:17 +03:00
..
kmemcheck
amdtopology.c
dump_pagetables.c x86-64, espfix: Don't leak bits 31:16 of %esp returning to 16-bit stack 2014-08-07 12:00:10 -07:00
extable.c
fault.c vm: add VM_FAULT_SIGSEGV handling support 2015-04-14 17:33:57 +08:00
gup.c
highmem_32.c highmem: kill all __kmap_atomic() 2012-03-20 21:48:30 +08:00
hugetlbpage.c Merge remote-tracking branch 'stable/linux-3.4.y' into lineage-15.1 2017-12-27 17:13:15 +03:00
init.c Merge remote-tracking branch 'stable/linux-3.4.y' into lineage-15.1 2017-12-27 17:13:15 +03:00
init_32.c Disintegrate asm/system.h for X86 2012-03-28 18:11:12 +01:00
init_64.c x86/mm: Check if PUD is large when validating a kernel address 2013-02-17 10:49:26 -08:00
iomap_32.c
ioremap.c x86, ioremap: Speed up check for RAM pages 2014-07-17 15:39:50 -07:00
kmmio.c
Makefile
memtest.c
mmap.c BACKPORT: FROMLIST: mm: ASLR: use get_random_long() 2017-12-27 22:50:17 +03:00
mmio-mod.c
numa.c x86-32, mm: Remove reference to alloc_remap() 2013-02-28 06:58:58 -08:00
numa_32.c x86-32, mm: Rip out x86_32 NUMA remapping code 2013-02-28 06:58:58 -08:00
numa_64.c
numa_emulation.c Merge branch 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip 2012-03-22 09:44:50 -07:00
numa_internal.h x86-32, mm: Rip out x86_32 NUMA remapping code 2013-02-28 06:58:58 -08:00
pageattr-test.c
pageattr.c
pat.c
pat_internal.h
pat_rbtree.c
pf_in.c
pf_in.h
pgtable.c
pgtable_32.c Disintegrate asm/system.h for X86 2012-03-28 18:11:12 +01:00
physaddr.c
physaddr.h
setup_nx.c
srat.c x86/apic: Add separate apic_id_valid() functions for selected apic drivers 2012-03-23 13:28:43 +01:00
testmmiotrace.c
tlb.c