Skip to content

Add sysfs interface to collect reports from debugging tools

Alexander Potapenko linux-api linux-mm lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 16 repliesIn review
  2. v14 patches 9 repliesSuperseded

Changes in v2 from the cover letter

- 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

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5tracing: add error_report trace pointsinclude/trace/events/error_report.h kernel/trace/Makefile kernel/trace/error_report-traces.c+96 -00 replies
2/5lib: add error_report_notify to collect debugging tools' reportslib/Kconfig.debug lib/Makefile lib/error_report_notify.c+294 -07 replies
3/5docs: ABI: add /sys/kernel/error_report/ documentationDocumentation/ABI/testing/sysfs-kernel-error_report+41 -06 replies
4/5kfence: use error_report_start and error_report_end tracepointsmm/kfence/report.c+3 -00 replies
5/5kasan: use error_report_start and error_report_end tracepointsmm/kasan/report.c+9 -60 replies

Reviews trailers per patch

None of the 5 patches has a Reviewed-by or Acked-by.

PatchAndrew Morton
1/5
2/5
3/5Requested-by
4/5
5/5

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/5] Add sysfs interface to collect reports from debugging tools

This patchset adds a library that captures error reports from debugging tools like KASAN or KFENCE and exposes those reports to userspace via sysfs. Report capturing is controlled by two new types of tracepoints:
error_report_start and error_report_end, that must be added to the tools that want to use this new feature.

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 (5):
tracing: add error_report trace points
lib: add error_report_notify to collect debugging tools' reports
docs: ABI: add /sys/kernel/error_report/ documentation
kfence: use error_report_start and error_report_end tracepoints
kasan: use error_report_start and error_report_end tracepoints

 .../ABI/testing/sysfs-kernel-error_report     |  41 +++
 include/trace/events/error_report.h           |  84 ++++++
 kernel/trace/Makefile                         |   1 +
 kernel/trace/error_report-traces.c            |  11 +
 lib/Kconfig.debug                             |  14 +
 lib/Makefile                                  |   2 +
 lib/error_report_notify.c                     | 278 ++++++++++++++++++
 mm/kasan/report.c                             |  15 +-
 mm/kfence/report.c                            |   3 +
 9 files changed, 443 insertions(+), 6 deletions(-)
 create mode 100644 Documentation/ABI/testing/sysfs-kernel-error_report
 create mode 100644 include/trace/events/error_report.h
 create mode 100644 kernel/trace/error_report-traces.c
 create mode 100644 lib/error_report_notify.c
Signature · 1 line
2.30.0.284.gd98b1dd5eaa7-goog