Re: [PATCH] NFSD: Annotate struct pnfs_block_deviceaddr with __counted_by()
From: Chuck Lever
Date: Thu Aug 29 2024 - 10:37:35 EST
On Wed, 28 Aug 2024 23:42:55 +0200, Thorsten Blum wrote:
> 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.
>
> [...]
Applied to nfsd-next for v6.12, thanks!
[1/1] NFSD: Annotate struct pnfs_block_deviceaddr with __counted_by()
commit: 7dd2311b21ef121d0ce9f9b2e56d3e42b2534991
--
Chuck Lever