mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Josh Law <objecting@objecting.org>
To: Andrew Morton <akpm@linux-foundation.org>,
	Josh Law <objecting@objecting.org>
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH 0/3] lib/bug: concurrency fix, cleanups, and debugfs inspection
Date: Sun, 15 Mar 2026 19:49:36 +0000	[thread overview]
Message-ID: <20260315194939.328612-1-objecting@objecting.org> (raw)

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


             reply	other threads:[~2026-03-15 19:49 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-15 19:49 Josh Law [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260315194939.328612-1-objecting@objecting.org \
    --to=objecting@objecting.org \
    --cc=akpm@linux-foundation.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®