diff options
author | Thorsten Blum <thorsten.blum@toblux.com> | 2024-08-14 12:01:28 +0200 |
---|---|---|
committer | Anna Schumaker <anna.schumaker@oracle.com> | 2024-09-23 15:03:12 -0400 |
commit | bb8e4ce500cb09950c2b51a3be0e94e337a215aa (patch) | |
tree | fce7a247c65f89400e27cf1b8a43597bdb2fb678 /fs/nfs/read.c | |
parent | d98f72272500f505cd7e152ffa456e64ee3855f0 (diff) | |
download | lwn-bb8e4ce500cb09950c2b51a3be0e94e337a215aa.tar.gz lwn-bb8e4ce500cb09950c2b51a3be0e94e337a215aa.zip |
nfs: Annotate struct nfs_cache_array with __counted_by()
Add the __counted_by compiler attribute to the flexible array member
array to improve access bounds-checking via CONFIG_UBSAN_BOUNDS and
CONFIG_FORTIFY_SOURCE.
Increment size before adding a new struct to the array.
Signed-off-by: Thorsten Blum <thorsten.blum@toblux.com>
Signed-off-by: Anna Schumaker <anna.schumaker@oracle.com>
Diffstat (limited to 'fs/nfs/read.c')
0 files changed, 0 insertions, 0 deletions