From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.ispras.ru (mail.ispras.ru [83.149.199.45]) by mx.groups.io with SMTP id smtpd.web10.14601.1589211683762075206 for ; Mon, 11 May 2020 08:41:24 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: ispras.ru, ip: 83.149.199.45, mailfrom: cheptsov@ispras.ru) Received: from localhost.localdomain (unknown [77.232.9.83]) by mail.ispras.ru (Postfix) with ESMTPSA id 2B744CD464; Mon, 11 May 2020 18:41:21 +0300 (MSK) From: "Vitaly Cheptsov" To: devel@edk2.groups.io Cc: Andrew Fish , Mike Kinney , =?UTF-8?q?Marvin=20H=C3=A4user?= , Liming Gao , Zhichao Gao , Laszlo Ersek Subject: [PATCH V4 00/27] Disabling safe string constraint assertions Date: Mon, 11 May 2020 18:40:54 +0300 Message-Id: <20200511154121.3878-1-cheptsov@ispras.ru> X-Mailer: git-send-email 2.24.2 (Apple Git-127) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: Andrew Fish Cc: Mike Kinney Cc: Marvin H=C3=A4user Cc: Liming Gao Cc: Zhichao Gao CC: Laszlo Ersek This changesest hopefully finally resolves the longstanding https://bugzilla.tianocore.org/show_bug.cgi?id=3D2054 Requesting to merge into edk2-stable202005. Vitaly Cheptsov (27): MdePkg: Introduce DebugCommonLib interface and BaseDebugCommonLib UnitTestFrameworkPkg: Add support for DebugCommonLib MdePkg: Add support for DebugCommonLib MdeModulePkg: Add support for DebugCommonLib ArmPkg: Add support for DebugCommonLib ArmPlatformPkg: Add support for DebugCommonLib ArmVirtPkg: Add support for DebugCommonLib CryptoPkg: Add support for DebugCommonLib DynamicTablesPkg: Add support for DebugCommonLib EmbeddedPkg: Add support for DebugCommonLib EmulatorPkg: Add support for DebugCommonLib FatPkg: Add support for DebugCommonLib FmpDevicePkg: Add support for DebugCommonLib IntelFsp2Pkg: Add support for DebugCommonLib IntelFsp2WrapperPkg: Add support for DebugCommonLib OvmfPkg: Add support for DebugCommonLib NetworkPkg: Add support for DebugCommonLib ShellPkg: Add support for DebugCommonLib SecurityPkg: Add support for DebugCommonLib PcAtChipsetPkg: Add support for DebugCommonLib SignedCapsulePkg: Add support for DebugCommonLib SourceLevelDebugPkg: Add support for DebugCommonLib StandaloneMmPkg: Add support for DebugCommonLib UefiCpuPkg: Add support for DebugCommonLib UefiPayloadPkg: Add support for DebugCommonLib MdePkg: Introduce assertion on constraint debug mask bit MdePkg: Use assertion on constraint violation bit in SafeString ArmPkg/ArmPkg.dsc = | 1 + ArmPkg/Drivers/ArmCrashDumpDxe/ArmCrashDumpDxe.dsc = | 1 + ArmPkg/Library/SemiHostingDebugLib/DebugLib.c = | 84 ---------- ArmPkg/Library/SemiHostingDebugLib/SemiHostingDebugLib.inf = | 3 +- ArmPlatformPkg/ArmPlatformPkg.dsc = | 1 + ArmVirtPkg/ArmVirt.dsc.inc = | 1 + CryptoPkg/CryptoPkg.dsc = | 2 + DynamicTablesPkg/DynamicTablesPkg.dsc = | 1 + EmbeddedPkg/EmbeddedPkg.dsc = | 1 + EmulatorPkg/EmulatorPkg.dsc = | 1 + FatPkg/FatPkg.dsc = | 1 + FmpDevicePkg/FmpDevicePkg.dsc = | 1 + IntelFsp2Pkg/IntelFsp2Pkg.dsc = | 1 + IntelFsp2Pkg/Library/BaseFspDebugLibSerialPort/BaseFspDebugLibSerialPort= .inf | 1 + IntelFsp2Pkg/Library/BaseFspDebugLibSerialPort/DebugLib.c = | 97 ----------- IntelFsp2WrapperPkg/IntelFsp2WrapperPkg.dsc = | 1 + MdeModulePkg/Library/PeiDebugLibDebugPpi/DebugLib.c = | 100 ------------ MdeModulePkg/Library/PeiDebugLibDebugPpi/PeiDebugLibDebugPpi.inf = | 1 + MdeModulePkg/Library/PeiDxeDebugLibReportStatusCode/DebugLib.c = | 98 ----------- MdeModulePkg/Library/PeiDxeDebugLibReportStatusCode/PeiDxeDebugLibReport= StatusCode.inf | 1 + MdeModulePkg/MdeModulePkg.dsc = | 1 + MdePkg/Include/Library/BaseLib.h = | 120 +++++++------- MdePkg/Include/Library/DebugCommonLib.h = | 172 ++++++++++++++++++++ MdePkg/Include/Library/DebugLib.h = | 155 +++--------------- MdePkg/Library/BaseDebugCommonLib/BaseDebugCommonLib.inf = | 39 +++++ MdePkg/Library/BaseDebugCommonLib/BaseDebugCommonLib.uni = | 16 ++ MdePkg/Library/BaseDebugCommonLib/DebugCommonLib.c = | 133 +++++++++++++++ MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf = | 10 ++ MdePkg/Library/BaseDebugLibNull/DebugLib.c = | 98 ----------- MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf = | 1 + MdePkg/Library/BaseDebugLibSerialPort/DebugLib.c = | 98 ----------- MdePkg/Library/BaseLib/BaseLib.inf = | 1 + MdePkg/Library/BaseLib/SafeString.c = | 2 +- MdePkg/Library/DxeRuntimeDebugLibSerialPort/DebugLib.c = | 98 ----------- MdePkg/Library/DxeRuntimeDebugLibSerialPort/DxeRuntimeDebugLibSerialPort= .inf | 1 + MdePkg/Library/UefiDebugLibConOut/DebugLib.c = | 98 ----------- MdePkg/Library/UefiDebugLibConOut/UefiDebugLibConOut.inf = | 1 + MdePkg/Library/UefiDebugLibDebugPortProtocol/DebugLib.c = | 99 ----------- MdePkg/Library/UefiDebugLibDebugPortProtocol/UefiDebugLibDebugPortProtoc= ol.inf | 1 + MdePkg/Library/UefiDebugLibStdErr/DebugLib.c = | 98 ----------- MdePkg/Library/UefiDebugLibStdErr/UefiDebugLibStdErr.inf = | 1 + MdePkg/MdePkg.dec = | 6 +- MdePkg/MdePkg.dsc = | 1 + MdePkg/MdePkg.uni = | 3 +- NetworkPkg/NetworkPkg.dsc = | 1 + OvmfPkg/Library/PlatformDebugLibIoPort/DebugLib.c = | 98 ----------- OvmfPkg/Library/PlatformDebugLibIoPort/PlatformRomDebugLibIoPort.inf = | 1 + OvmfPkg/OvmfPkgIa32.dsc = | 1 + OvmfPkg/OvmfPkgIa32X64.dsc = | 1 + OvmfPkg/OvmfPkgX64.dsc = | 1 + OvmfPkg/OvmfXen.dsc = | 1 + PcAtChipsetPkg/PcAtChipsetPkg.dsc = | 1 + SecurityPkg/SecurityPkg.dsc = | 1 + ShellPkg/ShellPkg.dsc = | 1 + SignedCapsulePkg/SignedCapsulePkg.dsc = | 1 + SourceLevelDebugPkg/SourceLevelDebugPkg.dsc = | 1 + StandaloneMmPkg/StandaloneMmPkg.dsc = | 1 + UefiCpuPkg/UefiCpuPkg.dsc = | 1 + UefiPayloadPkg/UefiPayloadPkgIa32.dsc = | 1 + UefiPayloadPkg/UefiPayloadPkgIa32X64.dsc = | 1 + UnitTestFrameworkPkg/Library/Posix/DebugLibPosix/DebugLibPosix.c = | 94 ----------- UnitTestFrameworkPkg/Library/Posix/DebugLibPosix/DebugLibPosix.inf = | 1 + UnitTestFrameworkPkg/UnitTestFrameworkPkgHost.dsc.inc = | 1 + UnitTestFrameworkPkg/UnitTestFrameworkPkgTarget.dsc.inc = | 1 + 64 files changed, 501 insertions(+), 1360 deletions(-) create mode 100644 MdePkg/Include/Library/DebugCommonLib.h create mode 100644 MdePkg/Library/BaseDebugCommonLib/BaseDebugCommonLib.= inf create mode 100644 MdePkg/Library/BaseDebugCommonLib/BaseDebugCommonLib.= uni create mode 100644 MdePkg/Library/BaseDebugCommonLib/DebugCommonLib.c --=20 2.24.2 (Apple Git-127)