public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] vsprintf: Add test for restricted kernel pointers
@ 2026-05-04 10:43 Thomas Weißschuh
  2026-05-04 10:43 ` [PATCH v2 1/2] vsprintf: Only export no_hash_pointers to test module Thomas Weißschuh
  2026-05-04 10:43 ` [PATCH v2 2/2] vsprintf: Add test for restricted kernel pointers Thomas Weißschuh
  0 siblings, 2 replies; 7+ messages in thread
From: Thomas Weißschuh @ 2026-05-04 10:43 UTC (permalink / raw)
  To: Andrew Morton, Petr Mladek, Steven Rostedt, Andy Shevchenko,
	Rasmus Villemoes, Sergey Senozhatsky
  Cc: linux-kernel, Thomas Weißschuh

Fill out the tests for restricted kernel pointers, using the %pK format.

---
Changes in v2:
- Restrict the visibility of no_hash_pointers.
- Handle printf_kunit being a module.
- Add note about KUnit capabilities for kptr_restrict==1.
- Link to v1: https://lore.kernel.org/r/20260114-restricted-pointers-kunit-test-v1-1-a9d8a49c6b6f@linutronix.de

To: Andrew Morton <akpm@linux-foundation.org>
To: Petr Mladek <pmladek@suse.com>
To: Steven Rostedt <rostedt@goodmis.org>
To: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
To: Rasmus Villemoes <linux@rasmusvillemoes.dk>
To: Sergey Senozhatsky <senozhatsky@chromium.org>
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>

---
Thomas Weißschuh (2):
      vsprintf: Only export no_hash_pointers to test module
      vsprintf: Add test for restricted kernel pointers

 lib/tests/printf_kunit.c | 22 +++++++++++++++++++++-
 lib/vsprintf.c           |  7 ++++++-
 2 files changed, 27 insertions(+), 2 deletions(-)
---
base-commit: 254f49634ee16a731174d2ae34bc50bd5f45e731
change-id: 20260109-restricted-pointers-kunit-test-ff4ec887bcd8

Best regards,
--  
Thomas Weißschuh <thomas.weissschuh@linutronix.de>


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

end of thread, other threads:[~2026-05-04 14:11 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-04 10:43 [PATCH v2 0/2] vsprintf: Add test for restricted kernel pointers Thomas Weißschuh
2026-05-04 10:43 ` [PATCH v2 1/2] vsprintf: Only export no_hash_pointers to test module Thomas Weißschuh
2026-05-04 10:57   ` Andy Shevchenko
2026-05-04 11:53     ` Thomas Weißschuh
2026-05-04 14:11       ` Andy Shevchenko
2026-05-04 10:43 ` [PATCH v2 2/2] vsprintf: Add test for restricted kernel pointers Thomas Weißschuh
2026-05-04 10:58   ` Andy Shevchenko

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