public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] Introduce flexible array struct helpers
@ 2022-10-24 17:20 Kees Cook
  2022-10-24 17:20 ` [PATCH v2 1/2] " Kees Cook
  2022-10-24 17:20 ` [PATCH 2/2] xfs: Use flex_cpy() to check extent copying Kees Cook
  0 siblings, 2 replies; 8+ messages in thread
From: Kees Cook @ 2022-10-24 17:20 UTC (permalink / raw)
  To: Darrick J . Wong
  Cc: Kees Cook, Gustavo A. R. Silva, Keith Packard, Francis Laniel,
	Daniel Axtens, Dan Williams, Vincenzo Frascino, Guenter Roeck,
	Daniel Vetter, Tadeusz Struk, Zorro Lang, Geert Uytterhoeven,
	Andy Shevchenko, Paolo Abeni, linux-kernel, linux-xfs,
	linux-hardening

Hi,

Here's a trimmed-down version of my original proposal, which just includes
flex_cpy(), as this is needed by XFS.

-Kees

v2: only include flex_cpy(), leaving remaining helpers for the future
v1: https://lore.kernel.org/all/20220504014440.3697851-1-keescook@chromium.org/

Kees Cook (2):
  Introduce flexible array struct helpers
  xfs: Use flex_cpy() to check extent copying

 fs/xfs/xfs_bmap_item.c      |   7 +-
 include/linux/flex_array.h  | 325 ++++++++++++++++++++++++++++++++++++
 include/linux/string.h      |   1 +
 include/uapi/linux/stddef.h |  14 ++
 4 files changed, 344 insertions(+), 3 deletions(-)
 create mode 100644 include/linux/flex_array.h

-- 
2.34.1


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2022-10-26 20:33 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-24 17:20 [PATCH v2 0/2] Introduce flexible array struct helpers Kees Cook
2022-10-24 17:20 ` [PATCH v2 1/2] " Kees Cook
2022-10-24 18:35   ` Keith Packard
2022-10-26 20:33     ` Kees Cook
2022-10-25  6:12   ` kernel test robot
2022-10-25  8:57   ` Andy Shevchenko
2022-10-24 17:20 ` [PATCH 2/2] xfs: Use flex_cpy() to check extent copying Kees Cook
2022-10-25  8:58   ` Andy Shevchenko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox