Skip to content

lib/bug: concurrency fix, cleanups, and debugfs inspection

Josh Law lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3lib/bug: annotate concurrent access to bug->flags with READ_ONCE/WRITE_ONCElib/bug.c+13 -80 replies
2/3lib/bug: clean up types in bug reporting helpersinclude/linux/bug.h lib/bug.c+7 -70 replies
3/3lib/bug: add debugfs interface to list all BUG/WARN siteslib/bug.c+67 -00 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/3] lib/bug: concurrency fix, cleanups, and debugfs inspection

Small series for lib/bug.c:

- Fix a KCSAN data race on bug->flags by using READ_ONCE/WRITE_ONCE and correcting the misleading comment about concurrency (patch 1).
- Clean up const-correctness and bare 'unsigned' types (patch 2).
- Add /sys/kernel/debug/bug_sites to inspect registered BUG/WARN sites and their runtime state, complementing the existing clear_warn_once interface (patch 3).

Build-tested with W=123.

Josh Law (3):
lib/bug: annotate concurrent access to bug->flags with
READ_ONCE/WRITE_ONCE
lib/bug: clean up types in bug reporting helpers lib/bug: add debugfs interface to list all BUG/WARN sites

 include/linux/bug.h |  6 +--
 lib/bug.c           | 96 +++++++++++++++++++++++++++++++++++++++------
 2 files changed, 87 insertions(+), 15 deletions(-)
Signature · 1 line
2.34.1