All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ard Biesheuvel <ard.biesheuvel@linaro.org>
To: Ingo Molnar <mingo@kernel.org>
Cc: Matt Fleming <matt@codeblueprint.co.uk>,
	"H. Peter Anvin" <hpa@zytor.com>,
	Thomas Gleixner <tglx@linutronix.de>,
	"linux-efi@vger.kernel.org" <linux-efi@vger.kernel.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	Andy Lutomirski <luto@amacapital.net>,
	Borislav Petkov <bp@alien8.de>,
	Mark Rutland <mark.rutland@arm.com>
Subject: Re: [GIT PULL] EFI urgent fixes
Date: Wed, 18 Feb 2015 16:36:16 +0000	[thread overview]
Message-ID: <D0B4679E-92EB-4A22-8D3E-9D0C27A09ACD@linaro.org> (raw)
In-Reply-To: <20150218134357.GA386@gmail.com>


> On 18 feb. 2015, at 13:43, Ingo Molnar <mingo@kernel.org> wrote:
> 
> 
> * Matt Fleming <matt@codeblueprint.co.uk> wrote:
> 
>> Folks, please pull the following fixes. The revert addresses a
>> regression that Ard hit when booting Qemu and Xen, and the other patch
>> ensures that we don't triple fault when receiving an NMI or MCE during
>> an EFI mixed mode call, which may happen, for instance, when running
>> perf.
>> 
>> The pull is against tip/x86/efi because tip/x86/urgent doesn't contain
>> commit d1a8d66b9177 ("efi/libstub: Call get_memory_map() to obtain map
>> and desc sizes") needed for the revert.
>> 
>> If you'd prefer for me to resend this after the merge window closes,
>> just let me know.
>> 
>> The following changes since commit 3c01b74e818a7a3b2ee9b0d584cca0bc154a031c:
>> 
>>  Merge tag 'efi-next' of git://git.kernel.org/pub/scm/linux/kernel/git/mfleming/efi into x86/efi (2015-01-29 19:16:40 +0100)
>> 
>> are available in the git repository at:
>> 
>> 
>>  git://git.kernel.org/pub/scm/linux/kernel/git/mfleming/efi.git tags/efi-urgent
>> 
>> for you to fetch changes up to 43a9f69692b232d1c64c913a27507eb14a1c47fd:
>> 
>>  Revert "efi/libstub: Call get_memory_map() to obtain map and desc sizes" (2015-02-18 11:38:13 +0000)
>> 
>> ----------------------------------------------------------------
>> * Leave a valid 64-bit IDT installed during runtime EFI mixed mode
>>   calls to avoid triple faults if an NMI/MCE is received.
>> 
>> * Revert Ard's change to the libstub get_memory_map() that went into
>>   the v3.20 merge window because it causes boot regressions on Qemu and
>>   Xen.
>> 
>> ----------------------------------------------------------------
>> Matt Fleming (2):
>>      x86/efi: Avoid triple faults during EFI mixed mode calls
>>      Revert "efi/libstub: Call get_memory_map() to obtain map and desc sizes"
>> 
>> arch/x86/boot/compressed/Makefile              |   1 +
>> arch/x86/boot/compressed/efi_stub_64.S         |  25 ----
>> arch/x86/boot/compressed/efi_thunk_64.S        | 196 +++++++++++++++++++++++++
>> arch/x86/platform/efi/efi_stub_64.S            | 161 --------------------
>> arch/x86/platform/efi/efi_thunk_64.S           | 121 ++++++++++++---
>> drivers/firmware/efi/libstub/efi-stub-helper.c |  16 +-
>> 6 files changed, 307 insertions(+), 213 deletions(-)
>> create mode 100644 arch/x86/boot/compressed/efi_thunk_64.S
> 
> Pulled, thanks Matt!
> 
> Btw., I find the revert a bit sad: in most cases breaking 
> virtualized environments isn't a regression really, it's 
> _them_ who couple to the kernel in an incestuous way that 
> causes the problem: fixes should come from them ...
> 

It potentially breaks physical environments as well, it is just that i spotted it while testing virt ports of Tianocore. And frankly, the patch wasn't entirely correct to begin with

Regards,
Ard.


WARNING: multiple messages have this Message-ID (diff)
From: Ard Biesheuvel <ard.biesheuvel-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
To: Ingo Molnar <mingo-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
Cc: Matt Fleming
	<matt-mF/unelCI9GS6iBeEJttW/XRex20P6io@public.gmane.org>,
	"H. Peter Anvin" <hpa-YMNOUZJC4hwAvxtiuMwx3w@public.gmane.org>,
	Thomas Gleixner <tglx-hfZtesqFncYOwBW4kG4KsQ@public.gmane.org>,
	"linux-efi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
	<linux-efi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
	"linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
	<linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
	Andy Lutomirski <luto-kltTT9wpgjJwATOyAt5JVQ@public.gmane.org>,
	Borislav Petkov <bp-Gina5bIWoIWzQB+pC5nmwQ@public.gmane.org>,
	Mark Rutland <mark.rutland-5wv7dgnIgG8@public.gmane.org>
Subject: Re: [GIT PULL] EFI urgent fixes
Date: Wed, 18 Feb 2015 16:36:16 +0000	[thread overview]
Message-ID: <D0B4679E-92EB-4A22-8D3E-9D0C27A09ACD@linaro.org> (raw)
In-Reply-To: <20150218134357.GA386-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>


> On 18 feb. 2015, at 13:43, Ingo Molnar <mingo-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org> wrote:
> 
> 
> * Matt Fleming <matt-mF/unelCI9GS6iBeEJttW/XRex20P6io@public.gmane.org> wrote:
> 
>> Folks, please pull the following fixes. The revert addresses a
>> regression that Ard hit when booting Qemu and Xen, and the other patch
>> ensures that we don't triple fault when receiving an NMI or MCE during
>> an EFI mixed mode call, which may happen, for instance, when running
>> perf.
>> 
>> The pull is against tip/x86/efi because tip/x86/urgent doesn't contain
>> commit d1a8d66b9177 ("efi/libstub: Call get_memory_map() to obtain map
>> and desc sizes") needed for the revert.
>> 
>> If you'd prefer for me to resend this after the merge window closes,
>> just let me know.
>> 
>> The following changes since commit 3c01b74e818a7a3b2ee9b0d584cca0bc154a031c:
>> 
>>  Merge tag 'efi-next' of git://git.kernel.org/pub/scm/linux/kernel/git/mfleming/efi into x86/efi (2015-01-29 19:16:40 +0100)
>> 
>> are available in the git repository at:
>> 
>> 
>>  git://git.kernel.org/pub/scm/linux/kernel/git/mfleming/efi.git tags/efi-urgent
>> 
>> for you to fetch changes up to 43a9f69692b232d1c64c913a27507eb14a1c47fd:
>> 
>>  Revert "efi/libstub: Call get_memory_map() to obtain map and desc sizes" (2015-02-18 11:38:13 +0000)
>> 
>> ----------------------------------------------------------------
>> * Leave a valid 64-bit IDT installed during runtime EFI mixed mode
>>   calls to avoid triple faults if an NMI/MCE is received.
>> 
>> * Revert Ard's change to the libstub get_memory_map() that went into
>>   the v3.20 merge window because it causes boot regressions on Qemu and
>>   Xen.
>> 
>> ----------------------------------------------------------------
>> Matt Fleming (2):
>>      x86/efi: Avoid triple faults during EFI mixed mode calls
>>      Revert "efi/libstub: Call get_memory_map() to obtain map and desc sizes"
>> 
>> arch/x86/boot/compressed/Makefile              |   1 +
>> arch/x86/boot/compressed/efi_stub_64.S         |  25 ----
>> arch/x86/boot/compressed/efi_thunk_64.S        | 196 +++++++++++++++++++++++++
>> arch/x86/platform/efi/efi_stub_64.S            | 161 --------------------
>> arch/x86/platform/efi/efi_thunk_64.S           | 121 ++++++++++++---
>> drivers/firmware/efi/libstub/efi-stub-helper.c |  16 +-
>> 6 files changed, 307 insertions(+), 213 deletions(-)
>> create mode 100644 arch/x86/boot/compressed/efi_thunk_64.S
> 
> Pulled, thanks Matt!
> 
> Btw., I find the revert a bit sad: in most cases breaking 
> virtualized environments isn't a regression really, it's 
> _them_ who couple to the kernel in an incestuous way that 
> causes the problem: fixes should come from them ...
> 

It potentially breaks physical environments as well, it is just that i spotted it while testing virt ports of Tianocore. And frankly, the patch wasn't entirely correct to begin with

Regards,
Ard.

  reply	other threads:[~2015-02-18 16:36 UTC|newest]

Thread overview: 77+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-18 11:55 [GIT PULL] EFI urgent fixes Matt Fleming
2015-02-18 11:55 ` Matt Fleming
2015-02-18 13:43 ` Ingo Molnar
2015-02-18 13:43   ` Ingo Molnar
2015-02-18 16:36   ` Ard Biesheuvel [this message]
2015-02-18 16:36     ` Ard Biesheuvel
2015-02-18 16:57     ` Ingo Molnar
2015-02-18 16:57       ` Ingo Molnar
  -- strict thread matches above, loose matches on Subject: below --
2015-07-30 21:06 Matt Fleming
2015-07-31  7:56 ` Ingo Molnar
2015-07-31  7:56   ` Ingo Molnar
2015-05-05 16:27 Matt Fleming
2015-05-06  6:31 ` Ingo Molnar
2015-05-06  6:31   ` Ingo Molnar
2015-03-02 12:51 Matt Fleming
2015-03-02 13:24 ` Ingo Molnar
2015-03-02 13:24   ` Ingo Molnar
2015-03-02 13:35   ` Matt Fleming
2014-09-25  7:31 Matt Fleming
2014-09-25 14:41 ` Ingo Molnar
2014-09-25 14:41   ` Ingo Molnar
2014-09-25 14:44   ` Matt Fleming
2014-09-25 14:44     ` Matt Fleming
2014-09-26 11:27   ` Paul Bolle
2014-09-26 11:27     ` Paul Bolle
2014-09-26 11:35     ` Ingo Molnar
2014-09-26 11:35       ` Ingo Molnar
2014-09-26 12:24       ` Matt Fleming
2014-09-26 12:24         ` Matt Fleming
2014-09-27  5:49         ` Ingo Molnar
2014-09-27  5:49           ` Ingo Molnar
2014-09-26 11:44     ` Matt Fleming
2014-09-26 11:44       ` Matt Fleming
2014-09-26 11:59       ` Paul Bolle
2014-09-26 11:59         ` Paul Bolle
2014-09-26 12:34         ` Matt Fleming
2014-09-26 12:34           ` Matt Fleming
2014-09-26 12:55           ` Paul Bolle
2014-09-27  8:04           ` Valentin Rothberg
2014-09-27  8:04             ` Valentin Rothberg
2014-09-27  9:59             ` Paul Bolle
2014-09-27  9:59               ` Paul Bolle
2014-09-08 21:55 Matt Fleming
2014-09-08 21:55 ` Matt Fleming
2014-09-09  5:07 ` Ingo Molnar
2014-09-09  5:07   ` Ingo Molnar
2014-09-09  7:07   ` Matt Fleming
2014-09-09  7:07     ` Matt Fleming
2014-09-09 14:55     ` Ingo Molnar
2014-08-22  7:52 Matt Fleming
2014-08-22  7:52 ` Matt Fleming
2014-08-22  8:15 ` Ingo Molnar
2014-08-22  8:15   ` Ingo Molnar
2014-07-14 12:54 Matt Fleming
2014-07-14 12:54 ` Matt Fleming
2014-06-27 14:51 Matt Fleming
2014-06-27 14:51 ` Matt Fleming
2014-06-04 16:53 Matt Fleming
2014-06-04 16:53 ` Matt Fleming
2014-04-11  7:16 Matt Fleming
2014-04-11  7:16 ` Matt Fleming
2014-04-11  8:27 ` Ingo Molnar
2014-04-11  8:27   ` Ingo Molnar
2014-02-14 13:08 Matt Fleming
2014-02-14 13:08 ` Matt Fleming
2013-11-29 12:09 Matt Fleming
2013-11-29 12:09 ` Matt Fleming
2013-07-11 11:16 Matt Fleming
2013-07-11 11:16 ` Matt Fleming
2013-06-07 11:50 Matt Fleming
2013-06-07 11:50 ` Matt Fleming
2013-06-10 21:36 ` Matt Fleming
2013-06-10 21:36   ` Matt Fleming
2013-05-17 10:18 Matt Fleming
2013-05-17 10:18 ` Matt Fleming
2013-04-25  8:49 Matt Fleming
2013-04-25  8:49 ` Matt Fleming

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=D0B4679E-92EB-4A22-8D3E-9D0C27A09ACD@linaro.org \
    --to=ard.biesheuvel@linaro.org \
    --cc=bp@alien8.de \
    --cc=hpa@zytor.com \
    --cc=linux-efi@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=luto@amacapital.net \
    --cc=mark.rutland@arm.com \
    --cc=matt@codeblueprint.co.uk \
    --cc=mingo@kernel.org \
    --cc=tglx@linutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.