android_kernel_samsung_a7y1.../arch/mips/kernel
Christophe JAILLET 84eebc6d91 MIPS: VPE: Fix a double free and a memory leak in 'release_vpe()'
commit bef8e2dfceed6daeb6ca3e8d33f9c9d43b926580 upstream.

Pointer on the memory allocated by 'alloc_progmem()' is stored in
'v->load_addr'. So this is this memory that should be freed by
'release_progmem()'.

'release_progmem()' is only a call to 'kfree()'.

With the current code, there is both a double free and a memory leak.
Fix it by passing the correct pointer to 'release_progmem()'.

Fixes: e01402b115ccc ("More AP / SP bits for the 34K, the Malta bits and things. Still wants")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Paul Burton <paulburton@kernel.org>
Cc: ralf@linux-mips.org
Cc: linux-mips@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Cc: kernel-janitors@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-04-07 14:04:51 +02:00
..
8250-platform.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
asm-offsets.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
binfmt_elfn32.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
binfmt_elfo32.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
bmips_vec.S A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
branch.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
cevt-bcm1480.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
cevt-ds1287.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
cevt-gt641xx.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
cevt-r4k.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
cevt-sb1250.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
cevt-txx9.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
cps-vec-ns16550.S A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
cps-vec.S A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
cpu-bugs64.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
cpu-probe.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
crash_dump.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
crash.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
csrc-bcm1480.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
csrc-ioasic.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
csrc-r4k.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
csrc-sb1250.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
early_printk_8250.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
early_printk.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
elf.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
entry.S A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ftrace.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
genex.S A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
gpio_txx9.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
head.S A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
i8253.c MIPS: kernel: only use i8253 clocksource with periodic clockevent 2020-04-06 20:52:38 +02:00
idle.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
irq_txx9.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
irq-gt641xx.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
irq-msc01.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
irq-rm7000.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
irq.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
jump_label.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
kgdb.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
kprobes.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
linux32.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
machine_kexec.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Makefile A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mcount.S A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mips_ksyms.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mips_machine.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mips-cm.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mips-cpc.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mips-mt-fpaff.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mips-mt.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mips-r2-to-r6-emul.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
module-rela.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
module.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
octeon_switch.S A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
perf_event_mipsxx.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
perf_event.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
pm-cps.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
pm.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
proc.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
process.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
prom.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ptrace.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ptrace32.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
r4k_fpu.S A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
r4k_switch.S A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
r2300_fpu.S A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
r2300_switch.S A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
r6000_fpu.S A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
relocate_kernel.S A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
reset.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
rtlx-cmp.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
rtlx-mt.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
rtlx.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
scall32-o32.S A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
scall64-64.S A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
scall64-n32.S A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
scall64-o32.S MIPS: scall64-o32: Fix indirect syscall number load 2020-04-06 16:38:39 +02:00
segment.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
setup.c mips: avoid explicit UB in assignment of mips_io_port_base 2020-04-07 13:43:00 +02:00
signal_n32.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
signal-common.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
signal.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
signal32.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
smp-bmips.c MIPS: bmips: mark exception vectors as char arrays 2020-04-07 09:29:11 +02:00
smp-cmp.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
smp-cps.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
smp-gic.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
smp-mt.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
smp-up.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
smp.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
spinlock_test.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
spram.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
stacktrace.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
sync-r4k.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
syscall.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
sysrq.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
time.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
topology.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
traps.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
unaligned.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
uprobes.c MIPS: uprobes: remove set but not used variable 'epc' 2020-04-06 19:16:28 +02:00
vdso.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
vmlinux.lds.S A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
vpe-cmp.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
vpe-mt.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
vpe.c MIPS: VPE: Fix a double free and a memory leak in 'release_vpe()' 2020-04-07 14:04:51 +02:00
watch.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30