Branch: refs/heads/master
  Home:   https://github.com/tianocore/edk2
  Commit: ce61d5f327d54f34e3937ffe0c75efefdd5d9195
      
https://github.com/tianocore/edk2/commit/ce61d5f327d54f34e3937ffe0c75efefdd5d9195
  Author: Joey Vagedes <[email protected]>
  Date:   2026-01-14 (Wed, 14 Jan 2026)

  Changed paths:
    M MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
    M MdeModulePkg/Library/DxeReportStatusCodeLib/ReportStatusCodeLib.c

  Log Message:
  -----------
  MdeModulePkg: DxeReportStatusCodeLib: Do not query protocol

This commit stops the library from querying the protocol database for
the status code protocol at the time of library function use. This logic
can result in a TPL inversion if the protocol has not yet been cached
and the caller is calling the library function when the TPL is higher
then TPL_NOTIFY.

Instead, the protocol is now located during the constructor of the
library. If the protocol is not found, then an on-protocol install event
is registered which will cache the protocol. A destructor is also added
to close the event in the scenario that the driver is unloaded before
the protocol is installed.

Signed-off-by: Joey Vagedes <[email protected]>


  Commit: 3fe8cad23cede8e3c0d82a8ddb275427dcaccbef
      
https://github.com/tianocore/edk2/commit/3fe8cad23cede8e3c0d82a8ddb275427dcaccbef
  Author: Joey Vagedes <[email protected]>
  Date:   2026-01-14 (Wed, 14 Jan 2026)

  Changed paths:
    M MdeModulePkg/Library/DxeReportStatusCodeLib/ReportStatusCodeLib.c
    M MdeModulePkg/Library/RuntimeDxeReportStatusCodeLib/ReportStatusCodeLib.c

  Log Message:
  -----------
  MdeModulePkg: RuntimeDxeReportStatusCodeLib: Do not query protocol

This commit stops the library from querying the protocol database for
the status code protocol at the time of library function use. This logic
can result in a TPL inversion if the protocol has not yet been cached
and the caller is calling the library function when the TPL is higher
then TPL_NOTIFY.

Instead, the protocol is now located during the constructor of the
library. If the protocol is not found, then an on-protocol install event
is registered which will cache the protocol. A destructor is also added
to close the event in the scenario that the driver is unloaded before
the protocol is installed.

Signed-off-by: Joey Vagedes <[email protected]>


  Commit: 0ab766c6b6ef76d6f4278c6ce7c0ca7cf446a641
      
https://github.com/tianocore/edk2/commit/0ab766c6b6ef76d6f4278c6ce7c0ca7cf446a641
  Author: Joey Vagedes <[email protected]>
  Date:   2026-01-14 (Wed, 14 Jan 2026)

  Changed paths:
    A 
MdeModulePkg/Library/DxeReportStatusCodeLib/GoogleTest/DxeReportStatusCodeLibGoogleTest.cpp
    A 
MdeModulePkg/Library/DxeReportStatusCodeLib/GoogleTest/DxeReportStatusCodeLibGoogleTest.inf
    M MdeModulePkg/Test/MdeModulePkgHostTest.dsc

  Log Message:
  -----------
  MdeModulePkg: Add unit tests for DxeReportStatusCodeLib

This commit adds a host based unit test for DxeReportStatusCodeLib
that ensures that the platform cannot invert the TPL on an initial
call to ReportStatusCode functionality.

Signed-off-by: Joey Vagedes <[email protected]>


Compare: https://github.com/tianocore/edk2/compare/1588d5b9f011...0ab766c6b6ef

To unsubscribe from these emails, change your notification settings at 
https://github.com/tianocore/edk2/settings/notifications


_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to