linux/arch/mips/include
Marcin Nowakowski d13206fb3c MIPS: kprobes: flush_insn_slot should flush only if probe initialised
commit 698b851073 upstream.

When ftrace is used with kprobes, it is possible for a kprobe to contain
an invalid location (ie. only initialised to 0 and not to a specific
location in the code). Trying to perform a cache flush on such location
leads to a crash r4k_flush_icache_range().

Fixes: c1bf207d6e ("MIPS: kprobe: Add support.")
Signed-off-by: Marcin Nowakowski <marcin.nowakowski@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/16296/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
History 2017-09-15 18:30:06 +01:00
..
asm MIPS: kprobes: flush_insn_slot should flush only if probe initialised 2017-09-15 18:30:06 +01:00
uapi/asm MIPS: Fix siginfo.h to use strict posix types 2016-08-22 22:37:55 +01:00