All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kees Cook <keescook@chromium.org>
To: linux-hardening@vger.kernel.org
Cc: Kees Cook <keescook@chromium.org>,
	"Gustavo A. R. Silva" <gustavoars@kernel.org>,
	linux-kernel@vger.kernel.org
Subject: [PATCH 0/3] kunit/fortify: Add memcpy() tests
Date: Mon, 29 Apr 2024 12:43:38 -0700	[thread overview]
Message-ID: <20240429194019.work.664-kees@kernel.org> (raw)

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(-)

-- 
2.34.1


             reply	other threads:[~2024-04-29 19:43 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-29 19:43 Kees Cook [this message]
2024-04-29 19:43 ` [PATCH 1/3] kunit/fortify: Rename tests to use recommended conventions Kees Cook
2024-04-29 19:43 ` [PATCH 2/3] kunit/fortify: Do not spam logs with fortify WARNs Kees Cook
2024-04-29 19:43 ` [PATCH 3/3] kunit/fortify: Add memcpy() tests Kees Cook

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240429194019.work.664-kees@kernel.org \
    --to=keescook@chromium.org \
    --cc=gustavoars@kernel.org \
    --cc=linux-hardening@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.