public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [edk2-devel] [edk2-stable202402 PATCH 0/2] UefiCpuPkg/PiSmmCpuDxeSmm: fix NULL deref when gSmmBaseHobGuid is missing
@ 2024-02-13 21:09 Laszlo Ersek
  2024-02-13 21:09 ` [edk2-devel] [edk2-stable202402 PATCH 1/2] UefiCpuPkg/PiSmmCpuDxeSmm: distinguish GetSmBase() failure modes Laszlo Ersek
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Laszlo Ersek @ 2024-02-13 21:09 UTC (permalink / raw)
  To: devel
  Cc: Dun Tan, Gerd Hoffmann, Liming Gao, Michael D Kinney, Rahul Kumar,
	Ray Ni

Bugzilla: https://bugzilla.tianocore.org/show_bug.cgi?id=4682

Personal CI run (in progress):
https://github.com/tianocore/edk2/pull/5370

Commit 725acd0b9cc0 ("UefiCpuPkg: Avoid assuming only one smmbasehob",
2023-12-12) introduced a NULL pointer dereference to PiSmmCpuDxeSmm on
such platforms that do not produce the "gSmmBaseHobGuid" GUID HOB at
all.

Please see the multi-step analysis in the following thread:

  [edk2-devel] [PATCH 1/1] OvmfPkg/QemuVideoDxe: purge VbeShim
  https://edk2.groups.io/g/devel/message/115377
  message-id: <20240213085925.687848-1-kraxel@redhat.com>

This issue needs to be fixed for edk2-stable202402.

Cc: Dun Tan <dun.tan@intel.com>
Cc: Gerd Hoffmann <kraxel@redhat.com>
Cc: Liming Gao <gaoliming@byosoft.com.cn>
Cc: Michael D Kinney <michael.d.kinney@intel.com>
Cc: Rahul Kumar <rahul1.kumar@intel.com>
Cc: Ray Ni <ray.ni@intel.com>

Best regards,
Laszlo

Laszlo Ersek (2):
  UefiCpuPkg/PiSmmCpuDxeSmm: distinguish GetSmBase() failure modes
  UefiCpuPkg/PiSmmCpuDxeSmm: fix NULL deref when gSmmBaseHobGuid is
    missing

 UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.c | 47 +++++++++++++++-----
 1 file changed, 35 insertions(+), 12 deletions(-)


base-commit: 8801c75b4d77c2e6e06b3ddc8560e0db590f6342


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#115416): https://edk2.groups.io/g/devel/message/115416
Mute This Topic: https://groups.io/mt/104341340/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-



^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2024-02-19  9:12 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-13 21:09 [edk2-devel] [edk2-stable202402 PATCH 0/2] UefiCpuPkg/PiSmmCpuDxeSmm: fix NULL deref when gSmmBaseHobGuid is missing Laszlo Ersek
2024-02-13 21:09 ` [edk2-devel] [edk2-stable202402 PATCH 1/2] UefiCpuPkg/PiSmmCpuDxeSmm: distinguish GetSmBase() failure modes Laszlo Ersek
2024-02-13 21:35   ` Laszlo Ersek
2024-02-14  3:43     ` Michael D Kinney
2024-02-14 11:22       ` Laszlo Ersek
2024-02-14 13:08       ` Leif Lindholm
2024-02-14 17:26         ` Michael D Kinney
2024-02-15  8:44           ` Laszlo Ersek
2024-02-19  9:12             ` duntan
2024-02-13 21:09 ` [edk2-devel] [edk2-stable202402 PATCH 2/2] UefiCpuPkg/PiSmmCpuDxeSmm: fix NULL deref when gSmmBaseHobGuid is missing Laszlo Ersek
2024-02-14  9:01 ` [edk2-devel] [edk2-stable202402 PATCH 0/2] " Gerd Hoffmann
2024-02-14  9:40   ` rahul.r.kumar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox