Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1384441
| From | Mark Rutland <mark.rutland@arm.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCHv2 5/5] efi/runtime-wrappers: detect FW irq flag corruption |
| Date | 2016-04-21 19:20 +0200 |
| Message-ID | <rqqqK-4ao-5@gated-at.bofh.it> (permalink) |
| References | <rql7I-8rt-7@gated-at.bofh.it> <rql7J-8rt-47@gated-at.bofh.it> <rqqh5-46m-13@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Thu, Apr 21, 2016 at 07:05:32PM +0200, Ard Biesheuvel wrote:
> On 21 April 2016 at 13:35, Mark Rutland <mark.rutland@arm.com> wrote:
> > @@ -25,8 +27,11 @@
> > #define efi_call_virt(f, args...) \
> > ({ \
> > efi_status_t __s; \
> > + unsigned long flags; \
> > arch_efi_call_virt_setup(); \
> > + local_save_flags(flags); \
> > __s = arch_efi_call_virt(f, args); \
> > + efi_call_virt_check_flags(flags, __stringify(f)); \
> > arch_efi_call_virt_teardown(); \
> > __s; \
> > })
> > @@ -35,12 +40,29 @@
> > #ifndef __efi_call_virt
> > #define __efi_call_virt(f, args...) \
> > ({ \
> > + unsigned long flags; \
> > arch_efi_call_virt_setup(); \
> > + local_irq_save(flags); \
>
> We shouldn't disable interrupts here. I assume this is a typo, and you
> intended to use local_save_flags() as above?
Oh, yes. That's an impressive mistake on my behalf; thanks for spotting
that!
I've been seeing issues with GetVariable and GetNextVariable, which
happen to only exercise the correct macro above.
> Other than that, this series looks fine to me.
>
> With the above fixed:
>
> For the series (except the x86 patch)
>
> Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Cheers!
Mark.
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCHv2 5/5] efi/runtime-wrappers: detect FW irq flag corruption Mark Rutland <mark.rutland@arm.com> - 2016-04-21 13:40 +0200
Re: [PATCHv2 5/5] efi/runtime-wrappers: detect FW irq flag corruption Ard Biesheuvel <ard.biesheuvel@linaro.org> - 2016-04-21 19:10 +0200
Re: [PATCHv2 5/5] efi/runtime-wrappers: detect FW irq flag corruption Mark Rutland <mark.rutland@arm.com> - 2016-04-21 19:20 +0200
csiph-web