summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2013-09-18Sync patch r14678 from main trunk.vanjeff5-1/+79
Export one interface to support 3rd party to change question attribute, such as hide/gray out. git-svn-id: https://svn.code.sf.net/p/edk2/code/branches/UDK2010.SR1@14684 6f19259b-4bc3-4df7-8a09-765794883524
2013-09-18Sync patch r14674 from main trunk.vanjeff4-11/+53
1. Read 32bit CPU Init APIC ID from CPUID leaf B in XAPIC mode. 2. Read CPU APIC ID from CPUID leaf B in case CPU Init APIC ID is larger 255 in XAPIC mode. git-svn-id: https://svn.code.sf.net/p/edk2/code/branches/UDK2010.SR1@14683 6f19259b-4bc3-4df7-8a09-765794883524
2013-09-16Sync patches r14657 and r14659 from main trunk.vanjeff6-45/+105
1. MdeModulePkg/NvmExpressDxe: Fix some bugs 1) The Queue size field in create I/O submission/completion queue cmds is 0-based. the current code is 1-based. 2) A typo on allocated memory page size. it's inconsistent that some places is using 4 pages, but a place is using 6 pages. 3) A typo on PRP/SGL mechanism judgment. should directly use Psdt field rather than Opc field. 4) Some platforms may not support UINT64 width access on MMIO register. Fix it to use two 32-bit width access. 2. Update BGRT image buffer to be stored in EfiBootSerivesData according to ACPI5.0 spec. git-svn-id: https://svn.code.sf.net/p/edk2/code/branches/UDK2010.SR1@14670 6f19259b-4bc3-4df7-8a09-765794883524
2013-09-11Sync patch r14544 from main trunk.vanjeff2-3/+23
Add NVM Express related definition. git-svn-id: https://svn.code.sf.net/p/edk2/code/branches/UDK2010.SR1@14658 6f19259b-4bc3-4df7-8a09-765794883524
2013-09-11Sync patch r14386 from main trunk.vanjeff6-58/+76
Move the memory allocation and variable set to BdsEntry, use VariableLock protocol to lock the L”PerfDataMemAddr” variable and prevent malware to update it. git-svn-id: https://svn.code.sf.net/p/edk2/code/branches/UDK2010.SR1@14654 6f19259b-4bc3-4df7-8a09-765794883524
2013-09-11Sync part of patch r14607 from main trunk.vanjeff2-3/+14
1. Change default PCD in SecurityPkg to 4 (DENY_EXECUTE) in DEC file. 2. ASSERT if PCD value is set to 5 (QUERY_USER_ON_SECURITY_VIOLATION). git-svn-id: https://svn.code.sf.net/p/edk2/code/branches/UDK2010.SR1@14652 6f19259b-4bc3-4df7-8a09-765794883524
2013-09-11Sync patches r14257, r14372, r14377, r14378, r14396, r14425, r14463, r14464, ↵vanjeff36-114/+1142
r14536, r14590 and r14619 from main trunk. 1. Update secure boot UI driver to handle "reset to default" hot key. 2. Add EDKII_VARIABLE_LOCK_PROTOCOL and the implementation in MdeModulePkg variable drivers. Add code in BdsDxe driver to call the protocol to mark the read-only variables defined in the UEFI Spec. 3. Remove the complex buffer since the _LOCK_VARIABLE won't be allowed after leaving DXE phase. Add the variable name size check in the RequestToLock wrapper. 4. Add the EDKII_VARIABLE_LOCK_PROTOCOL implementation in SecurityPkg variable drivers. 5. Fix overflow issue in TcgProtocol. 6. The list of locked variables is traversed at runtime, hence we must convert the list when transferring from physical to virtual mode. 7. MdeModulePkg: Add the alignment check for FTW spare area address and length, and add the check for PcdFlashNvStorageVariableSize <= PcdFlashNvStorageFtwSpareSize. 8. SecurityPkg Variable: Add the check for PcdFlashNvStorageVariableSize <= PcdFlashNvStorageFtwSpareSize. 9. Change EFI_TCG_EVENT_HOB_GUID value to avoid the duplicated GUID value with EFI_LEGACY_BIOS_GUID. 10. Fix a bug in secure boot configuration driver: Enroll DB/KEK will disable Attempt Secure Boot option. 11. Enhance TPM driver to protect TPM physical presence flags. git-svn-id: https://svn.code.sf.net/p/edk2/code/branches/UDK2010.SR1@14651 6f19259b-4bc3-4df7-8a09-765794883524
2013-09-11Sync patches r14146, r14398, r14471, r14476, r14520, r14521, r14545, r14574 ↵vanjeff25-109/+6115
and r14623 from main trunk. 1. Add new HiiLib API HiiCreateGotoExOpCode() to create UEFI231 IFR REF, REF2, REF3, and REF4 opcode. 2. Use right LBA to get the backed up WorkSpace in spare block. 3. Change the PcdSrIovSystemPageSize from type of [PcdFixedAtBuild] to [PcdFixedAtBuild, PcdsPatchableInModule, PcdDynamic, PcdDynamicEx] so that it’s runtime. 4. MdeModulePkg PartitionDxe: Ensure the NumberOfPartitionEntries * SizeOfPartitionEntry doesn't overflow. 5. MdeMdeModulePkg/Scsi: Enlarge SCSI cmd timeout to a more reasonable experience value to cover more devices. 6. MdeMdeModulePkg/NvmExpressDxe: Add NVM Express support. 7. Remove several ASSERT in XhciDxe to allow error status happen then do error handling. 8. Fixed the issue in PeiCore on Load Module At Fixed Address logic. git-svn-id: https://svn.code.sf.net/p/edk2/code/branches/UDK2010.SR1@14650 6f19259b-4bc3-4df7-8a09-765794883524
2013-09-11Sync patch of patch r14465 from main trunk.vanjeff5-5/+40
Add defines for MAX values for UEFI data types. git-svn-id: https://svn.code.sf.net/p/edk2/code/branches/UDK2010.SR1@14649 6f19259b-4bc3-4df7-8a09-765794883524
2013-09-10Sync patch r14498 from main trunk.vanjeff1-6/+5
Fix PciHostBridge driver to return success for EfiPciHostBridgeEndEnumeration to fix OVMF boot no display issue. git-svn-id: https://svn.code.sf.net/p/edk2/code/branches/UDK2010.SR1@14645 6f19259b-4bc3-4df7-8a09-765794883524
2013-09-10Sync patch r14450 from main trunk.vanjeff1-0/+1
Fix a bug in Mtftp6 retransmission mechanism of the ACK. git-svn-id: https://svn.code.sf.net/p/edk2/code/branches/UDK2010.SR1@14644 6f19259b-4bc3-4df7-8a09-765794883524
2013-09-10Sync part of patches r14505, r14519 and r14558 from main trunk.vanjeff56-3365/+188
1. Update all the code to consume the ConvertDevicePathToText, ConvertDevicePathNodeToText, ConvertTextToDevicePath and ConvertTextToDeviceNode APIs in DevicePathLib. 2. OvmfPkg: Use the new DevicePathLib for all platforms. git-svn-id: https://svn.code.sf.net/p/edk2/code/branches/UDK2010.SR1@14643 6f19259b-4bc3-4df7-8a09-765794883524
2013-09-10Sync patches r14496, r14497, r14504, r14548, r14549, r14550 and r14554 from ↵vanjeff33-1828/+7730
main trunk. 1. Fixed the issue that BitFieldWrite32, BitFieldAnd32, BitFieldOr32, BitFieldAndThenOr32 with StartBit==0 and EndBit== 31 will hang in debug tip. 2. Add 4 APIs to DevicePathLib: ConvertDeviceNodeToText, ConvertDevicePathToText, ConvertTextToDeviceNode and ConvertTextToDevicePath. Add a new instance of DevicePathLib which tries to locate the protocol and if it's not found, it uses the internal functions. 3. Add I2C related definition in PI 1.3 spec. Add I2C bus DXE driver and I2C host DXE driver following PI 1.3 spec. 4. MdePkg/IndustryStandard: Update Atapi.h to comply with latest ATA8-ACS spec (d2015r7). git-svn-id: https://svn.code.sf.net/p/edk2/code/branches/UDK2010.SR1@14642 6f19259b-4bc3-4df7-8a09-765794883524
2013-09-10Sync patch r14528 from main trunk.vanjeff3-6/+22
Enhance error handling code after calling BIO_new in BaseCryptLib. git-svn-id: https://svn.code.sf.net/p/edk2/code/branches/UDK2010.SR1@14641 6f19259b-4bc3-4df7-8a09-765794883524
2013-09-10Sync missing part of r14541 from main trunk.vanjeff1-0/+1
Update OVMF platform to use new display engine and browser. git-svn-id: https://svn.code.sf.net/p/edk2/code/branches/UDK2010.SR1@14640 6f19259b-4bc3-4df7-8a09-765794883524
2013-09-10Sync patches r14541 and r14542 from main trunk.vanjeff11-0/+16
Update platforms to use new display engine and browser. git-svn-id: https://svn.code.sf.net/p/edk2/code/branches/UDK2010.SR1@14639 6f19259b-4bc3-4df7-8a09-765794883524
2013-09-10Sync patches r14112, r14540 and r14543 from main trunk.vanjeff28-8782/+12329
1. Based on the feature PCD value, browser will decide whether to gray out the read only menu. 2. Update Browser to provide the customization possibilities. 3. Refine the code logic for browser and display engine. git-svn-id: https://svn.code.sf.net/p/edk2/code/branches/UDK2010.SR1@14638 6f19259b-4bc3-4df7-8a09-765794883524
2013-09-10Sync patches r14044, r14046 and r14510 from main trunk.vanjeff2-3/+5
1. Use EFI_IFR_TYPE_VALUE type variable instead of UINT64 to avoid buffer overflow. 2. Clean the flag before use it to avoid use old error value. git-svn-id: https://svn.code.sf.net/p/edk2/code/branches/UDK2010.SR1@14637 6f19259b-4bc3-4df7-8a09-765794883524
2013-09-10Sync patch r14036 from main trunk.vanjeff3-7/+10
Base on the type field to get the width of value field for option opcode. git-svn-id: https://svn.code.sf.net/p/edk2/code/branches/UDK2010.SR1@14636 6f19259b-4bc3-4df7-8a09-765794883524
2013-09-10Sync patch r13667 from main trunk.vanjeff6-0/+204
Set correct DS/ES/FS/GS/SS segment selectors after GDT loaded. git-svn-id: https://svn.code.sf.net/p/edk2/code/branches/UDK2010.SR1@14635 6f19259b-4bc3-4df7-8a09-765794883524
2013-09-10Sync patch r14626 from main trunk.vanjeff1-12/+16
Update edksetup.bat to check VS2012. git-svn-id: https://svn.code.sf.net/p/edk2/code/branches/UDK2010.SR1@14634 6f19259b-4bc3-4df7-8a09-765794883524
2013-09-10Copy EDKII trunk BaseTools r14591 to UDK2010.SR1 Branch.vanjeff716-0/+314933
git-svn-id: https://svn.code.sf.net/p/edk2/code/branches/UDK2010.SR1@14633 6f19259b-4bc3-4df7-8a09-765794883524
2013-09-10Delete old BaseTools from UDK2010.SR1 Branch.vanjeff711-311887/+0
git-svn-id: https://svn.code.sf.net/p/edk2/code/branches/UDK2010.SR1@14632 6f19259b-4bc3-4df7-8a09-765794883524
2013-05-23Rollback patches r14294 and r14296 from UDK2010.SR1 Branch.vanjeff2-3/+3
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/branches/UDK2010.SR1@14385 6f19259b-4bc3-4df7-8a09-765794883524
2013-05-22Check DHCP Server Binding protocol in Supported().vanjeff2-3/+28
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/branches/UDK2010.SR1@14384 6f19259b-4bc3-4df7-8a09-765794883524
2013-05-22Sync patch r14379 from main trunk.vanjeff6-26/+53
Fix the TOCTOU issue of CommBufferSize itself for SMM communicate handler input. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/branches/UDK2010.SR1@14382 6f19259b-4bc3-4df7-8a09-765794883524
2013-05-21Sync patch r14380 from main trunk.vanjeff2-1/+160
When finish using the browser storage for one formset, browser should clean the ConfigRequest string for this formset. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/branches/UDK2010.SR1@14381 6f19259b-4bc3-4df7-8a09-765794883524
2013-05-18Sync patches r14373 and r14375 from main trunk.vanjeff4-71/+35
1. Pop up error message when user tries to enroll an invalid certificate file into KEK/DB/DBX. 2. Fix a bug that 'SecureBoot' varaible will be updated to NV+AT attribute incorrectly. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/branches/UDK2010.SR1@14376 6f19259b-4bc3-4df7-8a09-765794883524
2013-05-17Sync patches r14369 and r14370 from main trunk.vanjeff8-101/+395
1. Separate memory allocation for FPDT S3 performance table and boot performance table, save S3 performance table pointer to LockBox in FirmwarePerformanceDxe. Then FirmwarePerformancePei can use the pointer in LockBox. 2. Update the logic about get initial value for one storage. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/branches/UDK2010.SR1@14371 6f19259b-4bc3-4df7-8a09-765794883524
2013-05-15Sync patch r14354 from main trunk.vanjeff1-3/+4
Fix bug in PXE driver: memory may be freed before use. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/branches/UDK2010.SR1@14363 6f19259b-4bc3-4df7-8a09-765794883524
2013-05-10Sync patch r14338 and r14339 from main trunk.vanjeff2-17/+20
1. MdeMdeModulePkg/UsbBusDxe: Break device enumeration process if the device descriptor includes 0 configuration. 2. MdeMdeModulePkg/Xhci: Clear BIOS_OWN semaphore before halting XHCI controller. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/branches/UDK2010.SR1@14341 6f19259b-4bc3-4df7-8a09-765794883524
2013-05-10Sync patch r14335 from main trunk.vanjeff1-1/+9
Check if video device exists before trying to install Video OpROM. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/branches/UDK2010.SR1@14340 6f19259b-4bc3-4df7-8a09-765794883524
2013-05-09Sync patches r14306, r14324 and r14328 from main trunk.vanjeff2-28/+127
1. Add security check. 2. Read/Write memory space including MMIO range with the width requested from HOST. 3. Updated connecting HOST version information from 1.3 to 1.3.1. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/branches/UDK2010.SR1@14334 6f19259b-4bc3-4df7-8a09-765794883524
2013-05-09Sync patches r13975, r14029, r14041, r14065, r14084, r14086 and r14139 from ↵vanjeff8-200/+903
main trunk. 1. Move the declaration of gEfiCertDbGuid to the package's Include folder. 2. Don't assume that flush the HOB variable to flash must be successful. 3. When no DELETED variable found, no variable space could be reclaimed, so just give some debug info and return EFI_SUCCESS. 4. Fix a bug that the invalid public key will never be removed from public key database. 5. a. Update the logic of UpdateVariable() for updating variable from: set old variable to IN_DELETED_TRANSITION -> check if reclaim is needed(If yes, do reclaim) -> add new variable -> set old variable to DELETED if no reclaim happened. to: set old variable to IN_DELETED_TRANSITION -> check if reclaim is needed(If yes, do reclaim) -> add new variable -> set old variable to DELETED. b. Update UpdateVariable() to correctly handle the case "both ADDED and IN_DELETED_TRANSITION variable are present", and delete both old ADDED and IN_DELETED_TRANSITION variable when deleting or updating variable. c. Update VariableServiceGetNextVariableName() to return the valid IN_DELETED_TRANSITION variable if only IN_DELETED_TRANSITION variable is present. 6. Check for NULL pointer before dereference it. 7. Add error handling code to prevent variable store corruption in release build. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/branches/UDK2010.SR1@14333 6f19259b-4bc3-4df7-8a09-765794883524
2013-05-09Sync patches r13691, r13703, r13704, r13909, r13957, r14039, r14079, r14082, ↵vanjeff40-197/+453
r14115, r14165, r14256, r14259, r14294 adn r14296 from main trunk. 1. Should pass in bytes of string buffer to UnicodeSPrint() rather than Unicode string length. 2. Check the return code from CoreLocateDevicePath() in MdeModulePkg/Core/Dxe/Image/Image.c CoreLoadImageCommon(). 3. Fix the memory leak issue and enhance the check for CoreReadImageFile return. 4. MdeModulePkg: eliminate all implicit library dependencies for all modules in MdeModulePkg on PcdLib. 5. SecurityPkg update: a. Correct the counter-based hash algorithm according to UEFI spec. b. Check the reserverd bit in variable attribute. c. Return EFI_OUT_OF_RESOURCE instead of EFI_SECURITY_VIOLATION if there is not enough speace to store the public key. d. Fix a bug when deleting a non-existent time-based auth variable, we store the certificate into cert DB incorrectly. e. Fix a bug that time-based auth variable can't been updated again after append operation. 6. Fix several RFC compliance issues in DHCP6 driver as below. a. Client must ignore any Advertise message that includes a Status Code option containing the value NoAddrsAvail. b. The elapsed-time should start from the current DHCP transaction. c. Client should not change any information about addresses the client has recorded in the IA but not included in the IA from the server. d. Client need to update to handle the error status code UnspecFail/UseMulticast/NotOnLink/NoBinding in the Reply message from server. e. When the client receives a Reply message in response to a Renew/ Rebind message, the client examines each IA independently. For each IA in the original Renew/ Rebind message, the client sends a Renew/ Rebind if the IA is not in the Reply message. f. Client should uses network byte order in IANA T1/T2 option 7. Client should discard any addresses for which the preferred lifetime is greater than the valid lifetime. 7. Fix infinite loop bug in secure boot UI driver. 8. Fix a bug in snp driver binding Start() that it may return incorrect status code. 9. Fix a bug that IsSignatureFoundInDatabase() incorrectly computes CertCount. 10.Fix several bugs in the implementation of converting SAS/SASEX device path node from/to text. 11.Add transit bit check for detecting partial response in iSCSI stack. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/branches/UDK2010.SR1@14331 6f19259b-4bc3-4df7-8a09-765794883524
2013-05-09Sync patches r13208, r13473, r13563, r13638, r13642, r13647, r13650 and ↵vanjeff11-38/+206
r13656 from main trunk. 1. MdeModulePkg PiSmmCore: Fix a bug in SmmLoadImage() in PiSmmCore that in-correct status codes may be returned. 2. Check whether has storage for date/time opcode, if it has storage, also generate the offset/width info for it. 3. Close the corresponding GUIDed section extraction protocol notify event in CloseSectionStream. 4. Fix incorrect sizeof () usage. 5. Add missing break and add comment to non-necessary break. 6. IntelFrameworkModulePkg/IdeBusDxe: Add error check on the return status of invoking AtaSoftReset(). 7. Enhance the code to make the code logic more clear. 8. Initialize the variable before use it. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/branches/UDK2010.SR1@14330 6f19259b-4bc3-4df7-8a09-765794883524
2013-05-09Sync patch r14325 from main trunk.vanjeff9-191/+315
1. Fix TOCTOU issue in VariableSmm, FtwSmm, FpdtSmm, SmmCorePerformance SMM handler. For VariableSmm, pre-allocate a mVariableBufferPayload buffer with mVariableBufferPayloadSize(match with mVariableBufferPayloadSize in VariableSmmRuntimeDxe) to hold communicate buffer payload to avoid TOCTOU issue. 2. Add check to ensure CommBufferPayloadSize not exceed mVariableBufferPayloadSize or is enough to hold function structure in VariableSmm and FtwSmm. 3. Align FtwGetLastWrite() in FaultTolerantWriteSmmDxe.c to FtwGetLastWrite() in FaultTolerantWrite.c. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/branches/UDK2010.SR1@14329 6f19259b-4bc3-4df7-8a09-765794883524
2013-05-08Sync patches r14315 and r14323 from main trunk.vanjeff13-572/+1681
1. Update dual network stack drivers to produce multiple Driver Binding Protocol. 2. Fix memory overflow & VariableSize check issue for SetVariable append write. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/branches/UDK2010.SR1@14327 6f19259b-4bc3-4df7-8a09-765794883524
2013-04-28Sync patches r14276, r14305 and r14317 from main trunk.vanjeff13-88/+452
1. Fix SMM Variable driver stack GetVariable return INVALID_PARAMETER when DataSize is bigger than SMM communication buffer. 2. Fix potential overflow for SetVariable interface. 3. Use the check IsAddressValid() to prevent SMM communication buffer overflow in SmmVariable, FtwSmm, FpdtSmm, SmmCorePerformance and SmmBaseHelper, and add check to prevent InfoSize overflows in SmmVariableHandler. 4. Add check to make sure the input VariableName is A Null-terminated string. 5. Use local variable to hold StrSize (VariableName) to avoid duplicated StrSize calculation. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/branches/UDK2010.SR1@14322 6f19259b-4bc3-4df7-8a09-765794883524
2013-04-28Sync patches r14027, r14312, r14314 and r14318 from main trunk.vanjeff7-31/+153
1. MdeModulePkg/AtaAtapiPassThru: Not set AhciCmdC bit of CommandList when doing transaction as AHCI spec say this bit is only used to do soft reset. 2. Mallicious code may use SmmFaultTolerantWriteHandler() to update some flash area directly, like Variable region, so return EFI_ACCESS_DENIED after End Of Dxe in SmmFaultTolerantWriteHandler(). And add code to prevent InfoSize overflow. 3. Fix ping command issue in IP4 driver. 4. Fix the bug which incorrectly programs the 64bit base address register in the PCI to PCI bridge. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/branches/UDK2010.SR1@14321 6f19259b-4bc3-4df7-8a09-765794883524
2013-04-28Sync patches r14307, r14308 and r14311 from main trunk.vanjeff1-72/+133
Enhance InitializeLanguage() to set PcdUefiVariableDefaultPlatformLang to PlatformLang variable if the value of PlatformLang variable has been set an unsupported value(not one of PlatformLangCodes variable), and assert when default (Platform)Lang PCD value is not set to one of (Platform)LangCodes PCD value. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/branches/UDK2010.SR1@14320 6f19259b-4bc3-4df7-8a09-765794883524
2013-04-27Sync patches r13958, r14026 and r14309 from main trunk.vanjeff10-208/+84
1. Fix issue that RsaPkcs1Verify() may not work in PEI phase. 2. Enable the whole X509v3 extension checking. 3. Replace d2i_X509_bio with d2i_X509. 4. The openssl API RSA_public_decrypt() and RSA_private_encrypt() are deprecated, use RSA_sign(), RSA_verify() instead. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/branches/UDK2010.SR1@14319 6f19259b-4bc3-4df7-8a09-765794883524
2013-04-20Sync patches r14285, r14302 and r14303 from main trunk.vanjeff4-23/+79
1. Allocate ACPImemoryNVS type memory to save mailbox and debug port handle buffer since original allocated pool memory may be marked as free by DXE Core. 2. Add CPU arch type in Mailbox, debug agent will not access HOB if CPU arch changed. 3. Updated DxeDebugAgentLib instance to copy DebugPortHandler buffer into allocated ACPIMemoryNVS besides the mailbox. 4. Remove deprecated SendingPacket from mailbox. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/branches/UDK2010.SR1@14304 6f19259b-4bc3-4df7-8a09-765794883524
2013-04-19Sync patch r14292 from main trunk.vanjeff2-0/+26
Fix a potential SMM memory dump issue. If pass communication buffer with DataBuffer to SMM SetVariable which is big enough to cover SMM range. Then GetVariable can dump SMM memory contents. Add more range check for SetVariable git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/branches/UDK2010.SR1@14301 6f19259b-4bc3-4df7-8a09-765794883524
2013-04-19Sync patch r13930 from main trunk.vanjeff8-31/+190
Build the registered guid HOB and SystemTable to record the GUID itself in PeiExtractGuidedSectionLib and DxeExtractGuidedSectionLib, and also state the restriction in BaseExtractGuidedSectionLib. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/branches/UDK2010.SR1@14300 6f19259b-4bc3-4df7-8a09-765794883524
2013-04-19Sync patches r13470, r13477, r13518, r13545, r13954, r13763 and r14145 from ↵vanjeff7-32/+318
main trunk. 1. MdeModulePkg PI SMM Core: Unregister handler for SMM Ready To Lock event in SmmReadyToLockHandler() at first call so that it won't be invoked again. 2. Add more SMRAM range check to 3 SMI handler. 3. Add SMRAM range check to fault tolerant write SMM SMI handler. 4. Add more security check for CommBuffer+CommBufferSize. 5. Add more exact SMM check in SmmFaultTolerantWriteHandler. 6. In order to make sure the image is section alignment, after allocate buffer for TE image, it will adjust the base address. But it has two potential issues: One is the start address may not section alignment, second is the buffer is not bigger enough to do the adjustment. This patch fixes these two issues. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/branches/UDK2010.SR1@14299 6f19259b-4bc3-4df7-8a09-765794883524
2013-04-19Sync patch r13472 from main trunk.vanjeff2-29/+97
EdkCompatibilityPkg SmmBaseHelper: In SmmHandlerEntry(), add check to ensure CommBuff+CommBuffSize is outside of SMRAM. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/branches/UDK2010.SR1@14298 6f19259b-4bc3-4df7-8a09-765794883524
2013-04-19Sync patches r13657, r13665, r13715, r13716, r13954, r13961, r13962, r13972, ↵vanjeff3-234/+403
r13973, r13985 and r14024 from main trunk. 1. Enhance the check when ImageRead function return. 2. Enhance the check for some fields in the PE image before use it. 3. Enhance the check for debug data before get the PdbPointer. 4. Enhance the check for resource section data. 5. Enhance the check for RelocBase->SizeOfBlock before use it. 6. Checks the TE image before use it. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/branches/UDK2010.SR1@14297 6f19259b-4bc3-4df7-8a09-765794883524
2013-04-19Roll back the change made by r14293.tye11-2/+2
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/branches/UDK2010.SR1@14295 6f19259b-4bc3-4df7-8a09-765794883524
2013-04-19Add transit bit check for detecting partial response in iSCSI stack.tye11-2/+2
Signed-off-by: Ye Ting <ting.ye@intel.com> Reviewed-by: Fu Siyuan <siyuan.fu@intel.com> Reviewed-by: Tian Feng <feng.tian@intel.com> git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/branches/UDK2010.SR1@14293 6f19259b-4bc3-4df7-8a09-765794883524