ovl: Annotate struct ovl_entry with __counted_by()
authorThorsten Blum <thorsten.blum@linux.dev>
Sat, 3 May 2025 13:25:36 +0000 (15:25 +0200)
committerMiklos Szeredi <mszeredi@redhat.com>
Mon, 5 May 2025 10:49:20 +0000 (12:49 +0200)
commit6f9ccdad0feaef58b05f07e0fc9d31004147177c
treed2c031bc02c3993e5a5e61724e71f34e5ac3221f
parent7314166ee7592513c77cfbb8ff579f376039f9c4
ovl: Annotate struct ovl_entry with __counted_by()

Add the __counted_by() compiler attribute to the flexible array member
'__lowerstack' to improve access bounds-checking via CONFIG_UBSAN_BOUNDS
and CONFIG_FORTIFY_SOURCE.

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/overlayfs/ovl_entry.h