[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20240213234023.it.219-kees@kernel.org>
Date: Tue, 13 Feb 2024 15:42:09 -0800
From: Kees Cook <keescook@...omium.org>
To: Jakub Kicinski <kuba@...nel.org>
Cc: Kees Cook <keescook@...omium.org>,
"David S. Miller" <davem@...emloft.net>,
Rasmus Villemoes <linux@...musvillemoes.dk>,
Dan Williams <dan.j.williams@...el.com>,
Keith Packard <keithp@...thp.com>,
Miguel Ojeda <ojeda@...nel.org>,
Alexey Dobriyan <adobriyan@...il.com>,
Dmitry Antipov <dmantipov@...dex.ru>,
"Gustavo A. R. Silva" <gustavoars@...nel.org>,
Eric Dumazet <edumazet@...gle.com>,
Paolo Abeni <pabeni@...hat.com>,
Nathan Chancellor <nathan@...nel.org>,
kernel test robot <lkp@...el.com>,
linux-kernel@...r.kernel.org,
netdev@...r.kernel.org,
linux-hardening@...r.kernel.org
Subject: [PATCH v2 0/2] stddef: Allow attributes to be used when creating flex arrays
v2:
- don't add a new helper, just add __VA_ARGS__ (Rasmus)
v1: https://lore.kernel.org/all/20240210011452.work.985-kees@kernel.org/
Hi,
We're going to have more cases where we need to apply attributes
(e.g. __counted_by) to struct members that have been declared with
DECLARE_FLEX_ARRAY. Add an optional 3rd argument to allow for this and
annotate one such user in linux/in.h.
I kept the acks/reviews since it's effectively the same...
-Kees
Kees Cook (2):
stddef: Allow attributes to be used when creating flex arrays
net/ipv4: Annotate imsf_slist_flex with __counted_by(imsf_numsrc)
include/linux/stddef.h | 6 +++---
include/uapi/linux/in.h | 3 ++-
include/uapi/linux/stddef.h | 10 +++++-----
3 files changed, 10 insertions(+), 9 deletions(-)
--
2.34.1
Powered by blists - more mailing lists