aboutsummaryrefslogtreecommitdiff
path: root/kernel/bpf/arraymap.c
diff options
context:
space:
mode:
authorJan Kara <[email protected]>2024-02-05 13:26:26 +0100
committerAndrew Morton <[email protected]>2024-02-22 15:38:55 -0800
commitfde2497d2bc3a063d8af88b258dbadc86bd7b57c (patch)
tree72f26141fa3e1718e512a23724ea55afaad95345 /kernel/bpf/arraymap.c
parenta1fb1c77950fbe47eb4a8f5be303bea4ee753b93 (diff)
fat: fix uninitialized field in nostale filehandles
When fat_encode_fh_nostale() encodes file handle without a parent it stores only first 10 bytes of the file handle. However the length of the file handle must be a multiple of 4 so the file handle is actually 12 bytes long and the last two bytes remain uninitialized. This is not great at we potentially leak uninitialized information with the handle to userspace. Properly initialize the full handle length. Link: https://lkml.kernel.org/r/[email protected] Reported-by: [email protected] Fixes: ea3983ace6b7 ("fat: restructure export_operations") Signed-off-by: Jan Kara <[email protected]> Acked-by: OGAWA Hirofumi <[email protected]> Cc: Amir Goldstein <[email protected]> Cc: <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'kernel/bpf/arraymap.c')
0 files changed, 0 insertions, 0 deletions