diff options
author | Sami Tolvanen <samitolvanen@google.com> | 2020-04-27 18:00:18 +0200 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2020-05-15 17:35:50 +0200 |
commit | cc49c71d2abe99c1c2c9bedf0693ad2d3ee4a067 (patch) | |
tree | 4022c50c3b464aa1e76126b81105c8b4467346c3 /drivers/firmware | |
parent | arm64: scs: Add shadow stacks for SDEI (diff) | |
download | linux-cc49c71d2abe99c1c2c9bedf0693ad2d3ee4a067.tar.xz linux-cc49c71d2abe99c1c2c9bedf0693ad2d3ee4a067.zip |
efi/libstub: Disable Shadow Call Stack
Shadow stacks are not available in the EFI stub, filter out SCS flags.
Suggested-by: James Morse <james.morse@arm.com>
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
Acked-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'drivers/firmware')
-rw-r--r-- | drivers/firmware/efi/libstub/Makefile | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/firmware/efi/libstub/Makefile b/drivers/firmware/efi/libstub/Makefile index 094eabdecfe6..b52ae8c29560 100644 --- a/drivers/firmware/efi/libstub/Makefile +++ b/drivers/firmware/efi/libstub/Makefile @@ -32,6 +32,9 @@ KBUILD_CFLAGS := $(cflags-y) -DDISABLE_BRANCH_PROFILING \ $(call cc-option,-fno-stack-protector) \ -D__DISABLE_EXPORTS +# remove SCS flags from all objects in this directory +KBUILD_CFLAGS := $(filter-out $(CC_FLAGS_SCS), $(KBUILD_CFLAGS)) + GCOV_PROFILE := n KASAN_SANITIZE := n UBSAN_SANITIZE := n |