mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/3] lib/bug: concurrency fix, cleanups, and debugfs inspection
@ 2026-03-15 19:49 Josh Law
  2026-03-15 19:49 ` [PATCH 1/3] lib/bug: annotate concurrent access to bug->flags with READ_ONCE/WRITE_ONCE Josh Law
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Josh Law @ 2026-03-15 19:49 UTC (permalink / raw)
  To: Andrew Morton, Josh Law; +Cc: linux-kernel

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(-)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-03-15 19:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-03-15 19:49 [PATCH 0/3] lib/bug: concurrency fix, cleanups, and debugfs inspection Josh Law
2026-03-15 19:49 ` [PATCH 1/3] lib/bug: annotate concurrent access to bug->flags with READ_ONCE/WRITE_ONCE Josh Law
2026-03-15 19:49 ` [PATCH 2/3] lib/bug: clean up types in bug reporting helpers Josh Law
2026-03-15 19:49 ` [PATCH 3/3] lib/bug: add debugfs interface to list all BUG/WARN sites Josh Law

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®