From: Marcin Nowakowski Date: Thu, 8 Jun 2017 13:20:32 +0000 (+0200) Subject: MIPS: kprobes: flush_insn_slot should flush only if probe initialised X-Git-Tag: v3.2.93~33 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=84ffad0113bfd85b5f54be9c141bdd60d77d826a;p=pandora-kernel.git MIPS: kprobes: flush_insn_slot should flush only if probe initialised commit 698b851073ddf5a894910d63ca04605e0473414e 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: c1bf207d6ee1 ("MIPS: kprobe: Add support.") Signed-off-by: Marcin Nowakowski Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/16296/ Signed-off-by: Ralf Baechle Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed