diff options
author | Wei6 Xu <wei6.xu@intel.com> | 2023-10-30 10:20:48 +0800 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2023-12-19 09:29:07 +0000 |
commit | c0122840489194215a9209bb37f406f44c416953 (patch) | |
tree | ca6c3f69506d0e214804d1a2cdd04ac676617019 /StandaloneMmPkg/Core/Dispatcher.c | |
parent | 74daeded0cabe87d26546f07f9a3911cb60ec0e1 (diff) | |
download | edk2-c0122840489194215a9209bb37f406f44c416953.tar.gz edk2-c0122840489194215a9209bb37f406f44c416953.tar.bz2 edk2-c0122840489194215a9209bb37f406f44c416953.zip |
StandaloneMmPkg/Core: Limit FwVol encapsulation section recursion
MmCoreFfsFindMmDriver() is called recursively for encapsulation sections.
Currently this recursion is not limited. Introduce a new PCD
(fixed-at-build, or patchable-in-module), and make MmCoreFfsFindMmDriver()
track the section nesting depth against that PCD.
Cc: Laszlo Ersek <lersek@redhat.com>
Cc: Ard Biesheuvel <ardb+tianocore@kernel.org>
Cc: Sami Mujawar <sami.mujawar@arm.com>
Cc: Ray Ni <ray.ni@intel.com>
Signed-off-by: Wei6 Xu <wei6.xu@intel.com>
Reviewed-by: Ray Ni <ray.ni@intel.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Diffstat (limited to 'StandaloneMmPkg/Core/Dispatcher.c')
-rw-r--r-- | StandaloneMmPkg/Core/Dispatcher.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/StandaloneMmPkg/Core/Dispatcher.c b/StandaloneMmPkg/Core/Dispatcher.c index b1ccba15b0..7b4a3c4c55 100644 --- a/StandaloneMmPkg/Core/Dispatcher.c +++ b/StandaloneMmPkg/Core/Dispatcher.c @@ -53,11 +53,6 @@ typedef struct { // Function Prototypes
//
-EFI_STATUS
-MmCoreFfsFindMmDriver (
- IN EFI_FIRMWARE_VOLUME_HEADER *FwVolHeader
- );
-
/**
Insert InsertedDriverEntry onto the mScheduledQueue. To do this you
must add any driver with a before dependency on InsertedDriverEntry first.
|