]> git.ipfire.org Git - thirdparty/linux.git/commit
ecryptfs: Annotate struct ecryptfs_message with __counted_by
authorThorsten Blum <thorsten.blum@linux.dev>
Mon, 12 Jan 2026 11:53:11 +0000 (12:53 +0100)
committerKees Cook <kees@kernel.org>
Wed, 14 Jan 2026 22:43:19 +0000 (14:43 -0800)
commitcc34c669abe0c198daec20de5185c8187f4b240d
tree9baba02ee3b45860a48e652660e73a73e4a2d95e
parent7583873c31147be9869902e3274e3faa67e06176
ecryptfs: Annotate struct ecryptfs_message with __counted_by

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

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Acked-by: Tyler Hicks <code@tyhicks.com>
Link: https://patch.msgid.link/20260112115314.739612-2-thorsten.blum@linux.dev
Signed-off-by: Kees Cook <kees@kernel.org>
fs/ecryptfs/ecryptfs_kernel.h