diff options
| author | Kees Cook <kees@kernel.org> | 2026-03-24 05:07:30 +0300 |
|---|---|---|
| committer | Kees Cook <kees@kernel.org> | 2026-04-01 02:53:47 +0300 |
| commit | cf2f06f7152d5e38a87aa2e9b8b452714789f6ba (patch) | |
| tree | 58402668bdb292a8be0f98c761e52a34986c99a2 /tools/testing/selftests | |
| parent | 00247cbf173a9e1e2304db8e3f9172d36366b255 (diff) | |
| download | linux-cf2f06f7152d5e38a87aa2e9b8b452714789f6ba.tar.xz | |
lkdtm/fortify: Drop unneeded FORTIFY_STR_OBJECT test
The str* family of fortified functions all use member-sized limits
for a while now, so the FORTIFY_STR_OBJECT test is redundant to
FORTIFY_STR_MEMBER. While here, replace the strncpy() use with strscpy(),
as strncpy() is being removed.
Link: https://patch.msgid.link/20260324020726.work.624-kees@kernel.org
Signed-off-by: Kees Cook <kees@kernel.org>
Diffstat (limited to 'tools/testing/selftests')
| -rw-r--r-- | tools/testing/selftests/lkdtm/tests.txt | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/tools/testing/selftests/lkdtm/tests.txt b/tools/testing/selftests/lkdtm/tests.txt index e62b85b591be..3245032db34d 100644 --- a/tools/testing/selftests/lkdtm/tests.txt +++ b/tools/testing/selftests/lkdtm/tests.txt @@ -82,7 +82,6 @@ STACKLEAK_ERASING OK: the rest of the thread stack is properly erased CFI_FORWARD_PROTO CFI_BACKWARD call trace:|ok: control flow unchanged FORTIFY_STRSCPY detected buffer overflow -FORTIFY_STR_OBJECT detected buffer overflow FORTIFY_STR_MEMBER detected buffer overflow FORTIFY_MEM_OBJECT detected buffer overflow FORTIFY_MEM_MEMBER detected field-spanning write |
