Skip to content

x86: kprobes: Fix CFI_CLANG related issues

Masami Hiramatsu (Google) linux-trace-kernel lkml 2 versions – Applied

Status from this message: The following commit has been merged into the x86/core branch of tip:

Get series with b4
b4 am 168904023542.116016.10540228903086100726.stgit@devnote2

Versions newest first · linked by author and title

  1. v2 Latest2 patches 5 repliesApplied
  2. v1 RFC2 patches 12 repliesSuperseded

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/2kprobes: Prohibit probing on CFI preamble symbolkernel/kprobes.c+13 -12 replies
2/2x86/kprobes: Prohibit probing on compiler generated CFI checking codearch/x86/kernel/kprobes/core.c+34 -03 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchPeter Zijlstra (Intel)Steven Rostedt (Google)
1/2R-b
2/2A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/2] x86: kprobes: Fix CFI_CLANG related issues

Hi,

Here is the 2nd version of the kprobe patches for kernel CFI. Previous version is here;

https://lore.kernel.org/all/168899125356.80889.17967397360941194229.stgit@devnote2/

In this version "__pfx_" prefix symbols also are prohibited and that check is done unconditionally [1/2].

- Prohibit probing on __cfi_* and __pfx_* preamble symbols, which have CFI info.
- Prohibit probing on compiler generated movl/addl which is used for detecting typeid on x86.

Thank you,

---

Masami Hiramatsu (Google) (2):
kprobes: Prohibit probing on CFI preamble symbol x86/kprobes: Prohibit probing on compiler generated CFI checking code

 arch/x86/kernel/kprobes/core.c |   34 ++++++++++++++++++++++++++++++++++
 kernel/kprobes.c               |   14 +++++++++++++-
 2 files changed, 47 insertions(+), 1 deletion(-)

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