Skip to content

kunit/fortify: Add memcpy() tests

Kees Cook linux-hardening lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3kunit/fortify: Rename tests to use recommended conventionslib/fortify_kunit.c+40 -400 replies
2/3kunit/fortify: Do not spam logs with fortify WARNslib/fortify_kunit.c+8 -10 replies
3/3kunit/fortify: Add memcpy() testsinclude/linux/fortify-string.h lib/fortify_kunit.c+87 -40 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] kunit/fortify: Add memcpy() tests

Hi,

This adds memcpy() fortify KUnit tests, similar to how the others were done. This is in preparation for removing the 0-sized destination exclusion now that we seem to be in good shape now after removing all our 0-sized arrays.

-Kees

Kees Cook (3):
kunit/fortify: Rename tests to use recommended conventions kunit/fortify: Do not spam logs with fortify WARNs kunit/fortify: Add memcpy() tests

 include/linux/fortify-string.h |   6 +-
 lib/fortify_kunit.c            | 174 ++++++++++++++++++++++++---------
 2 files changed, 135 insertions(+), 45 deletions(-)
Signature · 1 line
2.34.1