Branch: refs/heads/master
  Home:   https://github.com/tianocore/edk2
  Commit: 0049ac1793c4abd0652652286e5506f52aaaa0d4
      
https://github.com/tianocore/edk2/commit/0049ac1793c4abd0652652286e5506f52aaaa0d4
  Author: Liqi Qi <[email protected]>
  Date:   2026-03-25 (Wed, 25 Mar 2026)

  Changed paths:
    M MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmmRuntimeDxe.c

  Log Message:
  -----------
  MdeModulePkg: VariableSmmRuntimeDxe: Fix MM communicate v3 buffer sizing

This change updates `VariableSmmRuntimeDxe` to correctly size its runtime
communication buffer when `EFI_MM_COMMUNICATION3_PROTOCOL` is present.

In the current flow, the runtime variable path may use MM communication
v3, but the input size is first validated against the global variable
`mVariableBufferPayloadSize`. The size is then validated a second time
during communication buffer initialization using the v3 header size,
which results in `GetVariable` calls with sufficiently large buffers
consistently failing.

This update makes the allocation logic v3‑aware so that the runtime
variable communication buffer matches the header format actually in use,
avoiding failures for larger variable transactions.

Signed-off-by: Kun Qin <[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