audk/FatPkg/EnhancedFatDxe
Oliver Smith-Denny 58766a4729 FatPkg: Validate Reserved FAT Entries on Volume Open
There are two reserved FAT entries in the FAT filesystem that
are expected to have valid contents in them. Today the FAT drivers
do not validate these entries when reading from a device for the
first time. This can cause infinite loops in the FAT driver when
trying to read corrupted disks as reported in
https://github.com/tianocore/edk2/issues/9679.

This PR follows the recommended update requested in that bug to
check the two reserved FAT entries and validate their contents
against the spec defined values in both FatPei and EnhancedFatDxe
when opening a device for the first time.

Signed-off-by: Oliver Smith-Denny <osde@microsoft.com>
2025-01-21 18:40:11 +00:00
..
ComponentName.c FatPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
Data.c FatPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
Delete.c FatPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
DirectoryCache.c FatPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
DirectoryManage.c FatPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
DiskCache.c FatPkg: Improvements to Fat to Fix File Corruption 2024-09-23 16:50:39 +00:00
Fat.c FatPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
Fat.h FatPkg: Validate Reserved FAT Entries on Volume Open 2025-01-21 18:40:11 +00:00
Fat.inf FatPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:57:59 -07:00
Fat.uni FatPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:57:59 -07:00
FatExtra.uni FatPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:57:59 -07:00
FatFileSystem.h FatPkg: Validate Reserved FAT Entries on Volume Open 2025-01-21 18:40:11 +00:00
FileName.c FatPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
FileSpace.c FatPkg: Validate Reserved FAT Entries on Volume Open 2025-01-21 18:40:11 +00:00
Flush.c FatPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
Hash.c FatPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
Info.c FatPkg: Fix potentially uninitialized variable 2024-10-25 18:48:06 +00:00
Init.c FatPkg: Validate Reserved FAT Entries on Volume Open 2025-01-21 18:40:11 +00:00
Misc.c FatPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
Open.c FatPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
OpenVolume.c FatPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
ReadWrite.c FatPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
UnicodeCollation.c FatPkg/EnhancedFatDxe: Add comments around StrSize() checks 2024-11-27 15:57:08 +00:00