nfs: Annotate struct pnfs_commit_array with __counted_by()
authorThorsten Blum <thorsten.blum@linux.dev>
Tue, 15 Oct 2024 20:27:31 +0000 (22:27 +0200)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Fri, 8 Nov 2024 19:26:20 +0000 (14:26 -0500)
commite8e26a0b09f5783be471b5ffb1e31822b1272c1d
treeeec1b5f10017b2ee187b93f03d97728e5c5053a4
parent79a66e1465561f7baa3ff3daf79800fc241afeeb
nfs: Annotate struct pnfs_commit_array with __counted_by()

Add the __counted_by compiler attribute to the flexible array member
buckets to improve access bounds-checking via CONFIG_UBSAN_BOUNDS and
CONFIG_FORTIFY_SOURCE.

Compile-tested only.

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
include/linux/nfs_xdr.h