kprobes: Make KUnit and add stacktrace on kretprobe tests
Get series with b4
b4 am 163477765570.264901.3851692300287671122.stgit@devnote2Versions newest first · linked by author and title
- v3 Latest9 patches 13 repliesIn review
- v110 patches 3 repliesSuperseded
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/9 | kprobes: convert tests to kunitkernel/ kernel/ lib/ | +61 | 0 replies | |
| 2/9 | kprobes: Add a test case for stacktrace from kretprobe handlerarch/ arch/ kernel/ | +167 | 3 replies | |
| 3/9 | x86/unwind: Compile kretprobe fixup code only if CONFIG_KRETPROBES=yarch/ | +6 | 0 replies | |
| 4/9 | arm64: kprobes: Record frame pointer with kretprobe instancearch/ | +2 | 0 replies | |
| 5/9 | arm64: kprobes: Make a frame pointer on __kretprobe_trampolinearch/ | +4 | 0 replies | |
| 6/9 | arm64: Recover kretprobe modified return address in stacktracearch/ arch/ arch/ | +12 | 6 replies | |
| 7/9 | ARM: clang: Do not rely on lr register for stacktracearch/ | +1 | 0 replies | |
| 8/9 | ARM: kprobes: Make a frame pointer on __kretprobe_trampolinearch/ | +24 | 4 replies | |
| 9/9 | ARM: Recover kretprobe modified return address in stacktracearch/ arch/ arch/ +1 more | +28 | 0 replies |
Reviews trailers per patch
6 of 9 patches have a Reviewed-by or Acked-by.
| Patch | Masami Hiramatsu | Will Deacon | Mark Rutland | Nick Desaulniers |
|---|---|---|---|---|
| 1/9 | A-b | |||
| 2/9 | ||||
| 3/9 | ||||
| 4/9 | A-b | A-b | ||
| 5/9 | A-b | |||
| 6/9 | A-b | |||
| 7/9 | R-b | |||
| 8/9 | R-b | |||
| 9/9 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.
Cover letter [PATCH v3 0/9] kprobes: Make KUnit and add stacktrace on kretprobe tests
Hi,
Here is the 3rd version of the series to change the kprobes selftest to KUnit and add testcases for stacktrace on kretprobes, which has been fixed recently on x86. The previous version is here;
https://lore.kernel.org/all/163430224341.459050.2369208860773018092.stgit@devnote2/T/#u
In this version, I fixed arm's trampoline code, and add the version tag. And I also dropped the RFC patch. It may be discussed in another series.
Thank you,
---
Masami Hiramatsu (8):
kprobes: Add a test case for stacktrace from kretprobe handler x86/unwind: Compile kretprobe fixup code only if CONFIG_KRETPROBES=y
arm64: kprobes: Record frame pointer with kretprobe instance
arm64: kprobes: Make a frame pointer on __kretprobe_trampoline
arm64: Recover kretprobe modified return address in stacktrace
ARM: clang: Do not rely on lr register for stacktrace
ARM: kprobes: Make a frame pointer on __kretprobe_trampoline
ARM: Recover kretprobe modified return address in stacktrace
Sven Schnelle (1):
kprobes: convert tests to kunit
arch/Kconfig | 8 + arch/arm/Kconfig | 1 arch/arm/include/asm/stacktrace.h | 9 + arch/arm/kernel/return_address.c | 4 arch/arm/kernel/stacktrace.c | 17 + arch/arm/probes/kprobes/core.c | 28 ++ arch/arm64/Kconfig | 1 arch/arm64/include/asm/stacktrace.h | 4 arch/arm64/kernel/probes/kprobes.c | 4 arch/arm64/kernel/probes/kprobes_trampoline.S | 4 arch/arm64/kernel/stacktrace.c | 7 arch/x86/Kconfig | 1 arch/x86/include/asm/unwind.h | 6 kernel/kprobes.c | 3 kernel/test_kprobes.c | 374 ++++++++++++++----------- lib/Kconfig.debug | 3 16 files changed, 302 insertions(+), 172 deletions(-)
--
Masami Hiramatsu (Linaro) <[email protected]>