kernel-hacking-2024-linux-s.../arch/powerpc/kernel
Daniel Cashman 5ef11c35ce mm: ASLR: use get_random_long()
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.

Signed-off-by: Daniel Cashman <dcashman@android.com>
Acked-by: Kees Cook <keescook@chromium.org>
Cc: "Theodore Ts'o" <tytso@mit.edu>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: David S. Miller <davem@davemloft.net>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Nick Kralevich <nnk@google.com>
Cc: Jeff Vander Stoep <jeffv@google.com>
Cc: Mark Salyzyn <salyzyn@android.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2016-02-27 10:28:52 -08:00
..
vdso32 powerpc: enable UBSAN support 2016-01-20 17:09:18 -08:00
vdso64 powerpc: enable UBSAN support 2016-01-20 17:09:18 -08:00
.gitignore
align.c powerpc: Create disable_kernel_{fp,altivec,vsx,spe}() 2015-12-01 13:52:25 +11:00
asm-offsets.c powerpc: Copy only required pieces of the mm_context_t to the paca 2015-12-27 19:12:14 +11:00
audit.c
btext.c
cacheinfo.c
cacheinfo.h
compat_audit.c
cpu_setup_6xx.S
cpu_setup_44x.S
cpu_setup_fsl_booke.S
cpu_setup_pa6t.S
cpu_setup_power.S
cpu_setup_ppc970.S
cputable.c
crash.c powerpc/book3e/kdump: Enable crash_kexec_wait_realmode 2015-10-27 18:13:27 -05:00
crash_dump.c
dbell.c
dma-iommu.c
dma-swiotlb.c
dma.c powerpc/dma: dma_set_coherent_mask() should not be GPL only 2015-10-28 14:20:50 +09:00
eeh.c powerpc/eeh: More relaxed condition for enabled IO path 2015-10-21 20:41:43 +11:00
eeh_cache.c
eeh_dev.c
eeh_driver.c powerpc fixes for 4.5 #3 2016-02-25 19:41:53 -08:00
eeh_event.c
eeh_pe.c powerpc/eeh: Fix stale cached primary bus 2016-02-15 21:10:04 +11:00
eeh_sysfs.c
entry_32.S
entry_64.S powerpc/kernel: Open code SET_DEFAULT_THREAD_PPR 2015-12-17 22:40:57 +11:00
epapr_hcalls.S
epapr_paravirt.c
exceptions-64e.S powerpc/book3e: support CONFIG_RELOCATABLE 2015-10-27 18:13:27 -05:00
exceptions-64s.S powerpc/kernel: Combine vec/loc for STD_EXCEPTION_PSERIES 2015-12-17 22:40:58 +11:00
fadump.c powerpc/fadump: rename cpu_online_mask member of struct fadump_crash_info_header 2016-01-20 17:09:18 -08:00
firmware.c
fpu.S powerpc: Remove fp_enable() and vec_enable(), use msr_check_and_{set, clear}() 2015-12-01 13:52:26 +11:00
fsl_booke_entry_mapping.S
ftrace.c
head_8xx.S
head_32.S
head_40x.S
head_44x.S
head_64.S powerpc/book3e: support CONFIG_RELOCATABLE 2015-10-27 18:13:27 -05:00
head_booke.h
head_fsl_booke.S powerpc: Move part of giveup_fpu,altivec,spe into c 2015-12-01 13:52:25 +11:00
hw_breakpoint.c
ibmebus.c
idle.c
idle_6xx.S
idle_book3e.S
idle_e500.S
idle_power4.S
idle_power7.S powerpc: Remove UP only lazy floating point and vector optimisations 2015-12-01 13:52:24 +11:00
io-workarounds.c powerpc/mm: Differentiate between hugetlb and THP during page walk 2015-10-12 15:30:09 +11:00
io.c
iomap.c
iommu.c
irq.c
isa-bridge.c
jump_label.c
kgdb.c
kprobes.c
kvm.c
kvm_emul.S
l2cr_6xx.S
legacy_serial.c
machine_kexec.c
machine_kexec_32.c
machine_kexec_64.c powerpc/book3e-64: Enable kexec 2015-10-27 18:13:30 -05:00
Makefile powerpc: enable UBSAN support 2016-01-20 17:09:18 -08:00
mce.c
mce_power.c
misc.S
misc_32.S powerpc/476fpe: Add support for kexec 2015-12-17 22:41:00 +11:00
misc_64.S powerpc: Simplify module TOC handling 2016-01-21 14:10:56 +11:00
module.c
module_32.c module: use a structure to encapsulate layout. 2015-12-04 22:46:25 +01:00
module_64.c powerpc: Fix dedotify for binutils >= 2.26 2016-02-08 22:01:46 +11:00
msi.c
nvram_64.c don't open-code generic_file_llseek_size() 2015-12-09 13:00:45 -05:00
of_platform.c
paca.c powerpc/book3e-64: Don't limit paca to 256 MiB 2015-10-27 18:13:28 -05:00
pci-common.c powerpc/pci: export pcibios_free_controller() 2015-10-15 20:31:57 +11:00
pci-hotplug.c
pci_32.c
pci_64.c
pci_dn.c
pci_of_scan.c PCI/MSI: Initialize MSI capability for all architectures 2015-11-24 17:45:18 -06:00
pmc.c
ppc32.h
ppc_ksyms.c powerpc: Move part of giveup_fpu,altivec,spe into c 2015-12-01 13:52:25 +11:00
ppc_ksyms_32.c
ppc_save_regs.S
proc_powerpc.c
process.c mm: ASLR: use get_random_long() 2016-02-27 10:28:52 -08:00
prom.c powerpc/prom: Use of_get_next_parent() in of_get_ibm_chip_id() 2015-10-28 12:08:32 +09:00
prom_init.c powerpc: Add missing calls to va_end() 2015-12-17 23:23:22 +11:00
prom_init_check.sh
prom_parse.c
ptrace.c powerpc: Add rN aliases to the pt_regs_offset table. 2015-11-26 22:11:17 +11:00
ptrace32.c
reloc_32.S
reloc_64.S
rtas-proc.c
rtas-rtc.c
rtas.c powerpc/rtas: Make enter_rtas() private 2015-12-17 22:40:56 +11:00
rtas_flash.c
rtas_pci.c
rtasd.c
setup-common.c
setup_32.c
setup_64.c powerpc/book3e-64/kexec: Enable SMP release 2015-10-27 18:13:29 -05:00
signal.c
signal.h
signal_32.c powerpc fixes for 4.4 #2 2015-12-14 20:40:32 +11:00
signal_64.c powerpc fixes for 4.4 #2 2015-12-14 20:40:32 +11:00
smp-tbsync.c
smp.c
stacktrace.c powerpc: Implement save_stack_trace_regs() to enable kprobe stack tracing 2016-01-11 14:27:28 +11:00
suspend.c
swsusp.c powerpc: create flush_all_to_thread() 2015-12-02 19:34:40 +11:00
swsusp_32.S
swsusp_64.c
swsusp_asm64.S
swsusp_booke.S
sys_ppc32.c
syscalls.c
sysfs.c
systbl.S
systbl_chk.c powerpc: Standardise on NR_syscalls rather than __NR_syscalls. 2015-11-26 22:11:17 +11:00
systbl_chk.sh powerpc: Standardise on NR_syscalls rather than __NR_syscalls. 2015-11-26 22:11:17 +11:00
tau_6xx.c
time.c powerpc: Remove broken GregorianDay() 2015-12-16 12:54:04 +11:00
tm.S
trace_clock.c
traps.c powerpc: Remove unused function trace_syscall() 2015-11-26 22:11:16 +11:00
udbg.c
udbg_16550.c
uprobes.c
vdso.c powerpc: Standardise on NR_syscalls rather than __NR_syscalls. 2015-11-26 22:11:17 +11:00
vecemu.c
vector.S powerpc: Remove fp_enable() and vec_enable(), use msr_check_and_{set, clear}() 2015-12-01 13:52:26 +11:00
vio.c
vmlinux.lds.S powerpc: discard .exit.data at runtime 2015-10-15 20:31:59 +11:00