From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from sender-of-o57.zoho.eu (sender-of-o57.zoho.eu [136.143.169.57]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C654B371D15 for ; Sun, 15 Mar 2026 19:49:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=pass smtp.client-ip=136.143.169.57 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773604188; cv=pass; b=VceJS60zRZrpxYXwTnI7otTasDJCVQb5TJrYyg6+vDWMOUI/A2jsclqyj4SwJ/6RWV79Lf6VrOujKEcvO0sDqRw4ss2DVpgWUDOgi4a7GgIQKcDyxdYcLAXDd8xQiN4Ko/c0WKup06LJP53qVInURJQ+UCsR7pISFQ0scQvNyp0= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773604188; c=relaxed/simple; bh=MPCb5a/tbwsE55KE17piBZW5eGQ5uWaqAhbQaocSKfM=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=XJAl7g89/PZJT3eZ9r/PDF6+9T/x8BiQyekhxQmojEyLhZvsyGWA5rW7jzyneVQp0jux0SWzQpiZpCYtp+BDuvWrNUWYw3o+VBfvjw1pA7ufMA82xOKzOx8B2ZrBffFXBjcn5ihU7eyaZEfpeINfz9+hGJ/Miq/H3SHafb21+CA= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=objecting.org; spf=pass smtp.mailfrom=objecting.org; dkim=pass (1024-bit key) header.d=objecting.org header.i=objecting@objecting.org header.b=Cia7ov/g; arc=pass smtp.client-ip=136.143.169.57 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=objecting.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=objecting.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=objecting.org header.i=objecting@objecting.org header.b="Cia7ov/g" ARC-Seal: i=1; a=rsa-sha256; t=1773604183; cv=none; d=zohomail.eu; s=zohoarc; b=jvcvFi0vVJFRwxMCEN7p/X1yS70V2jHM4wXhzaPfiypWjQhTxiFdfw0X6LAEqE5RqmPOQ/hAFQ4yznlqH8MB3wIoGx1+Q+g2pW2l3GOjk+50VX9u6b7DikFoXRNaOxt9ZLqJmjt9HSuzGXl7Oftg9nn3o28qoDJyUbha+iJdIm0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.eu; s=zohoarc; t=1773604183; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:MIME-Version:Message-ID:Subject:Subject:To:To:Message-Id:Reply-To; bh=PjaqgjRaH8MOhSN2tRwQwgVR9T7QFK8j6aoHkQW6n8I=; b=Tk1N2mXeZZo9jqTr5HGZb6rgEH+0Akyin5NquSB3+Pg5vd2ekmt4yLJ7a48bKhsl2Fc4tynU1dT9bye1DAIG+LyHmfaRnmiVnJHYZc1PC45I7P3Hq/Cbs5Uns+HD7FMkFyfhvinsdQ32HwAQE9AUAZa8kyy+oPyjuk822FZVZPo= ARC-Authentication-Results: i=1; mx.zohomail.eu; dkim=pass header.i=objecting.org; spf=pass smtp.mailfrom=objecting@objecting.org; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1773604183; s=zmail; d=objecting.org; i=objecting@objecting.org; h=From:From:To:To:Cc:Cc:Subject:Subject:Date:Date:Message-Id:Message-Id:MIME-Version:Content-Transfer-Encoding:Reply-To; bh=PjaqgjRaH8MOhSN2tRwQwgVR9T7QFK8j6aoHkQW6n8I=; b=Cia7ov/gWlDzG1EbAFITxhtcwtJOr2I2TBbIDId3hBNBRVUmJC0moXYPQHyq/WSn 6FJ9UJHiBv+EYUTuzIwQPr53MV0JIMMQufyeVLXY3JHxOZKkkDfrSj1dRjdWAarClKX Lu9O/BbUSmqGccyXCEz3of0pHruTgG5SIfzhlDK8= Received: by mx.zoho.eu with SMTPS id 1773604181007123.8351828380678; Sun, 15 Mar 2026 20:49:41 +0100 (CET) From: Josh Law To: Andrew Morton , Josh Law 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 Message-Id: <20260315194939.328612-1-objecting@objecting.org> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-ZohoMailClient: External 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