]> www.infradead.org Git - linux.git/commit
bcachefs: Annotate struct bucket_array with __counted_by()
authorThorsten Blum <thorsten.blum@toblux.com>
Wed, 21 Aug 2024 16:29:22 +0000 (18:29 +0200)
committerKent Overstreet <kent.overstreet@linux.dev>
Mon, 9 Sep 2024 13:41:47 +0000 (09:41 -0400)
commit8573dd3474e8ec067b3c0c80d591c6de1d94e1e9
treec06edbf4110226a46aec535277496f217ae8f458
parent5396e5af3c1032b659bd6b1c1ec18e8af275a746
bcachefs: Annotate struct bucket_array with __counted_by()

Add the __counted_by compiler attribute to the flexible array member
bucket 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/buckets_types.h