diff options
author | Thorsten Blum <[email protected]> | 2024-08-28 23:42:55 +0200 |
---|---|---|
committer | Chuck Lever <[email protected]> | 2024-09-20 19:31:03 -0400 |
commit | 2869b3a00e202ee8d3d90ab7d88f4057c4bb3135 (patch) | |
tree | 66a6019c086e5a03c8faee6fb80c043fc102bd9a /scripts/generate_rust_analyzer.py | |
parent | d078cbf5c38de83bc31f83c47dcd2184c04a50c7 (diff) |
NFSD: Annotate struct pnfs_block_deviceaddr with __counted_by()
Add the __counted_by compiler attribute to the flexible array member
volumes to improve access bounds-checking via CONFIG_UBSAN_BOUNDS and
CONFIG_FORTIFY_SOURCE.
Use struct_size() instead of manually calculating the number of bytes to
allocate for a pnfs_block_deviceaddr with a single volume.
Signed-off-by: Thorsten Blum <[email protected]>
Reviewed-by: Gustavo A. R. Silva <[email protected]>
Acked-by: Jeff Layton <[email protected]>
Signed-off-by: Chuck Lever <[email protected]>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions