aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext4/page-io.c
diff options
context:
space:
mode:
authorThorsten Blum <[email protected]>2024-10-18 12:14:21 +0000
committerChristian Brauner <[email protected]>2024-10-22 09:16:59 +0000
commit8c6e03ffedc5463d1aa1ba89f6ceb082518a3520 (patch)
tree0ca5dd6c019d96f55cfd7ff9ec1cc0369f1c5460 /fs/ext4/page-io.c
parentacl: Realign struct posix_acl to save 8 bytes (diff)
downloadkernel-8c6e03ffedc5463d1aa1ba89f6ceb082518a3520.tar.gz
kernel-8c6e03ffedc5463d1aa1ba89f6ceb082518a3520.zip
acl: Annotate struct posix_acl with __counted_by()
Add the __counted_by compiler attribute to the flexible array member a_entries to improve access bounds-checking via CONFIG_UBSAN_BOUNDS and CONFIG_FORTIFY_SOURCE. Use struct_size() to calculate the number of bytes to allocate for new and cloned acls and remove the local size variables. Change the posix_acl_alloc() function parameter count from int to unsigned int to match posix_acl's a_count data type. Add identifier names to the function definition to silence two checkpatch warnings. Reviewed-by: Jan Kara <[email protected]> Signed-off-by: Thorsten Blum <[email protected]> Link: https://lore.kernel.org/r/[email protected] Cc: Nathan Chancellor <[email protected]> Signed-off-by: Christian Brauner <[email protected]>
Diffstat (limited to 'fs/ext4/page-io.c')
0 files changed, 0 insertions, 0 deletions