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

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 a new ..._ATTR helper to allow for this and
annotate one such user in linux/in.h.

-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      | 16 ++++++++++++++--
 include/uapi/linux/in.h     |  3 ++-
 include/uapi/linux/stddef.h | 25 +++++++++++++++++++------
 3 files changed, 35 insertions(+), 9 deletions(-)

-- 
2.34.1


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

end of thread, other threads:[~2024-02-13 23:20 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-10  1:16 [PATCH 0/2] stddef: Allow attributes to be used when creating flex arrays Kees Cook
2024-02-10  1:16 ` [PATCH 1/2] " Kees Cook
2024-02-10  3:47   ` Gustavo A. R. Silva
2024-02-13  7:22   ` Rasmus Villemoes
2024-02-13 23:20     ` Kees Cook
2024-02-10  1:16 ` [PATCH 2/2] net/ipv4: Annotate imsf_slist_flex with __counted_by(imsf_numsrc) Kees Cook
2024-02-10  3:48   ` Gustavo A. R. Silva
2024-02-13  1:35   ` Jakub Kicinski

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