Acidanthera UEFI Development Kit based on EDK II edk2-stable202311
Go to file
Gary Lin bac308be0c SecurityPkg/SecureBootConfigDxe: Declare EFIAPI for the ChooseFile handlers
The SecureBootConfig now uses ChooseFile() from FileExplorerLib
to select the certificates to be enrolled into PK, KEK, DB, DBX,
or DBT, and the corresponding handlers to get the content of the
file. Per the definition of CHOOSE_HANDLER, the handler must use
EFIAPI as the calling convention. However, the calling convention
was not specified the following handlers: UpdatePKFromFile(),
UpdateKEKFromFile(), UpdateDBFromFile(), UpdateDBXFromFile(), and
UpdateDBTFromFile(). When compiling the firmware with gcc, the
default calling convention is not compatible with EFIAPI, so the
handlers interpreted the argument the wrong way and passed the
wrong device path to UpdatePage(), and the system crashed when
the user tried to enroll a certificate into the key database.

This commit specifies the calling convention for those functions
so that gcc can generate the right code.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Gary Lin <glin@suse.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Dandan Bi <dandan.bi@intel.com>
2016-03-24 09:26:46 +01:00
AppPkg
ArmPkg ArmPkg/AArch64Mmu: use correct AP[] bits in ArmClearMemoryRegionReadOnly 2016-03-22 17:32:25 +01:00
ArmPlatformPkg ArmPlatformPkg: PL061: support multiple controller 2016-03-14 13:17:34 +00:00
ArmVirtPkg ArmVirtPkg: PlatformIntelBdsLib: signal gRootBridgesConnectedEventGroupGuid 2016-03-23 17:39:32 +01:00
BaseTools BaseTools: not include the undefined macro in response file 2016-03-23 17:36:09 +08:00
BeagleBoardPkg BeagleBoardPkg: move to ARM version of CpuExceptionHandlerLib 2016-03-17 09:15:06 +01:00
Conf
CorebootModulePkg CorebootModulePkg-CbParseLib: Fix bad reference in CbParseLib 2016-02-26 10:02:41 -08:00
CorebootPayloadPkg FW: [PATCH 3/9] CorebootPayloadPkg/PlatformBdsLib: Fix spelling error 2016-03-07 10:32:47 -08:00
CryptoPkg CryptoPkg: Fix the potential system hang issue 2016-03-15 09:04:20 +08:00
DuetPkg
EdkCompatibilityPkg
EdkShellBinPkg
EdkShellPkg
EmbeddedPkg EmbeddedPkg: enhance for multiple gpio controllers 2016-03-14 12:47:29 +00:00
EmulatorPkg EmulatorPkg: Use UEFI Shell by default 2016-03-02 16:05:16 -08:00
FatBinPkg
IntelFrameworkModulePkg IntelFrameworkModulePkg/LegacyBootMaintUiLib: Refine the code 2016-03-16 10:42:03 +08:00
IntelFrameworkPkg IntelFrameworkPkg/FrameworkUefiLib: implement EfiEventGroupSignal 2016-03-23 12:05:45 +01:00
IntelFspPkg
IntelFspWrapperPkg
MdeModulePkg MdeModulePkg/PciBus: Should reserve enough bus number for HPC 2016-03-24 11:24:30 +08:00
MdePkg MdePkg: Move SMBIOS data into the IndustryStandard header. 2016-03-24 10:30:43 +08:00
NetworkPkg NetworkPkg: Fix HII related problem in HTTP boot driver. 2016-03-24 10:09:47 +08:00
Nt32Pkg Nt32Pkg: Switch the DebugLibReportStatusCode to MdeModulePkg 2016-03-21 11:16:43 +08:00
Omap35xxPkg Omap35xxPkg: drop CpuExceptionHandlerLib library class resolution 2016-03-17 09:15:11 +01:00
OptionRomPkg
OvmfPkg OvmfPkg: PciHostBridgeLib: install 64-bit PCI host aperture 2016-03-23 17:47:31 +01:00
PcAtChipsetPkg
PerformancePkg PerformancePkg/Dp_App: Support execution break 2016-03-08 18:23:49 +08:00
QuarkPlatformPkg
QuarkSocPkg
SecurityPkg SecurityPkg/SecureBootConfigDxe: Declare EFIAPI for the ChooseFile handlers 2016-03-24 09:26:46 +01:00
ShellBinPkg
ShellPkg ShellPkg/UefiShellDebug1CommandsLib: remove unused but set variable 2016-03-24 07:46:18 +01:00
SourceLevelDebugPkg
StdLib
StdLibPrivateInternalFiles
UefiCpuPkg UefiCpuPkg/Include: Add top level MSR include file 2016-03-13 12:00:36 -07:00
UnixPkg
Vlv2DeviceRefCodePkg
Vlv2TbltDevicePkg
.gitignore
BuildNotes2.txt
Edk2Setup.bat
Maintainers.txt
edksetup.bat
edksetup.sh