diff options
| author | Masami Hiramatsu <mhiramat@kernel.org> | 2017-07-21 23:45:52 +0900 |
|---|---|---|
| committer | Ben Hutchings <ben@decadent.org.uk> | 2017-11-11 13:33:07 +0000 |
| commit | 528473c94fcbf295051e4eabe59fae3b192a6cfc (patch) | |
| tree | 1fc4eb40f1c8d97300c76ec63e4c3744fdbb7ed4 /include/linux | |
| parent | f673d5b06e8c9e4592b49a16d3eeefe01287b317 (diff) | |
kprobes/x86: Release insn_slot in failure path
commit 38115f2f8cec8087d558c062e779c443a01f87d6 upstream.
The following commit:
003002e04ed3 ("kprobes: Fix arch_prepare_kprobe to handle copy insn failures")
returns an error if the copying of the instruction, but does not release
the allocated insn_slot.
Clean up correctly.
Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Ananth N Mavinakayanahalli <ananth@in.ibm.com>
Cc: Anil S Keshavamurthy <anil.s.keshavamurthy@intel.com>
Cc: David S . Miller <davem@davemloft.net>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Fixes: 003002e04ed3 ("kprobes: Fix arch_prepare_kprobe to handle copy insn failures")
Link: http://lkml.kernel.org/r/150064834183.6172.11694375818447664416.stgit@devbox
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
