Skip to content

Add error_report_end tracepoint to KFENCE and KASAN

Alexander Potapenko linux-api linux-mm 1 version Applied

Status from this message: [merged] kasan-use-error_report_end-tracepoint.patch removed from -mm tree

Get series with b4
b4 am [email protected]

Versions newest first

  1. v3 Latest3 patches 3 repliesApplied 3/3

Changes in v3 from the cover letter

- dropped the sysfs interface for log collection
- dropped error_report_start tracepoint

Patches in v3 All 3 applied

#Subject and filesSizeRepliesApplied
1/3tracing: add error_report_end trace pointinclude/trace/events/error_report.h kernel/trace/Makefile kernel/trace/error_report-traces.c+87 -00 repliesApplied
2/3kfence: use error_report_end tracepointmm/kfence/report.c+2 -00 repliesApplied
3/3kasan: use error_report_end tracepointmm/kasan/report.c+5 -30 repliesApplied

Reviews trailers per patch

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

Read the v3 thread

Cover letter [PATCH v3 0/3] Add error_report_end tracepoint to KFENCE and KASAN

This patchset adds a tracepoint, error_repor_end, that is to be used by KFENCE, KASAN, and potentially other bug detection tools, when they print an error report.
One of the possible use cases is userspace collection of kernel error
reports: interested parties can subscribe to the tracing event via tracefs, and get notified when an error report occurs.

v3:
- dropped the sysfs interface for log collection
- dropped error_report_start tracepoint

v2:
- added ABI documentation for /sys/kernel/error_report/
- changed error_report_start and error_report end tracepoints to take a fixed set of values for the error detector

Alexander Potapenko (3):
tracing: add error_report_end trace point
kfence: use error_report_end tracepoint
kasan: use error_report_end tracepoint

 include/trace/events/error_report.h | 74 +++++++++++++++++++++++++++++
 kernel/trace/Makefile               |  1 +
 kernel/trace/error_report-traces.c  | 12 +++++
 mm/kasan/report.c                   |  8 ++--
 mm/kfence/report.c                  |  2 +
 5 files changed, 94 insertions(+), 3 deletions(-)
 create mode 100644 include/trace/events/error_report.h
 create mode 100644 kernel/trace/error_report-traces.c
Signature · 1 line
2.30.0.296.g2bfb1c46d8-goog