]> www.infradead.org Git - users/jedix/linux-maple.git/commit
crypto: chacha20poly1305 - Annotate struct chachapoly_ctx with __counted_by()
authorThorsten Blum <thorsten.blum@toblux.com>
Mon, 5 Aug 2024 22:11:30 +0000 (00:11 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 17 Aug 2024 05:55:49 +0000 (13:55 +0800)
commit18e2188c4b2069cf52c12344b47b4f7ac982f555
treeda8c1cb66e0333d1d02f990ecc2b94569700e19e
parent2d6213bd592b4731b53ece3492f9d1d18e97eb5e
crypto: chacha20poly1305 - Annotate struct chachapoly_ctx with __counted_by()

Add the __counted_by compiler attribute to the flexible array member
salt to improve access bounds-checking via CONFIG_UBSAN_BOUNDS and
CONFIG_FORTIFY_SOURCE.

Reviewed-by: Kees Cook <kees@kernel.org>
Signed-off-by: Thorsten Blum <thorsten.blum@toblux.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/chacha20poly1305.c