Skip to content

Commit f8ced3e

Browse files
committed
Add StackCheckLib Instances to Platform DSC Files (#446)
## Description An instance of StackCheckLib must be in each DSC to accommodate -fstack-protector and /GS flags. - [x] Impacts functionality? - **Functionality** - Does the change ultimately impact how firmware functions? - Examples: Add a new library, publish a new PPI, update an algorithm, ... - [ ] Impacts security? - **Security** - Does the change have a direct security impact on an application, flow, or firmware? - Examples: Crypto algorithm change, buffer overflow fix, parameter validation improvement, ... - [ ] Breaking change? - **Breaking change** - Will anyone consuming this change experience a break in build or boot behavior? - Examples: Add a new library class, move a module to a different repo, call a function in a new library class in a pre-existing module, ... - [ ] Includes tests? - **Tests** - Does the change include any explicit test code? - Examples: Unit tests, integration tests, robot tests, ... - [ ] Includes documentation? - **Documentation** - Does the change contain explicit documentation additions outside direct code modifications (and comments)? - Examples: Update readme file, add feature readme file, link to documentation on an a separate Web page, ... ## How This Was Tested Tested in pipelines ## Integration Instructions N/A
1 parent 280aa76 commit f8ced3e

File tree

11 files changed

+11
-7
lines changed

11 files changed

+11
-7
lines changed

AdvLoggerPkg/AdvLoggerPkg.dsc

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
UnitTestLib|UnitTestFrameworkPkg/Library/UnitTestLib/UnitTestLib.inf
6161

6262
MmUnblockMemoryLib|MdePkg/Library/MmUnblockMemoryLib/MmUnblockMemoryLibNull.inf
63-
63+
NULL|MdePkg/Library/StackCheckLibNull/StackCheckLibNull.inf
6464

6565
[LibraryClasses.common.UEFI_APPLICATION]
6666
UnitTestPersistenceLib|UnitTestFrameworkPkg/Library/UnitTestPersistenceLibSimpleFileSystem/UnitTestPersistenceLibSimpleFileSystem.inf

HidPkg/HidPkg.dsc

+1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
HiiLib |MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf
4040
UefiHiiServicesLib |MdeModulePkg/Library/UefiHiiServicesLib/UefiHiiServicesLib.inf
4141
SafeIntLib |MdePkg/Library/BaseSafeIntLib/BaseSafeIntLib.inf # MU_CHANGE - CodeQL change
42+
NULL |MdePkg/Library/StackCheckLibNull/StackCheckLibNull.inf
4243

4344
[Components.X64]
4445
HidPkg/HidKeyboardDxe/HidKeyboardDxe.inf

MfciPkg/MfciPkg.dsc

+1
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
4747

4848
TimerLib|MdePkg/Library/BaseTimerLibNullTemplate/BaseTimerLibNullTemplate.inf
49+
NULL|MdePkg/Library/StackCheckLibNull/StackCheckLibNull.inf
4950

5051
[LibraryClasses.X64]
5152
RngLib|MdePkg/Library/BaseRngLib/BaseRngLib.inf

MsApplicationPkg/MsApplicationPkg.dsc

+1-3
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,9 @@
3030
UefiLib|MdePkg/Library/UefiLib/UefiLib.inf
3131
UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf
3232
UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
33+
NULL|MdePkg/Library/StackCheckLibNull/StackCheckLibNull.inf
3334

3435
[LibraryClasses.AARCH64]
35-
# Add support for GCC stack protector
36-
NULL|MdePkg/Library/BaseStackCheckLib/BaseStackCheckLib.inf
37-
3836

3937
###################################################################################################
4038
#

MsCorePkg/MsCorePkg.dsc

+1
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
MuTelemetryHelperLib|MsWheaPkg/Library/MuTelemetryHelperLib/MuTelemetryHelperLib.inf
4545
DeviceSpecificBusInfoLib|MsCorePkg/Library/DeviceSpecificBusInfoLibNull/DeviceSpecificBusInfoLibNull.inf
4646
ExceptionPersistenceLib|MdeModulePkg/Library/BaseExceptionPersistenceLibNull/BaseExceptionPersistenceLibNull.inf
47+
NULL|MdePkg/Library/StackCheckLibNull/StackCheckLibNull.inf
4748

4849
SafeIntLib|MdePkg/Library/BaseSafeIntLib/BaseSafeIntLib.inf
4950

MsGraphicsPkg/MsGraphicsPkg.dsc

+1
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf
4545
DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf
4646
SafeIntLib|MdePkg/Library/BaseSafeIntLib/BaseSafeIntLib.inf
47+
NULL|MdePkg/Library/StackCheckLibNull/StackCheckLibNull.inf
4748

4849
HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf
4950
UefiHiiServicesLib|MdeModulePkg/Library/UefiHiiServicesLib/UefiHiiServicesLib.inf

MsWheaPkg/MsWheaPkg.dsc

+1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
#
3535
BaseLib|MdePkg/Library/BaseLib/BaseLib.inf
3636
BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
37+
NULL|MdePkg/Library/StackCheckLibNull/StackCheckLibNull.inf
3738

3839
[LibraryClasses]
3940
UefiLib|MdePkg/Library/UefiLib/UefiLib.inf

PcBdsPkg/PcBdsPkg.dsc

+1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
3333
ReportStatusCodeLib|MdePkg/Library/BaseReportStatusCodeLibNull/BaseReportStatusCodeLibNull.inf
3434
UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf
35+
NULL|MdePkg/Library/StackCheckLibNull/StackCheckLibNull.inf
3536

3637
PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
3738
HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf

TpmTestingPkg/TpmTestingPkg.dsc

+1-2
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
Tpm2CommandLib|SecurityPkg/Library/Tpm2CommandLib/Tpm2CommandLib.inf
3939
Tpm2DebugLib|SecurityPkg/Library/Tpm2DebugLib/Tpm2DebugLibNull.inf
4040
Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2DeviceLibDTpm.inf
41+
NULL|MdePkg/Library/StackCheckLibNull/StackCheckLibNull.inf
4142

4243
[LibraryClasses.common.PEIM]
4344
HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
@@ -77,8 +78,6 @@
7778
#
7879
[LibraryClasses.X64]
7980
RngLib|MdePkg/Library/BaseRngLib/BaseRngLib.inf
80-
NULL|MdePkg/Library/StackCheckLib/StackCheckLib.inf
81-
StackCheckFailureLib|MdePkg/Library/StackCheckFailureLibNull/StackCheckFailureLibNull.inf
8281

8382
[Components]
8483
TpmTestingPkg/Library/BaseFvMeasurementExclusionLibNull/BaseFvMeasurementExclusionLibNull.inf

UefiTestingPkg/UefiTestingPkg.dsc

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@
6969
CpuPageTableLib|UefiCpuPkg/Library/CpuPageTableLib/CpuPageTableLib.inf
7070
DxeMemoryProtectionHobLib|MdeModulePkg/Library/MemoryProtectionHobLibNull/DxeMemoryProtectionHobLibNull.inf
7171
FlatPageTableLib|UefiTestingPkg/Library/FlatPageTableLib/FlatPageTableLib.inf
72+
NULL|MdePkg/Library/StackCheckLibNull/StackCheckLibNull.inf
7273

7374
[LibraryClasses.ARM, LibraryClasses.AARCH64]
7475
ArmDisassemblerLib|ArmPkg/Library/ArmDisassemblerLib/ArmDisassemblerLib.inf
@@ -79,7 +80,6 @@
7980
ArmSmcLib|ArmPkg/Library/ArmSmcLib/ArmSmcLib.inf
8081
CpuExceptionHandlerLib|ArmPkg/Library/ArmExceptionLib/ArmExceptionLib.inf
8182
DefaultExceptionHandlerLib|ArmPkg/Library/DefaultExceptionHandlerLib/DefaultExceptionHandlerLib.inf
82-
NULL|MdePkg/Library/BaseStackCheckLib/BaseStackCheckLib.inf
8383
NULL|MdePkg/Library/CompilerIntrinsicsLib/ArmCompilerIntrinsicsLib.inf
8484

8585
[LibraryClasses.common.DXE_SMM_DRIVER]

XmlSupportPkg/XmlSupportPkg.dsc

+1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
UefiRuntimeLib|MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf
3030
XmlTreeLib|XmlSupportPkg/Library/XmlTreeLib/XmlTreeLib.inf
3131
XmlTreeQueryLib|XmlSupportPkg/Library/XmlTreeQueryLib/XmlTreeQueryLib.inf
32+
NULL|MdePkg/Library/StackCheckLibNull/StackCheckLibNull.inf
3233

3334
[Components]
3435
XmlSupportPkg/Library/XmlTreeLib/XmlTreeLib.inf

0 commit comments

Comments
 (0)