+31
−0
Loading
Add a KUnit test for strrchr() 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: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-4-jiangfeng@kylinos.cn Signed-off-by:
Paul Walmsley <pjw@kernel.org>