android_kernel_google_msm/arch/arm/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
..
abort-ev4.S
abort-ev4t.S
abort-ev5t.S
abort-ev5tj.S
abort-ev6.S ARM: 8128/1: abort: don't clear the exclusive monitors 2014-09-25 11:49:16 +08:00
abort-ev7.S ARM: 8128/1: abort: don't clear the exclusive monitors 2014-09-25 11:49:16 +08:00
abort-lv4t.S
abort-macro.S
abort-nommu.S
alignment.c Merge remote-tracking branch 'stable/linux-3.4.y' into lineage-15.1 2017-12-27 17:13:15 +03:00
cache-fa.S
cache-feroceon-l2.c ARM: 7696/1: Fix kexec by setting outer_cache.inv_all for Feroceon 2013-04-25 21:19:55 -07:00
cache-l2x0.c Update copyright to The Linux Foundation 2013-03-15 17:07:39 -07:00
cache-tauros2.c
cache-v3.S
cache-v4.S ARM: mm: cache-v4: Use the new processor struct macros 2011-07-07 15:31:06 +01:00
cache-v4wb.S
cache-v4wt.S
cache-v6.S
cache-v7.S ARM: 7541/1: Add ARM ERRATA 775420 workaround 2012-10-21 09:27:58 -07:00
cache-xsc3l2.c
context.c msm: rtb: Log the context id in the rtb 2013-02-20 02:48:51 -08:00
copypage-fa.c
copypage-feroceon.c
copypage-v3.c
copypage-v4mc.c
copypage-v4wb.c
copypage-v4wt.c
copypage-v6.c
copypage-xsc3.c
copypage-xscale.c
dma-mapping.c Merge remote-tracking branch 'stable/linux-3.4.y' into lineage-15.1 2017-12-27 17:13:15 +03:00
extable.c
fault-armv.c
fault.c tracing: ftrace events for user faults and undefined instructions 2013-03-15 17:05:57 -07:00
fault.h
flush.c ARM: 7755/1: handle user space mapped pages in flush_kernel_dcache_page 2013-07-03 10:59:00 -07:00
fsr-2level.c [ARM] qsd8k: print out more registers on an imprecise external abort. 2013-02-20 02:48:54 -08:00
fsr-3level.c
highmem.c
idmap.c ARM: 8115/1: LPAE: reduce damage caused by idmap to virtual memory layout 2014-08-07 12:00:10 -07:00
init.c Merge remote-tracking branch 'stable/linux-3.4.y' into lineage-15.1 2017-12-27 17:13:15 +03:00
iomap.c
ioremap.c arm: mm: ioremap.c Add the function ioremap_pages 2013-02-20 02:48:49 -08:00
Kconfig arm: mm: add CONFIG_STRICT_MEMORY_RWX 2013-02-20 02:49:04 -08:00
Makefile ARM: allow the kernel text section to be made read-only 2013-02-20 02:49:03 -08:00
mm.h Merge remote-tracking branch 'stable/linux-3.4.y' into lineage-15.1 2017-12-27 17:13:15 +03:00
mmap.c BACKPORT: FROMLIST: mm: ASLR: use get_random_long() 2017-12-27 22:50:17 +03:00
mmu.c Merge remote-tracking branch 'stable/linux-3.4.y' into lineage-15.1 2017-12-27 17:13:15 +03:00
nommu.c ARM: 7772/1: Fix missing flush_kernel_dcache_page() for noMMU 2013-07-03 10:59:00 -07:00
pabort-legacy.S
pabort-v6.S
pabort-v7.S
pgd.c
proc-arm6_7.S
proc-arm7tdmi.S
proc-arm9tdmi.S
proc-arm720.S
proc-arm740.S
proc-arm920.S ARM: Do 15e0d9e37c (ARM: pm: let platforms select cpu_suspend support) properly 2013-04-25 21:19:54 -07:00
proc-arm922.S
proc-arm925.S
proc-arm926.S ARM: Do 15e0d9e37c (ARM: pm: let platforms select cpu_suspend support) properly 2013-04-25 21:19:54 -07:00
proc-arm940.S
proc-arm946.S
proc-arm1020.S
proc-arm1020e.S
proc-arm1022.S
proc-arm1026.S
proc-fa526.S
proc-feroceon.S
proc-macros.S ARM: mm: update CONTEXTIDR register to contain PID of current process 2013-02-20 02:48:51 -08:00
proc-mohawk.S
proc-sa110.S
proc-sa1100.S ARM: Do 15e0d9e37c (ARM: pm: let platforms select cpu_suspend support) properly 2013-04-25 21:19:54 -07:00
proc-syms.c
proc-v6.S Merge remote-tracking branch 'stable/linux-3.4.y' into lineage-15.1 2017-12-27 17:13:15 +03:00
proc-v7-2level.S ARM: Change CP15 regs to bump memory throughput on ScorpionMP 2013-02-20 02:50:20 -08:00
proc-v7-3level.S
proc-v7.S Merge remote-tracking branch 'stable/linux-3.4.y' into lineage-15.1 2017-12-27 17:13:15 +03:00
proc-xsc3.S ARM: Do 15e0d9e37c (ARM: pm: let platforms select cpu_suspend support) properly 2013-04-25 21:19:54 -07:00
proc-xscale.S ARM: 8216/1: xscale: correct auxiliary register in suspend/resume 2015-04-14 17:33:37 +08:00
rodata.c ARM: allow the kernel text section to be made read-only 2013-02-20 02:49:03 -08:00
tlb-fa.S
tlb-v3.S
tlb-v4.S
tlb-v4wb.S
tlb-v4wbi.S
tlb-v6.S
tlb-v7.S Merge remote-tracking branch 'stable/linux-3.4.y' into lineage-15.1 2017-12-27 17:13:15 +03:00
vmregion.c arm: mm: vmregion.c print more information if allocation fails 2013-02-20 02:44:06 -08:00
vmregion.h ARM: dma-mapping: add support for IOMMU mapper 2013-03-07 15:23:19 -08:00