Re: [PATCH RESEND] fs/xattr: Annotate struct simple_xattr with __counted_by

From: Kees Cook

Date: Mon Jan 12 2026 - 17:30:16 EST


On Mon, 05 Jan 2026 13:20:53 +0100, Thorsten Blum wrote:
> Add the __counted_by() compiler attribute to the flexible array member
> 'value' to improve access bounds-checking via CONFIG_UBSAN_BOUNDS and
> CONFIG_FORTIFY_SOURCE.
>
>

Applied to for-next/hardening, thanks!

[1/1] fs/xattr: Annotate struct simple_xattr with __counted_by
https://git.kernel.org/kees/c/f2c5457dadec

Take care,

--
Kees Cook