[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <174604858214.2106605.8316005070173016427.b4-ty@kernel.org>
Date: Wed, 30 Apr 2025 14:29:44 -0700
From: Kees Cook <kees@...nel.org>
To: "Gustavo A. R. Silva" <gustavoars@...nel.org>
Cc: Kees Cook <kees@...nel.org>,
linux-hardening@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2 0/2][next] Add STACK_FLEX_ARRAY_SIZE() helper
On Tue, 22 Apr 2025 15:04:48 -0600, Gustavo A. R. Silva wrote:
> Add new STACK_FLEX_ARRAY_SIZE() helper to get the size of a
> flexible-array member defined using DEFINE_FLEX()/DEFINE_RAW_FLEX()
> at compile time.
>
> This is essentially the same as ARRAY_SIZE() but for on-stack
> flexible-array members.
>
> [...]
Applied to for-next/hardening, thanks!
[1/2] overflow: Add STACK_FLEX_ARRAY_SIZE() helper
https://git.kernel.org/kees/c/9cc4498acf3e
[2/2] kunit/overflow: Add tests for STACK_FLEX_ARRAY_SIZE() helper
https://git.kernel.org/kees/c/90961958f48f
Take care,
--
Kees Cook
Powered by blists - more mailing lists