summaryrefslogtreecommitdiff
path: root/scripts/diffconfig
diff options
context:
space:
mode:
authorFeng Jiang <jiangfeng@kylinos.cn>2026-04-04 04:28:47 +0300
committerPaul Walmsley <pjw@kernel.org>2026-04-05 03:42:44 +0300
commit27b2810a4a3dcd1545ec8bafc82f967eda591c47 (patch)
treee611926f9f1d0eda828bf65be70ac0c8b0e9cdce /scripts/diffconfig
parent263dca234e5cc12aa8b434592ceb655538bf4ea4 (diff)
downloadlinux-27b2810a4a3dcd1545ec8bafc82f967eda591c47.tar.xz
lib/string_kunit: add correctness test for strrchr()
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>
Diffstat (limited to 'scripts/diffconfig')
0 files changed, 0 insertions, 0 deletions