audk/MdeModulePkg/Universal/Disk/RamDiskDxe
Hao Wu 38c9fbdcaa MdeModulePkg/RamDiskDxe: Restrict on RAM disk size (CVE-2018-12180)
REF:https://bugzilla.tianocore.org/show_bug.cgi?id=1134

Originally, the block size of created Ram disks is hard-coded to 512
bytes. However, if the total size of the Ram disk is not a multiple of 512
bytes, there will be potential memory access issues when dealing with the
last block of the Ram disk.

This commit will adjust the block size of the Ram disks to ensure that the
total size is a multiple of the block size.

Cc: Jian J Wang <jian.j.wang@intel.com>
Cc: Star Zeng <star.zeng@intel.com>
Cc: Laszlo Ersek <lersek@redhat.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Hao Wu <hao.a.wu@intel.com>
Reviewed-by: Ray Ni <ray.ni@intel.com>
2019-02-28 08:15:51 +08:00
..
RamDisk.asl MdeModulePkg RamDiskDxe: Report ACPI NFIT for reserved memory RAM disks 2016-05-10 08:45:11 +08:00
RamDiskBlockIo.c MdeModulePkg/RamDiskDxe: Restrict on RAM disk size (CVE-2018-12180) 2019-02-28 08:15:51 +08:00
RamDiskDriver.c MdeModulePkg/RamDiskDxe: fix C string literal catenation in info messages 2017-03-20 11:06:36 +01:00
RamDiskDxe.inf MdeModulePkg/RamDiskDxe: replace OpenFileByDevicePath() with UefiLib API 2018-08-16 20:02:50 +02:00
RamDiskDxe.uni
RamDiskFileExplorer.c MdeModulePkg/RamDiskDxe: replace OpenFileByDevicePath() with UefiLib API 2018-08-16 20:02:50 +02:00
RamDiskHii.vfr MdeModulePkg/RamDiskDxe: Add Memory Type selection support in Ramdisk HII 2016-06-12 11:11:37 +08:00
RamDiskHiiStrings.uni MdeModulePkg/RamDiskDxe: Add Memory Type selection support in Ramdisk HII 2016-06-12 11:11:37 +08:00
RamDiskImpl.c MdeModulePkg/RamDiskDxe: replace OpenFileByDevicePath() with UefiLib API 2018-08-16 20:02:50 +02:00
RamDiskImpl.h MdeModulePkg/RamDiskDxe: Restrict on RAM disk size (CVE-2018-12180) 2019-02-28 08:15:51 +08:00
RamDiskNVData.h MdeModulePkg/RamDiskDxe: Add Memory Type selection support in Ramdisk HII 2016-06-12 11:11:37 +08:00
RamDiskProtocol.c MdeModulePkg/RamDiskDxe: Restrict on RAM disk size (CVE-2018-12180) 2019-02-28 08:15:51 +08:00