linux-stable/arch
Geert Uytterhoeven e4efec8c28 ARM: 8702/1: head-common.S: Clear lr before jumping to start_kernel()
commit 59b6359dd9 upstream.

If CONFIG_DEBUG_LOCK_ALLOC=y, the kernel log is spammed with a few
hundred identical messages:

    unwind: Unknown symbol address c0800300
    unwind: Index not found c0800300

c0800300 is the return address from the last subroutine call (to
__memzero()) in __mmap_switched().  Apparently having this address in
the link register confuses the unwinder.

To fix this, reset the link register to zero before jumping to
start_kernel().

Fixes: 9520b1a1b5 ("ARM: head-common.S: speed up startup code")
Suggested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Acked-by: Nicolas Pitre <nico@linaro.org>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
2020-08-07 09:38:42 +02:00
..
alpha Fix 'acccess_ok()' on alpha and SH 2020-06-20 10:24:58 +02:00
arc ARC: elf: use right ELF_ARCH 2020-07-22 09:22:19 +02:00
arm ARM: 8702/1: head-common.S: Clear lr before jumping to start_kernel() 2020-08-07 09:38:42 +02:00
arm64 arm64: csum: Fix handling of bad packets 2020-08-05 10:06:52 +02:00
blackfin
c6x
cris
frv
h8300
hexagon hexagon: work around compiler crash 2020-01-17 19:45:55 +01:00
ia64
m32r
m68k m68k/PCI: Fix a memory leak in an error handling path 2020-06-25 15:41:49 +02:00
metag
microblaze microblaze: Prevent the overflow of the start 2020-02-28 16:36:08 +01:00
mips MIPS: Fix build for LTS kernel caused by backporting lpj adjustment 2020-07-22 09:22:27 +02:00
mn10300
nios2 nios2: ksyms: Add missing symbol exports 2020-01-27 14:46:24 +01:00
openrisc openrisc: Fix issue with argument clobbering for clone/fork 2020-06-25 15:41:56 +02:00
parisc parisc: add support for cmpxchg on u8 pointers 2020-08-05 10:06:52 +02:00
powerpc powerpc/4xx: Don't unmap NULL mbase 2020-06-25 15:41:55 +02:00
s390 s390/mm: fix huge pte soft dirty copying 2020-07-22 09:22:19 +02:00
score
sh sh: Fix validation of system call number 2020-08-05 10:06:50 +02:00
sparc fix a braino in "sparc32: fix register window handling in genregs32_[gs]et()" 2020-06-30 15:37:57 -04:00
tile
um
unicore32
x86 x86/i8259: Use printk_deferred() to prevent deadlock 2020-08-05 10:06:53 +02:00
xtensa xtensa: update *pos in cpuinfo_op.next 2020-07-29 07:42:51 +02:00
.gitignore
Kconfig