Marcin Nowakowski 698b851073 MIPS: kprobes: flush_insn_slot should flush only if probe initialised
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 <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>
2017-06-08 15:42:05 +02:00
..
2013-02-01 10:00:22 +01:00
2013-02-01 10:00:22 +01:00
2013-02-01 10:00:22 +01:00
2016-05-28 12:35:06 +02:00
2015-06-21 21:52:44 +02:00
2014-08-26 02:18:58 +02:00
2016-05-28 12:35:07 +02:00
2016-04-03 12:32:09 +02:00
2016-05-28 12:35:08 +02:00
2016-04-03 12:32:09 +02:00
2013-02-01 10:00:22 +01:00
2013-02-01 10:00:22 +01:00
2014-01-22 20:19:02 +01:00
2017-03-28 16:43:25 -04:00
2015-05-13 10:55:42 +02:00
2015-11-12 11:35:47 +01:00
2017-03-28 14:49:15 +01:00
2017-03-28 14:48:53 +01:00
2013-02-01 10:00:22 +01:00
2013-01-24 13:20:09 +01:00
2015-05-28 15:31:53 +02:00
2014-08-26 02:18:56 +02:00
2012-03-28 18:30:02 +01:00
2014-05-24 00:07:01 +02:00
2013-02-01 10:00:22 +01:00
2013-02-01 10:00:22 +01:00
2016-05-28 12:35:06 +02:00
2011-07-26 16:49:47 -07:00
2013-02-01 10:00:22 +01:00
2013-02-01 10:00:22 +01:00
2013-02-01 10:00:22 +01:00
2017-02-21 14:21:11 -08:00
2015-09-03 12:08:05 +02:00
2013-02-01 10:00:22 +01:00
2013-02-01 10:00:22 +01:00
2013-02-01 10:00:22 +01:00
2016-05-28 12:35:07 +02:00
2013-02-01 10:00:22 +01:00
2017-06-08 14:51:58 +02:00
2016-10-04 16:13:57 +02:00
2017-03-28 16:43:25 -04:00
2014-08-02 00:06:38 +02:00
2013-02-01 10:00:22 +01:00
2014-01-22 20:19:02 +01:00
2016-04-03 12:32:09 +02:00
2013-02-01 10:00:22 +01:00
2017-01-03 16:34:44 +01:00
2013-02-01 10:00:22 +01:00
2013-02-01 10:00:22 +01:00
2017-03-08 11:16:26 +01:00
2017-01-03 16:34:42 +01:00
2013-02-01 10:00:22 +01:00
2011-12-07 22:01:45 +00:00
2013-02-01 10:00:22 +01:00
2013-02-01 10:00:22 +01:00
2017-04-06 02:08:09 -04:00
2013-09-18 17:13:58 +02:00
2013-02-01 10:00:22 +01:00
2016-05-09 12:00:02 +02:00