projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2104180
)
efi: avoid fortify checks in EFI stub
author
Kees Cook
<
[email protected]
>
Wed, 12 Jul 2017 21:35:55 +0000
(14:35 -0700)
committer
Linus Torvalds
<
[email protected]
>
Wed, 12 Jul 2017 23:26:02 +0000
(16:26 -0700)
This avoids CONFIG_FORTIFY_SOURCE from being enabled during the EFI stub
build, as adding a panic() implementation may not work well. This can
be adjusted in the future.
Link:
http://lkml.kernel.org/r/
[email protected]
Signed-off-by: Kees Cook <
[email protected]
>
Suggested-by: Daniel Micay <
[email protected]
>
Reviewed-by: Ard Biesheuvel <
[email protected]
>
Acked-by: Mark Rutland <
[email protected]
>
Cc: Matt Fleming <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
drivers/firmware/efi/libstub/Makefile
patch
|
blob
|
history
diff --git
a/drivers/firmware/efi/libstub/Makefile
b/drivers/firmware/efi/libstub/Makefile
index f7425960f6a57d4d4048e905d4d6b101b333c114..37e24f525162e10d95e625953773783349ee1316 100644
(file)
--- a/
drivers/firmware/efi/libstub/Makefile
+++ b/
drivers/firmware/efi/libstub/Makefile
@@
-17,6
+17,7
@@
cflags-$(CONFIG_ARM) := $(subst -pg,,$(KBUILD_CFLAGS)) \
cflags-$(CONFIG_EFI_ARMSTUB) += -I$(srctree)/scripts/dtc/libfdt
KBUILD_CFLAGS := $(cflags-y) -DDISABLE_BRANCH_PROFILING \
+ -D__NO_FORTIFY \
$(call cc-option,-ffreestanding) \
$(call cc-option,-fno-stack-protector)