Re: [PATCH] VMCI: Annotate struct vmci_handle_arr with __counted_by

From: Kees Cook
Date: Thu Nov 30 2023 - 17:00:19 EST


On Sat, 07 Oct 2023 16:32:34 +0200, Christophe JAILLET wrote:
> Prepare for the coming implementation by GCC and Clang of the __counted_by
> attribute. Flexible array members annotated with __counted_by can have
> their accesses bounds-checked at run-time checking via CONFIG_UBSAN_BOUNDS
> (for array indexing) and CONFIG_FORTIFY_SOURCE (for strcpy/memcpy-family
> functions).
>
>
> [...]

Applied to for-next/hardening, thanks!

[1/1] VMCI: Annotate struct vmci_handle_arr with __counted_by
https://git.kernel.org/kees/c/81c643edd8bd

Take care,

--
Kees Cook