audk/MdeModulePkg/Universal/Acpi/AcpiTableDxe
Ard Biesheuvel f859c6796f MdeModulePkg/AcpiTableDxe: consider version mask when removing tables
Invocations of EFI_ACPI_TABLE_PROTOCOL::UninstallAcpiTable() may
result in a crash when the value of PcdAcpiExposedTableVersions does
not include EFI_ACPI_TABLE_VERSION_1_0B.

The reason is that EFI_ACPI_TABLE_PROTOCOL::InstallAcpiTable() will
only populate the Rsdt1/Rsdt3 pointers when EFI_ACPI_TABLE_VERSION_1_0B
is set, whereas EFI_ACPI_TABLE_PROTOCOL::UninstallAcpiTable() will
invoke PublishTables with EFI_ACPI_TABLE_VERSION_1_0B alawys set,
resulting in a NULL pointer dereference of the Rsdt1/Rsdt3 pointers.

So take PcdAcpiExposedTableVersions into account for UninstallAcpiTable
as well.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Star Zeng <star.zeng@intel.com>
2017-03-21 07:07:01 +00:00
..
AcpiSdt.c MdeModulePkg AcpiTableDxe: Don't uninstall Acpi Sdt Protocol at ReadyToLock 2016-03-04 17:13:53 +08:00
AcpiSdt.h MdeModulePkg AcpiTableDxe: Cover EFI_ACPI_TABLE_VERSION_5_0. 2015-06-17 02:51:47 +00:00
AcpiTable.c Fix VS2003 build error 2010-05-19 06:02:17 +00:00
AcpiTable.h MdeModulePkg AcpiTableDxe: Don't uninstall Acpi Sdt Protocol at ReadyToLock 2016-03-04 17:13:53 +08:00
AcpiTableDxe.inf MdeModulePkg: Add description to MdeModulePkg AcpiTable driver. 2016-04-27 14:41:36 +08:00
AcpiTableDxe.uni MdeModulePkg: Add description to MdeModulePkg AcpiTable driver. 2016-04-27 14:41:36 +08:00
AcpiTableDxeExtra.uni MdeModulePkg: Convert all .uni files to utf-8 2015-12-15 04:56:23 +00:00
AcpiTableProtocol.c MdeModulePkg/AcpiTableDxe: consider version mask when removing tables 2017-03-21 07:07:01 +00:00
Aml.c 1) Add type cast for better coding style. 2014-08-07 08:54:34 +00:00
AmlChild.c Update code to support VS2013 tool chain. 2014-07-28 07:52:57 +00:00
AmlNamespace.c Update code to support VS2013 tool chain. 2014-07-28 07:52:57 +00:00
AmlOption.c MdeModulePkg AcpiTableDxe: Fix a typo in function description 2016-01-06 01:11:25 +00:00
AmlString.c MdeModulePkg: Remove variables that are set, but not used 2011-10-31 15:58:05 +00:00