linux/arch/arm/kernel
Jinbum Park 1feaee827d ARM: 8748/1: mm: Define vdso_start, vdso_end as array
[ Upstream commit 73b9160d0d ]

Define vdso_start, vdso_end as array to avoid compile-time analysis error
for the case of built with CONFIG_FORTIFY_SOURCE.

and, since vdso_start, vdso_end are used in vdso.c only,
move extern-declaration from vdso.h to vdso.c.

If kernel is built with CONFIG_FORTIFY_SOURCE,
compile-time error happens at this code.
- if (memcmp(&vdso_start, "177ELF", 4))

The size of "&vdso_start" is recognized as 1 byte, but n is 4,
So that compile-time error is reported.

Acked-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Jinbum Park <jinb.park7@gmail.com>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-05-30 07:49:06 +02:00
..
.gitignore
arch_timer.c
armksyms.c
asm-offsets.c
atags_compat.c
atags_parse.c
atags_proc.c
atags.h
bios32.c
calls.S
cpuidle.c
crash_dump.c
debug.S
devtree.c ARM: 8616/1: dt: Respect property size when parsing CPUs 2016-10-07 15:23:40 +02:00
dma-isa.c
dma.c
early_printk.c
elf.c
entry-armv.S
entry-common.S
entry-ftrace.S
entry-header.S ARM: avoid faulting on qemu 2017-12-16 10:33:50 +01:00
entry-v7m.S
fiq.c
fiqasm.S
ftrace.c ARM: 8668/1: ftrace: Fix dynamic ftrace with DEBUG_RODATA and !FRAME_POINTER 2018-03-24 10:58:41 +01:00
head-common.S
head-nommu.S
head.S
hibernate.c
hw_breakpoint.c ARM: 8634/1: hw_breakpoint: blacklist Scorpion CPUs 2017-01-26 08:23:49 +01:00
hyp-stub.S
insn.c
io.c
irq.c
isa.c
iwmmxt.S
jump_label.c
kgdb.c
machine_kexec.c
Makefile ARM: 8452/3: PJ4: make coprocessor access sequences buildable in Thumb2 mode 2017-05-14 13:32:54 +02:00
module-plts.c
module.c
module.lds
opcodes.c
patch.c
perf_callchain.c
perf_event_v6.c
perf_event_v7.c
perf_event_xscale.c
perf_regs.c
pj4-cp0.c ARM: 8452/3: PJ4: make coprocessor access sequences buildable in Thumb2 mode 2017-05-14 13:32:54 +02:00
process.c ARM: report proper DACR value in oops dumps 2015-12-04 19:20:48 +00:00
psci_smp.c
psci-call.S
ptrace.c ARM: 8643/3: arm/ptrace: Preserve previous registers for short regset write 2017-02-14 15:22:51 -08:00
reboot.c
reboot.h
relocate_kernel.S
return_address.c
setup.c
signal.c
sigreturn_codes.S
sleep.S
smp_scu.c
smp_tlb.c ARM: 8613/1: Fix the uaccess crash on PB11MPCore 2017-01-26 08:23:49 +01:00
smp_twd.c
smp.c
stacktrace.c
suspend.c
swp_emulate.c ARM: 8475/1: SWP emulation: Restore original *data when failed 2015-12-15 11:51:42 +00:00
sys_arm.c
sys_oabi-compat.c arm: oabi compat: add missing access checks 2016-08-16 09:30:48 +02:00
tcm.c
thumbee.c
time.c
topology.c
traps.c ARM: 8771/1: kprobes: Prohibit kprobes on do_undefinstr 2018-05-26 08:48:56 +02:00
unwind.c
v7m.c
vdso.c ARM: 8748/1: mm: Define vdso_start, vdso_end as array 2018-05-30 07:49:06 +02:00
vmlinux.lds.S
xscale-cp0.c