| From: |
| Kees Cook <keescook-AT-chromium.org> |
| To: |
| "Darrick J . Wong" <djwong-AT-kernel.org> |
| Subject: |
| [PATCH v2 0/2] Introduce flexible array struct helpers |
| Date: |
| Mon, 24 Oct 2022 10:20:56 -0700 |
| Message-ID: |
| <20221024171848.never.522-kees@kernel.org> |
| Cc: |
| Kees Cook <keescook-AT-chromium.org>, "Gustavo A. R. Silva" <gustavoars-AT-kernel.org>, Keith Packard <keithp-AT-keithp.com>, Francis Laniel <laniel_francis-AT-privacyrequired.com>, Daniel Axtens <dja-AT-axtens.net>, Dan Williams <dan.j.williams-AT-intel.com>, Vincenzo Frascino <vincenzo.frascino-AT-arm.com>, Guenter Roeck <linux-AT-roeck-us.net>, Daniel Vetter <daniel.vetter-AT-ffwll.ch>, Tadeusz Struk <tadeusz.struk-AT-linaro.org>, Zorro Lang <zlang-AT-redhat.com>, Geert Uytterhoeven <geert-AT-linux-m68k.org>, Andy Shevchenko <andriy.shevchenko-AT-intel.com>, Paolo Abeni <pabeni-AT-redhat.com>, linux-kernel-AT-vger.kernel.org, linux-xfs-AT-vger.kernel.org, linux-hardening-AT-vger.kernel.org |
| Archive-link: |
| Article |
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-kees...
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