Re: [PATCH][next] crypto: nx - Use static_assert() to check struct sizes

2024-08-17 Thread Herbert Xu
On Thu, Aug 08, 2024 at 04:09:06PM -0600, Gustavo A. R. Silva wrote: > Commit 1e6b251ce175 ("crypto: nx - Avoid -Wflex-array-member-not-at-end > warning") introduced tagged `struct nx842_crypto_header_hdr`. We want > to ensure that when new members need to be added to the flexible > structure, they

Re: [PATCH][next] crypto: qat - Use static_assert() to check struct sizes

2024-08-17 Thread Herbert Xu
On Thu, Aug 08, 2024 at 04:05:26PM -0600, Gustavo A. R. Silva wrote: > Commit 140e4c85d540 ("crypto: qat - Avoid -Wflex-array-member-not-at-end > warnings") introduced tagged `struct qat_alg_buf_list_hdr`. We want to > ensure that when new members need to be added to the flexible structure, > they

Re: [PATCH v2] crypto: chacha20poly1305 - Annotate struct chachapoly_ctx with __counted_by()

2024-08-17 Thread Herbert Xu
On Tue, Aug 06, 2024 at 12:11:30AM +0200, Thorsten Blum wrote: > 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 > Signed-off-by: Thorsten Blum > --- > Ch