Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fat: fix uninitialized field in nostale filehandles
[ Upstream commit fde2497 ] 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: ea3983a ("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]> Signed-off-by: Sasha Levin <[email protected]>
- Loading branch information