Skip to content

x86/kprobes: bugfixes and split optprobes

Masami Hiramatsu lkml 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest3 patches 4 repliesIn review
  2. v31 patch 6 repliesSuperseded
  3. v21 patch 6 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v11 patch0 repliesSuperseded

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3x86/kprobes: Fix to recover instructions on optimized patharch/x86/kernel/kprobes.c+97 -431 reply
2/3x86/kprobes: Fix a bug which can modify kernel codearch/x86/kernel/kprobes.c+15 -181 reply
3/3x86/kprobes: Split out optprobe related code to kprobes-opt.carch/x86/kernel/Makefile arch/x86/kernel/kprobes-common.h arch/x86/kernel/kprobes-opt.c +1 more+637 -5761 reply

Reviews trailers per patch

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

Read the v4 thread

Cover letter [PATCH v4 -tip 0/3] x86/kprobes: bugfixes and split optprobes

Hi,

Here are the patches for fixing bugs in kprobes on x86.

- Both bugs are related to the optprobe.
- First bugfix is optprobe to recover instructions when thoes are modified with jump.
- Second bugfix is kprobes to recover it too.

This series also includes a patch which split optprobes parts out from kprobes x86 implementation.

Ingo, I've added the splitting patch according your advice :)

Thank you,

---

Masami Hiramatsu (3):
x86/kprobes: Split out optprobe related code to kprobes-opt.c [BUGFIX] x86/kprobes: Fix a bug which can modify kernel code [BUGFIX] x86/kprobes: Fix to recover instructions on optimized path

 arch/x86/kernel/Makefile         |    1 
 arch/x86/kernel/kprobes-common.h |  106 ++++++
 arch/x86/kernel/kprobes-opt.c    |  516 +++++++++++++++++++++++++++++++
 arch/x86/kernel/kprobes.c        |  633 ++++----------------------------------
 4 files changed, 684 insertions(+), 572 deletions(-)
 create mode 100644 arch/x86/kernel/kprobes-common.h
 create mode 100644 arch/x86/kernel/kprobes-opt.c
Signature · 4 lines
Masami HIRAMATSU
Software Platform Research Dept. Linux Technology Center
Hitachi, Ltd., Yokohama Research Laboratory
E-mail: [email protected]