netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] stddef: Allow attributes to be used when creating flex arrays
@ 2024-02-13 23:42 Kees Cook
  2024-02-13 23:42 ` [PATCH v2 1/2] " Kees Cook
  2024-02-13 23:42 ` [PATCH v2 2/2] net/ipv4: Annotate imsf_slist_flex with __counted_by(imsf_numsrc) Kees Cook
  0 siblings, 2 replies; 4+ messages in thread
From: Kees Cook @ 2024-02-13 23:42 UTC (permalink / raw)
  To: Jakub Kicinski
  Cc: Kees Cook, David S. Miller, Rasmus Villemoes, Dan Williams,
	Keith Packard, Miguel Ojeda, Alexey Dobriyan, Dmitry Antipov,
	Gustavo A. R. Silva, Eric Dumazet, Paolo Abeni, Nathan Chancellor,
	kernel test robot, linux-kernel, netdev, linux-hardening

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


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

end of thread, other threads:[~2024-06-08 16:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-13 23:42 [PATCH v2 0/2] stddef: Allow attributes to be used when creating flex arrays Kees Cook
2024-02-13 23:42 ` [PATCH v2 1/2] " Kees Cook
2024-06-08 16:26   ` Vincent Mailhol
2024-02-13 23:42 ` [PATCH v2 2/2] net/ipv4: Annotate imsf_slist_flex with __counted_by(imsf_numsrc) Kees Cook

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).