lib/bug: concurrency fix, cleanups, and debugfs inspection
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | lib/bug: annotate concurrent access to bug->flags with READ_ONCE/WRITE_ONCElib/ | +13 | 0 replies | |
| 2/3 | lib/bug: clean up types in bug reporting helpersinclude/ lib/ | +7 | 0 replies | |
| 3/3 | lib/bug: add debugfs interface to list all BUG/WARN siteslib/ | +67 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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