]> www.infradead.org Git - users/jedix/linux-maple.git/commit
smb: Annotate struct xattr_smb_acl with __counted_by()
authorThorsten Blum <thorsten.blum@toblux.com>
Fri, 23 Aug 2024 11:47:05 +0000 (13:47 +0200)
committerSteve French <stfrench@microsoft.com>
Fri, 30 Aug 2024 01:28:36 +0000 (20:28 -0500)
commit8d8d244726c8436c50f84092616c92bf551ea89a
treecbf109cf82a8c3724b586197c9e83abf51de5066
parent780bdc1ba77646c3461f1988b12c42c60f836d77
smb: Annotate struct xattr_smb_acl with __counted_by()

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

Signed-off-by: Thorsten Blum <thorsten.blum@toblux.com>
Acked-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/server/xattr.h