Files
linux-stable-mirror/lib
Feng Jiang 263dca234e lib/string_kunit: add correctness test for strnlen()
Add a KUnit test for strnlen() to verify correctness across
different string lengths and memory alignments. Use vmalloc()
to place the NUL character at the page boundary to ensure
over-reads are detected.

Suggested-by: Andy Shevchenko <andy@kernel.org>
Suggested-by: Kees Cook <kees@kernel.org>
Signed-off-by: Feng Jiang <jiangfeng@kylinos.cn>
Reviewed-by: Kees Cook <kees@kernel.org>
Link: https://patch.msgid.link/20260130025018.172925-3-jiangfeng@kylinos.cn
Signed-off-by: Paul Walmsley <pjw@kernel.org>
2026-04-04 18:42:44 -06:00
..
2025-03-16 22:30:49 -07:00
2025-04-11 17:32:37 -07:00
2026-01-26 19:07:13 -08:00
2025-10-24 21:39:27 +02:00
2026-01-11 06:09:11 -10:00
2025-11-27 14:24:30 -08:00
2025-03-25 10:18:31 -03:00
2025-09-13 16:54:46 -07:00