mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-28 16:14:04 +02:00
MdeModulePkg/Core/Dxe: log informative memprotect msgs at DEBUG_INFO level
In commit 7eb927db3e25 ("MdeModulePkg/DxeCore: implement memory protection policy", 2017-02-24), we added two informative messages with the InitializeDxeNxMemoryProtectionPolicy() function: > InitializeDxeNxMemoryProtectionPolicy: applying strict permissions to > active memory regions and > InitializeDxeNxMemoryProtectionPolicy: applying strict permissions to > inactive memory regions The messages don't report errors or warnings, thus downgrade their log masks from DEBUG_ERROR to DEBUG_INFO. Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org> Cc: Eric Dong <eric.dong@intel.com> Cc: Jiewen Yao <jiewen.yao@intel.com> Cc: Liming Gao <liming.gao@intel.com> Cc: Star Zeng <star.zeng@intel.com> Ref: https://bugzilla.redhat.com/show_bug.cgi?id=1520485 Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Laszlo Ersek <lersek@redhat.com> Acked-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Reviewed-by: Star Zeng <star.zeng@intel.com>
This commit is contained in:
parent
cf260a47be
commit
a921228818
@ -831,8 +831,11 @@ InitializeDxeNxMemoryProtectionPolicy (
|
|||||||
} while (Status == EFI_BUFFER_TOO_SMALL);
|
} while (Status == EFI_BUFFER_TOO_SMALL);
|
||||||
ASSERT_EFI_ERROR (Status);
|
ASSERT_EFI_ERROR (Status);
|
||||||
|
|
||||||
DEBUG((DEBUG_ERROR, "%a: applying strict permissions to active memory regions\n",
|
DEBUG ((
|
||||||
__FUNCTION__));
|
DEBUG_INFO,
|
||||||
|
"%a: applying strict permissions to active memory regions\n",
|
||||||
|
__FUNCTION__
|
||||||
|
));
|
||||||
|
|
||||||
MergeMemoryMapForProtectionPolicy (MemoryMap, &MemoryMapSize, DescriptorSize);
|
MergeMemoryMapForProtectionPolicy (MemoryMap, &MemoryMapSize, DescriptorSize);
|
||||||
|
|
||||||
@ -856,9 +859,11 @@ InitializeDxeNxMemoryProtectionPolicy (
|
|||||||
// accessible, but have not been added to the UEFI memory map (yet).
|
// accessible, but have not been added to the UEFI memory map (yet).
|
||||||
//
|
//
|
||||||
if (GetPermissionAttributeForMemoryType (EfiConventionalMemory) != 0) {
|
if (GetPermissionAttributeForMemoryType (EfiConventionalMemory) != 0) {
|
||||||
DEBUG((DEBUG_ERROR,
|
DEBUG ((
|
||||||
|
DEBUG_INFO,
|
||||||
"%a: applying strict permissions to inactive memory regions\n",
|
"%a: applying strict permissions to inactive memory regions\n",
|
||||||
__FUNCTION__));
|
__FUNCTION__
|
||||||
|
));
|
||||||
|
|
||||||
CoreAcquireGcdMemoryLock ();
|
CoreAcquireGcdMemoryLock ();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user