Skip to content

x86/kprobes: Fix bugs in resume execution code

Masami Hiramatsu lkml 1 version New

Get series with b4
b4 am 161425451732.93763.18329509061375062554.stgit@devnote2

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2x86/kprobes: Retrieve correct opcode for group instructionarch/x86/kernel/kprobes/core.c+5 -10 replies
2/2x86/kprobes: Identify far indirect JMP correctlyarch/x86/kernel/kprobes/core.c+1 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [BUGFIX PATCH -tip 0/2] x86/kprobes: Fix bugs in resume execution code

Hi,

Here are 2 bugfixes I have found in set_resume_flags().

The [1/2] fixes a bug which I have introduced by commit abd82e533d88 ("x86/kprobes: Do not decode opcode in resume_execution()"), and [2/2] has been there in the origin of the x86 kprobes (before 2.6.12). Anyway, [2/2] is something like a cosmetic patch, because the original code was mis- understanding the opcode encoding, but the result is same.

Thank you,

---

Masami Hiramatsu (2):
x86/kprobes: Retrieve correct opcode for group instruction x86/kprobes: Identify far indirect JMP correctly

 arch/x86/kernel/kprobes/core.c |    9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

--
Masami Hiramatsu (Linaro) <[email protected]>