path: root/fs/fat
diff options
authorKees Cook <>2022-01-19 18:09:47 -0800
committerLinus Torvalds <>2022-01-20 08:52:54 +0200
commite35fa567a082a7547a4ec21e50a27eecf38961aa (patch)
treec9cc3f5d75f49a69cdd730b5254ead6331297b81 /fs/fat
parente1ce8a97befa98566f49acb99c79cc233cf3a703 (diff)
hfsplus: use struct_group_attr() for memcpy() region
In preparation for FORTIFY_SOURCE performing compile-time and run-time field bounds checking for memset(), avoid intentionally writing across neighboring fields. Add struct_group() to mark the "info" region (containing struct DInfo and struct DXInfo structs) in struct hfsplus_cat_folder and struct hfsplus_cat_file that are written into directly, so the compiler can correctly reason about the expected size of the writes. "pahole" shows no size nor member offset changes to struct hfsplus_cat_folder nor struct hfsplus_cat_file. "objdump -d" shows no object code changes. Link: Signed-off-by: Kees Cook <> Acked-by: Christian Brauner <> Cc: Zhen Lei <> Signed-off-by: Andrew Morton <> Signed-off-by: Linus Torvalds <>
Diffstat (limited to 'fs/fat')
0 files changed, 0 insertions, 0 deletions