]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ext4: annotate struct fname with __counted_by()
authorThorsten Blum <thorsten.blum@linux.dev>
Tue, 5 Nov 2024 10:18:14 +0000 (11:18 +0100)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 13 Nov 2024 17:56:48 +0000 (12:56 -0500)
commitde183b2baf90f0acc1854a3998c14b8b228f9643
treee05f6ed8caf2a394a11085750ef6c5825abbcb43
parent2bd9077b6261b8f1281d0fa74d51afe090319263
ext4: annotate struct fname with __counted_by()

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

Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Link: https://patch.msgid.link/20241105101813.10864-2-thorsten.blum@linux.dev
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/dir.c