diff options
| author | Thorsten Blum <thorsten.blum@linux.dev> | 2025-11-08 13:07:40 +0100 |
|---|---|---|
| committer | Herbert Xu <herbert@gondor.apana.org.au> | 2025-11-14 18:15:49 +0800 |
| commit | 6cf32607555da7ef99005ff0d73f3d8597cbbd04 (patch) | |
| tree | fd543d24b30e47494bd9506c915a68d9a58efb3b /kernel/locking/rtmutex_api.c | |
| parent | af3852cda347a72335c7625f92b29d31495aeeda (diff) | |
crypto: zstd - Annotate struct zstd_ctx with __counted_by
Add the __counted_by() compiler attribute to the flexible array member
'wksp' to improve access bounds-checking via CONFIG_UBSAN_BOUNDS and
CONFIG_FORTIFY_SOURCE.
Use struct_size(), which provides additional compile-time checks for
structures with flexible array members (e.g., __must_be_array()), for
the allocation size for a new 'zstd_ctx' while we're at it.
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'kernel/locking/rtmutex_api.c')
0 files changed, 0 insertions, 0 deletions
