Re: [PATCH 1/1] Compiler Attributes: disable __counted_by for clang < 19.1.3
From: Kees Cook
Date: Tue Nov 19 2024 - 12:29:19 EST
On Tue, 29 Oct 2024 15:00:36 +0100, Jan Hendrik Farr wrote:
> This patch disables __counted_by for clang versions < 19.1.3 because
> of the two issues listed below. It does this by introducing
> CONFIG_CC_HAS_COUNTED_BY.
>
> 1. clang < 19.1.2 has a bug that can lead to __bdos returning 0:
> https://github.com/llvm/llvm-project/pull/110497
>
> [...]
Applied to for-next/hardening, thanks!
[1/1] Compiler Attributes: disable __counted_by for clang < 19.1.3
https://git.kernel.org/kees/c/f06e108a3dc5
Take care,
--
Kees Cook