]> git.ipfire.org Git - thirdparty/linux.git/commit
crypto: af_alg - Annotate struct af_alg_iv with __counted_by
authorThorsten Blum <thorsten.blum@linux.dev>
Mon, 5 Jan 2026 12:24:03 +0000 (13:24 +0100)
committerKees Cook <kees@kernel.org>
Wed, 14 Jan 2026 22:43:18 +0000 (14:43 -0800)
commitdacbfc16780837aa3e00c684d89492d211fd809f
treeb54103a881379dd4677d1dbc7db37994df6490c8
parent1d1fd188691242fe4a66f7aca91f39a42425d3e8
crypto: af_alg - Annotate struct af_alg_iv with __counted_by

Add the __counted_by() compiler attribute to the flexible array member
'iv' to improve access bounds-checking via CONFIG_UBSAN_BOUNDS and
CONFIG_FORTIFY_SOURCE.

Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Link: https://patch.msgid.link/20260105122402.2685-2-thorsten.blum@linux.dev
Signed-off-by: Kees Cook <kees@kernel.org>
include/uapi/linux/if_alg.h