android_kernel_motorola_sm6375/fs/fat
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Jan Kara f52d7663a1 fat: fix uninitialized field in nostale filehandles
[ Upstream commit fde2497d2bc3a063d8af88b258dbadc86bd7b57c ]

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: ea3983ace6 ("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]>
2024-04-13 12:51:23 +02:00
..
cache.c
dir.c
fat.h
fatent.c
file.c
inode.c
Kconfig
Makefile
misc.c
namei_msdos.c
namei_vfat.c
nfs.c fat: fix uninitialized field in nostale filehandles 2024-04-13 12:51:23 +02:00