Skip to content

kprobes/x86: RO text code bugfix and cleanup

Masami Hiramatsu lkml 2 versions – In review

Get series with b4
b4 am 150249861299.18166.13400123503538960282.stgit@devbox

Versions newest first · linked by author and title

  1. v2 Latest2 patches 2 repliesIn review
  2. v12 patches 2 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2kprobes/x86: Don't forget to set memory back to RO on failurearch/x86/kernel/kprobes/core.c arch/x86/kernel/kprobes/opt.c+10 -60 replies
2/2kprobes/x86: Remove addressof operatorsarch/x86/include/asm/kprobes.h arch/x86/kernel/kprobes/opt.c+6 -60 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH -tip v2 0/2] kprobes/x86: RO text code bugfix and cleanup

Hi,

This series fixes a kprobe-x86 bug related to RO text and cleans up addressof operators.

The first one is an obvious bug that misses to set memory RO when the function fails. And the second one is just a cleanup patch to remove addressof operators ("&") since it is meaningless anymore.

V2 has just a following update:
- [1/2] Use a helper variable instead of using p->ainsn.insn directly.

Thanks,

---

Masami Hiramatsu (2):
kprobes/x86: Don't forget to set memory back to RO on failure kprobes/x86: Remove addressof operators

 arch/x86/include/asm/kprobes.h |    4 ++--
 arch/x86/kernel/kprobes/core.c |   15 +++++++++------
 arch/x86/kernel/kprobes/opt.c  |    9 +++++----
 3 files changed, 16 insertions(+), 12 deletions(-)

--
Masami Hiramatsu <[email protected]>