Re: [PATCH v2] uapi: stddef.h: Provide UAPI macros for __counted_by_{le, be}

From: Kees Cook
Date: Wed May 08 2024 - 03:46:15 EST


On Tue, 07 May 2024 19:33:18 +0200, Erick Archer wrote:
> This commit can be considered an addition to commit ca7e324e8ad3
> ("compiler_types: add Endianness-dependent __counted_by_{le,be}") [1].
>
> In the commit referenced above the __counted_by_{le,be}() attributes
> were defined based on platform's endianness with the goal to that the
> structures contain flexible arrays at the end, and the counter for,
> can be annotated with these attributes.
>
> [...]

Applied to for-next/hardening, thanks!

[1/1] uapi: stddef.h: Provide UAPI macros for __counted_by_{le, be}
https://git.kernel.org/kees/c/6d305cbef1aa

Take care,

--
Kees Cook