Skip to content

vsprintf: Add test for restricted kernel pointers

Thomas Weißschuh lkml 2 versions – In review

Get series with b4
b4 am 20260504-restricted-pointers-kunit-test-v2-0-19e8b1c0fbeb@linutronix.de change-id 20260109-restricted-pointers-kunit-test-ff4ec887bcd8

Versions newest first

  1. v2 Latest2 patches 8 repliesIn review
  2. v11 patch 3 repliesSuperseded

Changes in v2 from the cover letter

- 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

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2vsprintf: Only export no_hash_pointers to test modulelib/vsprintf.c+3 -15 replies
2/2vsprintf: Add test for restricted kernel pointerslib/tests/printf_kunit.c lib/vsprintf.c+24 -12 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchPetr Mladek
1/2R-b T-b
2/2R-b T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/2] vsprintf: Add test for restricted kernel pointers

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 <[email protected]>
To: Petr Mladek <[email protected]>
To: Steven Rostedt <[email protected]>
To: Andy Shevchenko <[email protected]>
To: Rasmus Villemoes <[email protected]>
To: Sergey Senozhatsky <[email protected]>

---
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,

Signature · 1 line
Thomas Weißschuh <[email protected]>