Re: [PATCH] crypto: nx - annotate struct nx842_crypto_header with __counted_by

From
Herbert Xu <herbert@gondor.apana.org.au>
Date
2026-03-27 10:06:49
Also in
linux-crypto, linux-hardening, lkml
Reply to
Thorsten Blum, 2026-03-17
On Tue, Mar 17, 2026 at 09:18:06PM +0100, Thorsten Blum wrote:
Add the __counted_by() compiler attribute to the flexible array member
'group' to improve access bounds-checking via CONFIG_UBSAN_BOUNDS and
CONFIG_FORTIFY_SOURCE.

Signed-off-by: Thorsten Blum <redacted>
---
 drivers/crypto/nx/nx-842.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Patch applied.  Thanks.
-- 
Email: Herbert Xu [off-list ref]
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
Thread (3 messages) 3 messages, 3 authors, last reply 2026-03-27
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help