<feed xmlns='http://www.w3.org/2005/Atom'>
<title>Tianocore/edk2.git/MdeModulePkg/Core, branch dependabot/github_actions/github/codeql-action-4.39.3</title>
<subtitle>EDK II (mirror)</subtitle>
<id>https://git.radix-linux.su/Tianocore/edk2.git/atom?h=dependabot%2Fgithub_actions%2Fgithub%2Fcodeql-action-4.39.3</id>
<link rel='self' href='https://git.radix-linux.su/Tianocore/edk2.git/atom?h=dependabot%2Fgithub_actions%2Fgithub%2Fcodeql-action-4.39.3'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/'/>
<updated>2026-11-06T01:42:08+00:00</updated>
<entry>
<title>MdeModulePkg: Use unsigned memory type bounds checks</title>
<updated>2026-11-06T01:42:08+00:00</updated>
<author>
<name>Mattia Giambirtone</name>
<email>nocturn9x@nocturn9x.space</email>
</author>
<published>2026-11-05T12:16:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=b9d8871d3432048a47371e39f5b7413a40e4a774'/>
<id>urn:sha1:b9d8871d3432048a47371e39f5b7413a40e4a774</id>
<content type='text'>
Some compilers treat EFI_MEMORY_TYPE as signed. OS-reserved memory
types with bit 31 set can therefore pass a signed comparison against
EfiMaxMemoryType and index outside the memory type statistics array.

Cast the memory type to UINT32 before checking the array bound in
CoreTerminateMemoryMap and InternalBuildMemoryAllocationHob, matching
the existing guards in the page, pool, and memory bin code.

Fixes: https://github.com/tianocore/edk2/issues/13451
Signed-off-by: Mattia Giambirtone &lt;nocturn9x@nocturn9x.space&gt;
</content>
</entry>
<entry>
<title>MdeModulePkg: PiSmmCore: Decouple MM core mailbox data</title>
<updated>2026-10-29T03:36:10+00:00</updated>
<author>
<name>Kun Qin</name>
<email>kuqin@microsoft.com</email>
</author>
<published>2022-02-16T20:10:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=3b54a25765919289f1bc38261b6b2bddb7b20a21'/>
<id>urn:sha1:3b54a25765919289f1bc38261b6b2bddb7b20a21</id>
<content type='text'>
Current `gSmmCorePrivate` data used in PiSmmCore is a shared data
structure initialized and used by PiSmmIpl. Thus the content is exposed
to normal DXE environment.

Specifically, `SmmDispatcher` actively uses `gSmmCorePrivate` to
determine dispatch behavior. As a result, the potential attack surface is
exposed from SMM initialization through the SMM Ready-to-Lock event.

This change decouple Core private data from and IPL mailbox at the
entrypoint of each MMI handle routine. It is a preventative fix to
eliminate hot access to gSmmCorePrivate within the SMM core.

Signed-off-by: Kun Qin &lt;kun.qin@microsoft.com&gt;
</content>
</entry>
<entry>
<title>MdeModulePkg/Core/Pei: Test AllocatePages memory reuse</title>
<updated>2026-10-28T15:59:17+00:00</updated>
<author>
<name>Michael D Kinney</name>
<email>michael.d.kinney@intel.com</email>
</author>
<published>2026-10-27T00:08:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=30acc60ed311d9b81dc0d8979a477faafabfda2d'/>
<id>urn:sha1:30acc60ed311d9b81dc0d8979a477faafabfda2d</id>
<content type='text'>
Add a PEI Core host-test target and register it in
MdeModulePkgHostTest.dsc. Cover Temporary Memory reuse after
PeiFreePages(), search suppression without free events, active-range
priority during a pending stack switch, and Permanent Memory top-down
ordering.

Test early best-fit selection, padding-HOB reuse, and aligned 4 KiB,
16 KiB, and 64 KiB allocation. Cover invalid memory types and unrestricted
fallback for out-of-PHIT and adjacent coalesced HOBs. Verify final-fallback
best-fit and HOB-list tie order. Skip padding-HOB integration when runtime
granularity is no larger than default.

Signed-off-by: Michael D Kinney &lt;michael.d.kinney@intel.com&gt;
</content>
</entry>
<entry>
<title>MdeModulePkg/Core/Pei: Gate early page reuse on free events</title>
<updated>2026-10-28T15:59:17+00:00</updated>
<author>
<name>Michael D Kinney</name>
<email>michael.d.kinney@intel.com</email>
</author>
<published>2026-10-01T00:40:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=6351ea3d16f465127b6449b07f1f3ce88295270a'/>
<id>urn:sha1:6351ea3d16f465127b6449b07f1f3ce88295270a</id>
<content type='text'>
Track TemporaryMemoryPagesFreed in PEI_CORE_INSTANCE. Set it after a
successful PeiFreePages() call while PEI uses Temporary Memory or creation
of an alignment-padding HOB, and leave it set after ranges are reused.

When PEI uses Temporary Memory and PeiMemoryInstalled and
SwitchStackSignal are FALSE, search conventional-memory allocation HOBs
before consuming the active top-down range. Select the smallest suitable
HOB, preserve HOB-list order for ties, and merge adjacent free HOBs on
demand when no candidate fits. Share the best-fit helper with the final
unrestricted fallback.

While the stack switch to Permanent Memory is pending, suppress the early
search and use the active physical-memory range first. Preserve Permanent
Memory top-down/bin-first priority and the existing unrestricted fallback.

Signed-off-by: Michael D Kinney &lt;michael.d.kinney@intel.com&gt;
</content>
</entry>
<entry>
<title>MdeModulePkg: Use DUMP_HEX Macro</title>
<updated>2026-10-23T03:44:49+00:00</updated>
<author>
<name>Oliver Smith-Denny</name>
<email>osde@microsoft.com</email>
</author>
<published>2026-10-01T19:38:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=bbbb761e370379aed5d548cd5c044377fee4daaa'/>
<id>urn:sha1:bbbb761e370379aed5d548cd5c044377fee4daaa</id>
<content type='text'>
Several places in MdeModulePkg were implementing their
own versions of hex dumping logic; use the DebugLib.h
macro instead.

Prints change slightly, they are now standardized with
uppercase hex, prefixes on every row instead of in the
header only, and VarCheckHiiLib no longer indents rows
with *ASCII*.

Signed-off-by: Oliver Smith-Denny &lt;osde@microsoft.com&gt;
</content>
</entry>
<entry>
<title>MdeModulePkg/Core: Add resource and GCD verification</title>
<updated>2026-10-22T23:28:02+00:00</updated>
<author>
<name>Aaron Pop</name>
<email>aaronpop@microsoft.com</email>
</author>
<published>2026-10-09T19:58:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=2b92c6d499de9127239b5c1da94c2dcccdd73f0f'/>
<id>urn:sha1:2b92c6d499de9127239b5c1da94c2dcccdd73f0f</id>
<content type='text'>
Add debug verification for Resource Descriptor HOBs. Parse both v1
and v2 Resource Descriptor HOBs, and warn about overlapping ranges.
Check I/O resources separately from memory and MMIO resources.

Print the complete GCD memory space map starting at address zero and
represent any gaps as non-existent memory with

These changes are for debug purposes only. Examining the debug output
will enable a platform owner to view overlapping resource hobs, and
show gaps in the memory map based upon input from the PEI phase.

Signed-off-by: Aaron Pop &lt;aaronpop@microsoft.com&gt;
</content>
</entry>
<entry>
<title>MdeModulePkg/Core: Add EFI_HOB_RESOURCE_DESCRIPTOR2 support</title>
<updated>2026-10-22T23:28:02+00:00</updated>
<author>
<name>Aaron Pop</name>
<email>aaronpop@microsoft.com</email>
</author>
<published>2026-07-28T23:23:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=ae61e3365614c3fbedf19741fbbf6c923a3a3df5'/>
<id>urn:sha1:ae61e3365614c3fbedf19741fbbf6c923a3a3df5</id>
<content type='text'>
Add IS_RESOURCE_DESCRIPTOR_HOB() and GET_RESOURCE_HOB_ATTRIBUTE()
macros to handle both EFI_HOB_TYPE_RESOURCE_DESCRIPTOR and
EFI_HOB_TYPE_RESOURCE_DESCRIPTOR2 HOB types. Resource Descriptor v2
HOBs use ResourceCapabilities instead of ResourceAttribute, so they
cannot be accessed through the same union member.

Update consumers of ResourceDescriptorHobs to understand both
EFI_HOB_TYPE_RESOURCE_DESCRIPTOR and EFI_HOB_TYPE_RESOURCE_DESCRIPTOR2.

Signed-off-by: Aaron Pop &lt;aaronpop@microsoft.com&gt;
</content>
</entry>
<entry>
<title>MdeModulePkg/Core/Dxe/Event: limit signal queue to event groups</title>
<updated>2026-10-13T15:50:00+00:00</updated>
<author>
<name>Sureshkumar Ponnusamy</name>
<email>sponnusamy@microsoft.com</email>
</author>
<published>2026-10-09T22:17:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=e95045e3905fe8242cd6cadb278a67f4febe1218'/>
<id>urn:sha1:e95045e3905fe8242cd6cadb278a67f4febe1218</id>
<content type='text'>
Add only grouped notify events to gEventSignalQueue so event group signaling does not scan unrelated events.

Ungrouped EVT_NOTIFY_SIGNAL events are dispatched directly by CoreSignalEvent() and do not need to be visited by CoreNotifySignalList().

Signed-off-by: Sureshkumar Ponnusamy &lt;sponnusamy@microsoft.com&gt;
</content>
</entry>
<entry>
<title>MdeModulePkg: Use OpenProtocol() for protocol presence check</title>
<updated>2026-10-11T06:58:28+00:00</updated>
<author>
<name>Khalid Ali</name>
<email>khaliidcaliy@gmail.com</email>
</author>
<published>2026-10-08T07:11:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=1a44fc33295d32653fb114e1f1b9b91a81d47239'/>
<id>urn:sha1:1a44fc33295d32653fb114e1f1b9b91a81d47239</id>
<content type='text'>
The function CoreInstallProtocolInterfaceNotify() checks if the protocol
already installed on handle by using HandleProtocol(). And later
HandleProtocol() calls OpenProtocol(). If it is determined that protocol
is present on handle, the protocol is being left open which could leak
internal resources.

This change replaces HandleProtocol() with OpenProtocol() with test
attribute, thus no CloseProtocol() is required.

Signed-off-by: Khalid Ali &lt;khaliidcaliy@gmail.com&gt;
</content>
</entry>
<entry>
<title>MdeModulePkg: DxeIpl: Don't Duplicate Mem Alloc Hob for Stack</title>
<updated>2026-09-03T09:00:37+00:00</updated>
<author>
<name>Oliver Smith-Denny</name>
<email>osde@microsoft.com</email>
</author>
<published>2026-09-02T19:44:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=ee655c4d815231bd0916fbdde7a59f4dfdf0ee9f'/>
<id>urn:sha1:ee655c4d815231bd0916fbdde7a59f4dfdf0ee9f</id>
<content type='text'>
Currently, DxeIpl will allocate memory for the new DXE stack,
which creates a memory allocation HOB for that region. It will
then call UpdateStackHob() to find the stack HOB with the old
stack info and update the memory address/length to correspond
to the new stack. It then creates a new memory allocation HOB
for the old stack region as it needs to remain mapped.

This ends up creating two memory allocation HOBs for the new
stack: a regular memory allocation HOB for the AllocatePages()
call and then the stack HOB (which is a memory allocation HOB
with a special name).

When DXE Core ingests these, it will ignore one of the two HOBs
when it goes to allocate memory. However, this is incorrectly
describing handoff state. There never should be overlapping
memory allocation HOBs.

This commit updates DxeIpl behavior to instead find the old
stack HOB, convert it to a regular memory allocation HOB,
then find the memory allocation HOB for the new stack range
and convert it into the stack HOB.

Signed-off-by: Oliver Smith-Denny &lt;osde@microsoft.com&gt;
</content>
</entry>
</feed>
