]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bcachefs: Annotate struct bch_xattr with __counted_by()
authorThorsten Blum <thorsten.blum@toblux.com>
Sat, 24 Aug 2024 13:57:41 +0000 (15:57 +0200)
committerKent Overstreet <kent.overstreet@linux.dev>
Mon, 9 Sep 2024 13:41:49 +0000 (09:41 -0400)
commit86e92eeeb23741a072fe7532db663250ff2e726a
tree218ae66165c2e8a5360f8bd29b619e5ea3066e15
parent2c6a7bff2a2eb2d7f183fbe1e9800ae278f415c7
bcachefs: Annotate struct bch_xattr with __counted_by()

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

Signed-off-by: Thorsten Blum <thorsten.blum@toblux.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/xattr_format.h