android_kernel_samsung_a7y1.../arch/mips/include/asm
Archer Yan 8f8dc30284 MIPS: Fix kernel crash for R6 in jump label branch function
commit 47c25036b60f27b86ab44b66a8861bcf81cde39b upstream.

Insert Branch instruction instead of NOP to make sure assembler don't
patch code in forbidden slot. In jump label function, it might
be possible to patch Control Transfer Instructions(CTIs) into
forbidden slot, which will generate Reserved Instruction exception
in MIPS release 6.

Signed-off-by: Archer Yan <ayan@wavecomp.com>
Reviewed-by: Paul Burton <paul.burton@mips.com>
[paul.burton@mips.com:
  - Add MIPS prefix to subject.
  - Mark for stable from v4.0, which introduced r6 support, onwards.]
Signed-off-by: Paul Burton <paul.burton@mips.com>
Cc: linux-mips@vger.kernel.org
Cc: stable@vger.kernel.org # v4.0+
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-04-06 10:58:13 +02:00
..
dec A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
emma A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
fw A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ip32 A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
lasat A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mach-ar7 A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mach-ath25 A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mach-ath79 A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mach-au1x00 A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mach-bcm47xx A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mach-bcm63xx A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mach-bmips A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mach-cavium-octeon A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mach-cobalt A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mach-db1x00 A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mach-dec A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mach-emma2rh A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mach-generic A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mach-ip22 A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mach-ip27 A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mach-ip28 A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mach-ip32 A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mach-jazz A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mach-jz4740 A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mach-lantiq A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mach-lasat A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mach-loongson32 A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mach-loongson64 A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mach-malta A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mach-netlogic A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mach-paravirt A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mach-pistachio A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mach-pmcs-msp71xx A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mach-pnx833x A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mach-ralink A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mach-rc32434 A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mach-rm A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mach-sead3 A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mach-sibyte A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mach-tx39xx A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mach-tx49xx A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mach-vr41xx A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mach-xilfpga A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mips-boards A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
netlogic A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
octeon A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
pci A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
sgi A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
sibyte A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
sn A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
txx9 A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
vr41xx A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
xtalk A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
abi.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
addrspace.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
amon.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
arch_hweight.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
asm-eva.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
asm-offsets.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
asm.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
asmmacro-32.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
asmmacro-64.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
asmmacro.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
atomic.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
barrier.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
bcache.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
bitops.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
bmips-spaces.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
bmips.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
bootinfo.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
branch.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
break.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
bug.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
bugs.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
cache.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
cacheflush.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
cacheops.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
cdmm.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
cevt-r4k.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
checksum.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
clkdev.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
clock.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
clocksource.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
cmp.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
cmpxchg.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
compat-signal.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
compat.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
compiler.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
cop2.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
cpu-features.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
cpu-info.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
cpu-type.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
cpu.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
debug.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
delay.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
device.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
div64.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
dma-coherence.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
dma-mapping.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
dma.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ds1287.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
dsemul.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
dsp.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
edac.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
elf.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
errno.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
eva.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
exec.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
fb.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
fixmap.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
floppy.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
fpregdef.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
fpu_emulator.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
fpu.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ftrace.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
futex.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
gio_device.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
gt64120.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
hardirq.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
hazards.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
highmem.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
hpet.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
hugetlb.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
hw_irq.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
i8259.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ide.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
idle.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
inst.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
io.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
irq_cpu.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
irq_gt641xx.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
irq_regs.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
irq.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
irqflags.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
isadep.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
jazz.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
jazzdma.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
jump_label.h MIPS: Fix kernel crash for R6 in jump label branch function 2020-04-06 10:58:13 +02:00
Kbuild A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
kdebug.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
kexec.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
kgdb.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
kmap_types.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
kprobes.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
kvm_host.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
kvm_para.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
linkage.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
local.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
m48t37.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
maar.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
machine.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mc146818-time.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mc146818rtc.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mips_machine.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mips_mt.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mips-cm.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mips-cpc.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mips-r2-to-r6-emul.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mipsmtregs.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mipsprom.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mipsregs.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mmu_context.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mmu.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mmzone.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
module.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
msa.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
msc01_ic.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
nile4.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
paccess.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
page.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
pci.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
perf_event.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
pgalloc.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
pgtable-32.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
pgtable-64.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
pgtable-bits.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
pgtable.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
pm-cps.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
pm.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
pmon.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
prefetch.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
processor.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
prom.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ptrace.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
r4k-timer.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
r4kcache.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
reboot.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
reg.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
regdef.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
rtlx.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
seccomp.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
setup.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
sgialib.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
sgiarcs.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
shmparam.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
sigcontext.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
signal.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
sim.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
smp-cps.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
smp-ops.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
smp.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
sni.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
socket.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
sparsemem.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
spinlock_types.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
spinlock.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
spram.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
stackframe.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
stackprotector.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
stacktrace.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
string.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
switch_to.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
syscall.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
termios.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
thread_info.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
time.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
timex.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
tlb.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
tlbdebug.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
tlbflush.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
tlbmisc.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
topology.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
traps.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
txx9irq.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
txx9pio.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
txx9tmr.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
types.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
uaccess.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
uasm.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
unaligned.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
unistd.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
uprobes.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
vdso.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
vga.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
vpe.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
war.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
watch.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
wbflush.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30