Re: [PATCH 1/1] hardening: simplify CONFIG_CC_HAS_COUNTED_BY

From: Kees Cook
Date: Wed Apr 30 2025 - 14:49:52 EST


On Wed, 30 Apr 2025 20:42:31 +0200, Jan Hendrik Farr wrote:
> Simplifies CONFIG_CC_HAS_COUNTED_BY by removing the build test and
> relying solely on gcc/clang version numbering (GCC_VERSION >= 150100 and
> CLANG_VERSION >= 190103).
>
> The build test was used to allow unreleased gcc 15.0 builds to use the
> __counted_by attribute. Now that gcc 15.1.0 has been released, this is
> not needed anymore. Note: This will disable __counted_by on unreleased
> gcc 15.0 builds.
>
> [...]

Applied to for-next/hardening, thanks!

[1/1] hardening: simplify CONFIG_CC_HAS_COUNTED_BY
https://git.kernel.org/kees/c/788d882e609f

Take care,

--
Kees Cook