Branch: refs/heads/master
  Home:   https://github.com/tianocore/edk2
  Commit: d145aef952ebbce9464e9f9d177912f6e67bea7f
      
https://github.com/tianocore/edk2/commit/d145aef952ebbce9464e9f9d177912f6e67bea7f
  Author: Michael D Kinney <[email protected]>
  Date:   2025-10-30 (Thu, 30 Oct 2025)

  Changed paths:
    M MdeModulePkg/Core/Dxe/Event/Event.c

  Log Message:
  -----------
  MdeModulePkg/Core/Dxe: Fix TPL inversion from DEBUG() message

PR #11443 introduced a regression by adding a DEBUG() message
when the lock for events is acquired and that lock is at
TPL_HIGH_LEVEL. If DEBUG() messages are routed through Report
Status Code, and the Report Status Code Protocol has not been
located yet, then a call to gBS->LocateProtocol() is made and
that call raises TPL to TPL_NOTIFY which causes a TPL inversion.

The event lock is used to atomically update gEventSignalQueue.
There is no need for the DEBUG() message to within the event
lock scope.

The fix is to scope the event lock to only the InsertHeadList()
call to update gEventSignalQueue.

Signed-off-by: Michael D Kinney <[email protected]>



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