Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1659350
| From | Kees Cook <keescook@chromium.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 2/6] efi: Avoid fortify checks in EFI stub |
| Date | 2017-06-07 05:20 +0200 |
| Message-ID | <tPzFL-Xd-3@gated-at.bofh.it> (permalink) |
| References | <tPeKZ-460-5@gated-at.bofh.it> <tPeKZ-460-3@gated-at.bofh.it> <tPqj7-3hY-9@gated-at.bofh.it> <tPqj7-3hY-7@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Tue, Jun 6, 2017 at 10:17 AM, Mark Rutland <mark.rutland@arm.com> wrote: > On Tue, Jun 06, 2017 at 05:13:07PM +0000, Ard Biesheuvel wrote: >> (+ Mark, Matt) >> >> On 6 June 2017 at 04:52, Kees Cook <keescook@chromium.org> wrote: >> > 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. >> > >> > Suggested-by: Daniel Micay <danielmicay@gmail.com> >> > Signed-off-by: Kees Cook <keescook@chromium.org> >> > Cc; Matt Fleming <matt@codeblueprint.co.uk> >> > Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org> > > I believe for arm64 the immediate breakage is implicitly fixed by the > <asm/string.h> definition, but I agree it makes sense to be explicit > anyhow. > > FWIW: > > Acked-by: Mark Rutland <mark.rutland@arm.com> > > Kees, as an aside, do you want me to patchify the vdso fixup? Or are > you going to handle that? I sent that separately but discovered that my invocation of git send-email failed to include a CC to you, even though I had it listed as Suggested-by, etc. I think it's going to get queued for the arm64 tree. > > Thanks, > Mark. > >> > --- >> > drivers/firmware/efi/libstub/Makefile | 1 + >> > 1 file changed, 1 insertion(+) >> > >> > diff --git a/drivers/firmware/efi/libstub/Makefile b/drivers/firmware/efi/libstub/Makefile >> > index f7425960f6a5..37e24f525162 100644 >> > --- 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) >> > >> >> Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> >> >> This is unlikely to conflict with anything going through the EFI tree, >> so feel free to queue it elsewhere. If it can go through the EFI tree, that'd be great. Less for akpm to wrangle. :) Thanks! -Kees -- Kees Cook Pixel Security
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 2/6] efi: Avoid fortify checks in EFI stub Kees Cook <keescook@chromium.org> - 2017-06-06 07:00 +0200
Re: [PATCH 2/6] efi: Avoid fortify checks in EFI stub Mark Rutland <mark.rutland@arm.com> - 2017-06-06 19:20 +0200
Re: [PATCH 2/6] efi: Avoid fortify checks in EFI stub Kees Cook <keescook@chromium.org> - 2017-06-07 05:20 +0200
Re: [PATCH 2/6] efi: Avoid fortify checks in EFI stub Ard Biesheuvel <ard.biesheuvel@linaro.org> - 2017-06-07 11:00 +0200
Re: [PATCH 2/6] efi: Avoid fortify checks in EFI stub Mark Rutland <mark.rutland@arm.com> - 2017-06-07 11:30 +0200
Re: [PATCH 2/6] efi: Avoid fortify checks in EFI stub Ard Biesheuvel <ard.biesheuvel@linaro.org> - 2017-06-06 19:20 +0200
csiph-web