All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] nvdimm: add missing prompt for NVDIMM_KMSAN
@ 2026-12-04  2:09 Pengpeng Hou
  2026-12-04  2:28 ` sashiko-bot
  2026-12-04  2:52 ` Alison Schofield
  0 siblings, 2 replies; 3+ messages in thread
From: Pengpeng Hou @ 2026-12-04  2:09 UTC (permalink / raw)
  To: Dan Williams, Vishal Verma, Dave Jiang, Alison Schofield
  Cc: Ira Weiny, nvdimm, Pengpeng Hou

NVDIMM_KMSAN has help text asking users to choose whether to allow a
larger struct page reservation, but its boolean has no prompt, default
enabling value or selecting user.

Add a prompt under the existing KMSAN dependency. Keep the default off
and retain the warning about persistent namespace capacity.

The issue was found by our static-analysis tool and manually reviewed.

Fixes: c91d71363084 ("nvdimm: Support sizeof(struct page) > MAX_STRUCT_PAGE_SIZE")
Signed-off-by: Pengpeng Hou <hppiscas@163.com>
---
The original patch was prepared with Gemini. Codex assisted with this
review and revision (Assisted-by: gpt 5).
With real Clang 18 and KMSAN and LIBNVDIMM enabled, Kconfig ignored an
explicit NVDIMM_KMSAN=y before this change and accepted it afterwards.
Without that request the default remained off. This was a configuration
test; no target binary was built.

 drivers/nvdimm/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/nvdimm/Kconfig b/drivers/nvdimm/Kconfig
index 44ab929a1ad54dcc94b2ee1f0aa45643311440d2..7db8fb321279c81565816226737c6dd93788df20 100644
--- a/drivers/nvdimm/Kconfig
+++ b/drivers/nvdimm/Kconfig
@@ -122,7 +122,7 @@ config NVDIMM_KEYS
 	depends on (LIBNVDIMM=ENCRYPTED_KEYS) || LIBNVDIMM=m
 
 config NVDIMM_KMSAN
-	bool
+	bool "Support KMSAN debug builds with oversized struct page"
 	depends on KMSAN
 	help
 	  KMSAN, and other memory debug facilities, increase the size of

base-commit: d06ce6f1eb5eeffd4ebcfde345dc34a98131d106


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

end of thread, other threads:[~2026-12-04  2:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-04  2:09 [PATCH] nvdimm: add missing prompt for NVDIMM_KMSAN Pengpeng Hou
2026-12-04  2:28 ` sashiko-bot
2026-12-04  2:52 ` Alison Schofield

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.