All of lore.kernel.org
 help / color / mirror / Atom feed
* [GIT PULL] EFI urgent fixes
@ 2013-11-29 12:09 ` Matt Fleming
  0 siblings, 0 replies; 77+ messages in thread
From: Matt Fleming @ 2013-11-29 12:09 UTC (permalink / raw)
  To: Ingo Molnar; +Cc: H. Peter Anvin, Thomas Gleixner, linux-efi, linux-kernel

Hi guys,

The following changes since commit 6ce4eac1f600b34f2f7f58f9cd8f0503d79e42ae:

  Linux 3.13-rc1 (2013-11-22 11:30:55 -0800)

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 fdeadb43fdf1e7d5698c027b555c389174548e5a:

  efi-pstore: Make efi-pstore return a unique id (2013-11-29 10:11:06 +0000)

----------------------------------------------------------------
 * Avoid triggering a lockdep warning caused by calling kmemdup() while
   holding a spinlock - Seiji Aguchi

 * EFI framebuffer earlyprintk fix for off-by-one error that caused
   console output to be split over two lines on some machines.

 * Avoid pstore filename collisions by using a timestamp to calculate
   the entry ID, thereby making them unique - Madper Xie

----------------------------------------------------------------
Madper Xie (1):
      efi-pstore: Make efi-pstore return a unique id

Matt Fleming (1):
      x86/efi: Fix earlyprintk off-by-one bug

Seiji Aguchi (1):
      efivars, efi-pstore: Hold off deletion of sysfs entry until the scan is completed

 arch/x86/platform/efi/early_printk.c |   2 +-
 drivers/firmware/efi/efi-pstore.c    | 163 +++++++++++++++++++++++++++++++----
 drivers/firmware/efi/efivars.c       |  12 ++-
 drivers/firmware/efi/vars.c          |  12 ++-
 include/linux/efi.h                  |   4 +
 5 files changed, 170 insertions(+), 23 deletions(-)

-- 
Matt Fleming, Intel Open Source Technology Center

^ permalink raw reply	[flat|nested] 77+ messages in thread
* [GIT PULL] EFI urgent fixes
@ 2015-07-30 21:06 Matt Fleming
  2015-07-31  7:56   ` Ingo Molnar
  0 siblings, 1 reply; 77+ messages in thread
From: Matt Fleming @ 2015-07-30 21:06 UTC (permalink / raw)
  To: Ingo Molnar, Thomas Gleixner, H. Peter Anvin; +Cc: linux-kernel, linux-efi

Folks, please pull the following urgent EFI fixes which prevent an oops
if users pass an invalid "efi" kernel parameter and a boot issue seen on
Parallels virtual machines.

The tag is based on v4.2-rc4, let me know if you want me to rebase it on
top of something else.

The following changes since commit cbfe8fa6cd672011c755c3cd85c9ffd4e2d10a6f:

  Linux 4.2-rc4 (2015-07-26 12:26:21 -0700)

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 9115c7589b11349a1c3099758b4bded579ff69e0:

  efi: Check for NULL efi kernel parameters (2015-07-30 18:07:11 +0100)

----------------------------------------------------------------
 * Fix an EFI boot issue preventing a Parallels virtual machine from
   booting because the upper 32-bits of the EFI memmap pointer were
   being discarded in setup_e820() - Dmitry Skorodumov

 * Validate that the "efi" kernel parameter gets used with an argument,
   otherwise we will oops - Ricardo Neri

----------------------------------------------------------------
Dmitry Skorodumov (1):
      x86/efi: Use all 64 bit of efi_memmap in setup_e820()

Ricardo Neri (1):
      efi: Check for NULL efi kernel parameters

 arch/x86/boot/compressed/eboot.c | 4 ++++
 arch/x86/platform/efi/efi.c      | 5 +++++
 drivers/firmware/efi/efi.c       | 5 +++++
 3 files changed, 14 insertions(+)

-- 
Matt Fleming, Intel Open Source Technology Center

^ permalink raw reply	[flat|nested] 77+ messages in thread
* [GIT PULL] EFI urgent fixes
@ 2015-05-05 16:27 Matt Fleming
  2015-05-06  6:31   ` Ingo Molnar
  0 siblings, 1 reply; 77+ messages in thread
From: Matt Fleming @ 2015-05-05 16:27 UTC (permalink / raw)
  To: Ingo Molnar, H. Peter Anvin, Thomas Gleixner; +Cc: linux-efi, linux-kernel

Folks, please pull the following bug fixes for efivarfs, EFI boot stub
and the EFI runtime map code.

The following changes since commit bfbaafae8519d82d10da6abe75f5766dd5b20475:

  firmware: dmi_scan: Prevent dmi_num integer overflow (2015-03-27 10:53:46 +0000)

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 d67e199611b986b345ea3087ee2e4a15da1c98b3:

  efi: Fix error handling in add_sysfs_runtime_map_entry() (2015-05-05 16:20:13 +0100)

----------------------------------------------------------------
 * Avoid garbage names in efivarfs due to buggy firmware by zero'ing
   EFI variable name - Ross Lagerwall

 * Stop erroneously dropping upper 32-bits of boot command line pointer
   in EFI boot stub and stash them in ext_cmd_line_ptr - Roy Franz

 * Fix double-free bug in error handling code path of EFI runtime map
   code - Dan Carpenter

----------------------------------------------------------------
Dan Carpenter (1):
      efi: Fix error handling in add_sysfs_runtime_map_entry()

Ross Lagerwall (1):
      efivarfs: Ensure VariableName is NUL-terminated

Roy Franz (1):
      x86/efi: Store upper bits of command line buffer address in ext_cmd_line_ptr

 arch/x86/boot/compressed/eboot.c   | 2 ++
 drivers/firmware/efi/runtime-map.c | 6 +++---
 fs/efivarfs/super.c                | 2 +-
 3 files changed, 6 insertions(+), 4 deletions(-)

-- 
Matt Fleming, Intel Open Source Technology Center

^ permalink raw reply	[flat|nested] 77+ messages in thread
* [GIT PULL] EFI urgent fixes
@ 2015-03-02 12:51 Matt Fleming
  2015-03-02 13:24   ` Ingo Molnar
  0 siblings, 1 reply; 77+ messages in thread
From: Matt Fleming @ 2015-03-02 12:51 UTC (permalink / raw)
  To: Ingo Molnar, Thomas Gleixner, H. Peter Anvin
  Cc: Ivan Khoronzhuk, Yinghai Lu, linux-efi, linux-kernel

Folks, please pull the following urgent changes.

The following changes since commit 43a9f69692b232d1c64c913a27507eb14a1c47fd:

  Revert "efi/libstub: Call get_memory_map() to obtain map and desc sizes" (2015-02-18 11:38:13 +0000)

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 6d9ff473317245e3e5cd9922b4520411c2296388:

  firmware: dmi_scan: Fix dmi_len type (2015-02-24 18:54:17 +0000)

----------------------------------------------------------------
 * Fix regression in DMI sysfs code for handling "End of Table" entry
   and a type bug that could lead to integer overflow - Ivan Khoronzhuk

 * Fix boundary checking in efi_high_alloc() which can lead to memory
   corruption in the EFI boot stubs - Yinghai Lu

----------------------------------------------------------------
Ivan Khoronzhuk (2):
      firmware: dmi_scan: Fix dmi scan to handle "End of Table" structure
      firmware: dmi_scan: Fix dmi_len type

Yinghai Lu (1):
      efi/libstub: Fix boundary checking in efi_high_alloc()

 drivers/firmware/dmi_scan.c                    | 17 +++++++++--------
 drivers/firmware/efi/libstub/efi-stub-helper.c |  8 ++++----
 2 files changed, 13 insertions(+), 12 deletions(-)

-- 
Matt Fleming, Intel Open Source Technology Center

^ permalink raw reply	[flat|nested] 77+ messages in thread
* [GIT PULL] EFI urgent fixes
@ 2015-02-18 11:55 ` Matt Fleming
  0 siblings, 0 replies; 77+ messages in thread
From: Matt Fleming @ 2015-02-18 11:55 UTC (permalink / raw)
  To: Ingo Molnar, H. Peter Anvin, Thomas Gleixner
  Cc: linux-efi, linux-kernel, Ard Biesheuvel, Andy Lutomirski,
	Borislav Petkov, Mark Rutland

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

-- 
Matt Fleming, Intel Open Source Technology Center

^ permalink raw reply	[flat|nested] 77+ messages in thread
* [GIT PULL] EFI urgent fixes
@ 2014-09-25  7:31 Matt Fleming
  2014-09-25 14:41   ` Ingo Molnar
  0 siblings, 1 reply; 77+ messages in thread
From: Matt Fleming @ 2014-09-25  7:31 UTC (permalink / raw)
  To: H. Peter Anvin, Ingo Molnar, Thomas Gleixner; +Cc: linux-efi, linux-kernel

Folks,

Please consider pulling the following fixes.

The first two are releated to the bug report I got from Linus and Josh
Boyer, whereby Fedora20 + grub2 systems were no longer booting. Linus
reverted the offending commit that broke grub2 boot, but that left us in
a state where Macbooks still didn't boot with EFI. This is fixed with
the below revert and I'm dropping a noisey boot time efi_printk() based
on Josh's request and Linus' OK.

The third patch fixes a 32-bit EFI boot stub bug where garbled text is
displayed on the screen if any of the efi_printk() statements run.

The following changes since commit 3eddc69ffeba092d288c386646bfa5ec0fce25fd:

  x86 early_ioremap: Increase FIX_BTMAPS_SLOTS to 8 (2014-09-14 15:24:31 +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 115c6628a59044958c205f8468a1b3ba3d539e61:

  x86/efi: Truncate 64-bit values when calling 32-bit OutputString() (2014-09-24 21:56:46 +0100)

----------------------------------------------------------------
 * Revert the static library changes from the merge window since they're
   causing issues for Macbooks and Fedora + Grub2 - Matt Fleming

 * Delete the misleading "setup_efi_pci() failed!" message which some
   people are seeing when booting EFI - Matt Fleming

 * Fix printing strings from the 32-bit EFI boot stub by only passing
   32-bit addresses to the firmware - Matt Fleming

----------------------------------------------------------------
Matt Fleming (3):
      Revert "efi/x86: efistub: Move shared dependencies to <asm/efi.h>"
      x86/efi: Delete misleading efi_printk() error message
      x86/efi: Truncate 64-bit values when calling 32-bit OutputString()

 arch/x86/boot/compressed/Makefile |  3 +--
 arch/x86/boot/compressed/eboot.c  | 44 +++++++++++++++++++++++----------------
 arch/x86/boot/compressed/eboot.h  | 16 ++++++++++++++
 arch/x86/include/asm/efi.h        | 24 ---------------------
 drivers/firmware/efi/Makefile     |  2 +-
 5 files changed, 44 insertions(+), 45 deletions(-)

-- 
Matt Fleming, Intel Open Source Technology Center

^ permalink raw reply	[flat|nested] 77+ messages in thread
* [GIT PULL] EFI urgent fixes
@ 2014-09-08 21:55 ` Matt Fleming
  0 siblings, 0 replies; 77+ messages in thread
From: Matt Fleming @ 2014-09-08 21:55 UTC (permalink / raw)
  To: H. Peter Anvin, Ingo Molnar, Thomas Gleixner; +Cc: linux-efi, linux-kernel

Folks,

Please queue up the following fixes, mainly for regressions introduced
in the merge window or -rc2.

The following changes since commit 52addcf9d6669fa439387610bc65c92fa0980cef:

  Linux 3.17-rc2 (2014-08-25 15:36:20 -0700)

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 5d6012d8d72b4107bbc68d9e761aa5e2ddd73b05:

  efi/arm64: Fix fdt-related memory reservation (2014-09-08 20:52:48 +0100)

----------------------------------------------------------------
 * Fix early boot regression affecting x86 EFI boot stub when loading
   initrds above 4GB - Yinghai Lu

 * Relocate GOT entries in the x86 EFI boot stub now that we have
   symbols with global visibility - Matt Fleming

 * Fixes for compiler warnings caused by parameter and variable names
   shadowing types - Mark Rustad

 * General EFI cleanups and simplifications - Mathias Krause

 * fdt memory reservation fix for arm64 - Mark Salter

----------------------------------------------------------------
Mark Rustad (1):
      efi: Resolve some shadow warnings

Mark Salter (1):
      efi/arm64: Fix fdt-related memory reservation

Mathias Krause (4):
      x86/efi: Remove unused efi_call* macros
      x86/efi: Unexport add_efi_memmap variable
      x86/efi: Update comment regarding required phys mapped EFI services
      x86/efi: Mark initialization code as such

Matt Fleming (1):
      x86/efi: Fixup GOT in all boot code paths

Yinghai Lu (1):
      x86/efi: Only load initrd above 4g on second try

 arch/arm64/mm/init.c                |  3 +-
 arch/x86/boot/compressed/eboot.c    | 18 +++++++-----
 arch/x86/boot/compressed/head_32.S  | 54 +++++++++++++++++++++++++----------
 arch/x86/boot/compressed/head_64.S  | 56 +++++++++++++++++++++++++++----------
 arch/x86/include/asm/efi.h          | 31 +++++++-------------
 arch/x86/platform/efi/efi.c         | 20 ++++++-------
 arch/x86/platform/efi/efi_32.c      | 12 ++++----
 arch/x86/platform/efi/efi_64.c      |  6 ++--
 arch/x86/platform/efi/efi_stub_32.S |  4 +--
 drivers/firmware/efi/libstub/fdt.c  | 10 ++++++-
 drivers/firmware/efi/vars.c         | 14 +++++-----
 11 files changed, 140 insertions(+), 88 deletions(-)

-- 
Matt Fleming, Intel Open Source Technology Center

^ permalink raw reply	[flat|nested] 77+ messages in thread
* [GIT PULL] EFI urgent fixes
@ 2014-08-22  7:52 ` Matt Fleming
  0 siblings, 0 replies; 77+ messages in thread
From: Matt Fleming @ 2014-08-22  7:52 UTC (permalink / raw)
  To: H. Peter Anvin, Ingo Molnar; +Cc: linux-efi, linux-kernel

Hi guys, please pull the following fixes, which trade the locking
WARN_ON()s in the efivars code for the more usual lockdep_*() functions
and an arm64 EFI change that allows the gamut of runtime services to be
invoked.

The following changes since commit 7d1311b93e58ed55f3a31cc8f94c4b8fe988a2b9:

  Linux 3.17-rc1 (2014-08-16 10:40:26 -0600)

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 6a7519e81321343165f89abb8b616df186d3e57a:

  efi/arm64: Store Runtime Services revision (2014-08-22 08:45:41 +0100)

----------------------------------------------------------------
 * WARN_ON(!spin_is_locked()) always triggers on non-SMP machines.
   Swap it for the more canonical lockdep_assert_held() which always
   does the right thing - Guenter Roeck

 * Assign the correct value to efi.runtime_version on arm64 so that all
   the runtime services can be invoked - Semen Protsenko

----------------------------------------------------------------
Guenter Roeck (1):
      firmware: Do not use WARN_ON(!spin_is_locked())

Semen Protsenko (1):
      efi/arm64: Store Runtime Services revision

 arch/arm64/kernel/efi.c     | 2 ++
 drivers/firmware/efi/vars.c | 8 ++++----
 2 files changed, 6 insertions(+), 4 deletions(-)

-- 
Matt Fleming, Intel Open Source Technology Center

^ permalink raw reply	[flat|nested] 77+ messages in thread
* [GIT PULL] EFI urgent fixes
@ 2014-07-14 12:54 ` Matt Fleming
  0 siblings, 0 replies; 77+ messages in thread
From: Matt Fleming @ 2014-07-14 12:54 UTC (permalink / raw)
  To: H. Peter Anvin, Ingo Molnar; +Cc: linux-efi, linux-kernel

Folks, please pull the following urgent fixes. Of particular importance
is the patch from Michael that fixes a memory corruption bug in the x86
EFI boot stub.

The following changes since commit 783ee43118dc773bc8b0342c5b230e017d5a04d0:

  efi-pstore: Fix an overflow on 32-bit builds (2014-06-27 07:30:32 +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 c7fb93ec51d462ec3540a729ba446663c26a0505:

  x86/efi: Include a .bss section within the PE/COFF headers (2014-07-10 14:21:39 +0100)

----------------------------------------------------------------
 * Remove a duplicate copy of linux_banner from the arm64 EFI stub
   which, apart from reducing code duplication also stops the arm64 stub
   being rebuilt every time make is invoked - Ard Biesheuvel

 * Fix the EFI fdt code to not report a boot error if UEFI is
   unavailable since booting without UEFI parameters is a valid use case
   for non-UEFI platforms - Catalin Marinas

 * Include a .bss section in the EFI boot stub PE/COFF headers to fix a
   memory corruption bug - Michael Brown

----------------------------------------------------------------
Ard Biesheuvel (1):
      efi/arm64: efistub: remove local copy of linux_banner

Catalin Marinas (1):
      efi: fdt: Do not report an error during boot if UEFI is not available

Michael Brown (1):
      x86/efi: Include a .bss section within the PE/COFF headers

 arch/arm64/kernel/efi-stub.c |  2 --
 arch/x86/boot/header.S       | 26 ++++++++++++++++++++++----
 arch/x86/boot/tools/build.c  | 38 ++++++++++++++++++++++++++++++--------
 drivers/firmware/efi/efi.c   | 22 +++++++++++++++-------
 drivers/firmware/efi/fdt.c   | 10 ----------
 5 files changed, 67 insertions(+), 31 deletions(-)

-- 
Matt Fleming, Intel Open Source Technology Center

^ permalink raw reply	[flat|nested] 77+ messages in thread
* [GIT PULL] EFI urgent fixes
@ 2014-06-27 14:51 ` Matt Fleming
  0 siblings, 0 replies; 77+ messages in thread
From: Matt Fleming @ 2014-06-27 14:51 UTC (permalink / raw)
  To: H. Peter Anvin, Ingo Molnar; +Cc: linux-efi, Catalin Marinas, linux-kernel

Guys,

Please pull the following EFI fixes. The fix from Catalin is the same as
the one I sent a week ago and Andrzej's patch fixes an efi-pstore issue
on 32-bit machines where efi-pstore variables don't appear in the
filesystem and so can never be deleted, potentially leading to
exhaustion of NVRAM space.

The following changes since commit 7171511eaec5bf23fb06078f59784a3a0626b38f:

  Linux 3.16-rc1 (2014-06-15 17:45:28 -1000)

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 783ee43118dc773bc8b0342c5b230e017d5a04d0:

  efi-pstore: Fix an overflow on 32-bit builds (2014-06-27 07:30:32 +0100)

----------------------------------------------------------------
 * Fix a few compiler warnings (one being a real bug) in the arm64 EFI
   code that lots of people are running into and reporting - Catalin Marinas

 * Use a cast to avoid a 32-bit overflow issue when generating pstore
   filenames - Andrzej Zaborowski

----------------------------------------------------------------
Andrzej Zaborowski (1):
      efi-pstore: Fix an overflow on 32-bit builds

Catalin Marinas (1):
      efi: Fix compiler warnings (unused, const, type)

 drivers/firmware/efi/efi-pstore.c | 2 +-
 drivers/firmware/efi/efi.c        | 6 +++---
 drivers/firmware/efi/fdt.c        | 2 +-
 3 files changed, 5 insertions(+), 5 deletions(-)

-- 
Matt Fleming, Intel Open Source Technology Center

^ permalink raw reply	[flat|nested] 77+ messages in thread
* [GIT PULL] EFI urgent fixes
@ 2014-06-04 16:53 ` Matt Fleming
  0 siblings, 0 replies; 77+ messages in thread
From: Matt Fleming @ 2014-06-04 16:53 UTC (permalink / raw)
  To: H. Peter Anvin, Ingo Molnar; +Cc: linux-efi, linux-kernel

Folks,

Here are two commits I've queued up from Dave. The first fixes the efi
earlyprintk code and the second fixes a bug where we were exporting the
EFI runtime mappings for use by kexec-tools, despite the fact that those
mappings were not persistent across kexec reboot.

The following changes since commit 47514c996fac5e6f13ef3a4c5e23f1c5cffabb7b:

  efi: Pass correct file handle to efi_file_{read,close} (2014-04-10 21:20:03 +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 a3530e8fe980f756b823d451fe9243f26db95fa5:

  x86/efi: Do not export efi runtime map in case old map (2014-06-02 12:21:59 +0100)

----------------------------------------------------------------
 * Fix earlyprintk=efi,keep support by switching to an ioremap() mapping
   of the framebuffer when early_ioremap() is no longer available and
   dropping __init from functions that may be invoked after
   free_initmem() - Dave Young

 * We shouldn't be exporting the EFI runtime map in sysfs if not using
   the new 1:1 EFI mapping code since in that case the mappings are not
   static across a kexec reboot - Dave Young

----------------------------------------------------------------
Dave Young (2):
      x86/efi: earlyprintk=efi,keep fix
      x86/efi: Do not export efi runtime map in case old map

 arch/x86/platform/efi/early_printk.c | 83 +++++++++++++++++++++++++++---------
 arch/x86/platform/efi/efi.c          |  3 ++
 2 files changed, 67 insertions(+), 19 deletions(-)

-- 
Matt Fleming, Intel Open Source Technology Center

^ permalink raw reply	[flat|nested] 77+ messages in thread
* [GIT PULL] EFI urgent fixes
@ 2014-04-11  7:16 ` Matt Fleming
  0 siblings, 0 replies; 77+ messages in thread
From: Matt Fleming @ 2014-04-11  7:16 UTC (permalink / raw)
  To: H. Peter Anvin, Ingo Molnar; +Cc: linux-efi, linux-kernel

Guys, please pull the following. One of the fixes is for a regression
introduced during the merge window. The other two are bugs that have
existed in the EFI boot stub for a while, but which have only just been
reported.

I'm going to take care of submitting the later two to stable separately
because they won't apply cleanly as-is.

The following changes since commit 204b0a1a4b92612c957a042df1a3be0e9cc79391:

  x86, efi: Abstract x86 efi_early calls (2014-03-26 11:30:03 -0700)

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 47514c996fac5e6f13ef3a4c5e23f1c5cffabb7b:

  efi: Pass correct file handle to efi_file_{read,close} (2014-04-10 21:20:03 +0100)

----------------------------------------------------------------
 * Fix EFI boot regression introduced during the merge window where the
   firmware was reading random values from the stack because we were
   passing a pointer to the wrong object type.

 * Kernel corruption has been reported when booting with the EFI boot
   stub which was tracked down to setting a bogus value for
   bp->hdr.code32_start, resulting in corruption during relocation.

 * Olivier Martin reported that the wrong file handles were being passed
   to efi_file_(read|close), which works for x86 by luck due to the way
   that the FAT driver is implemented, but doesn't work on ARM.

----------------------------------------------------------------
Matt Fleming (3):
      x86/efi: Fix boot failure with EFI stub
      x86/efi: Correct EFI boot stub use of code32_start
      efi: Pass correct file handle to efi_file_{read,close}

 arch/x86/boot/compressed/eboot.c       | 19 ++++++++++---------
 arch/x86/boot/compressed/head_32.S     |  8 ++------
 arch/x86/boot/compressed/head_64.S     |  9 +++------
 drivers/firmware/efi/efi-stub-helper.c |  6 +++---
 4 files changed, 18 insertions(+), 24 deletions(-)
-- 
Matt Fleming, Intel Open Source Technology Center

^ permalink raw reply	[flat|nested] 77+ messages in thread
* [GIT PULL] EFI urgent fixes
@ 2014-02-14 13:08 ` Matt Fleming
  0 siblings, 0 replies; 77+ messages in thread
From: Matt Fleming @ 2014-02-14 13:08 UTC (permalink / raw)
  To: H. Peter Anvin; +Cc: Ingo Molnar, Thomas Gleixner, linux-efi, linux-kernel

There have been reports of EFI crashes since -rc1. The following two
commits fix known issues.

The following changes since commit b28a960c42fcd9cfc987441fa6d1c1a471f0f9ed:

  Linux 3.14-rc2 (2014-02-09 18:15:47 -0800)

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 09503379dc99535b1bbfa51aa1aeef340f5d82ec:

  x86/efi: Check status field to validate BGRT header (2014-02-14 10:07:15 +0000)

----------------------------------------------------------------
 * Fix boot failure on 32-bit EFI due to the recent EFI memmap changes
   merged during the merge window - Borislav Petkov

 * Avoid a crash during efi_bgrt_init() by detecting invalid BGRT
   headers based on the 'status' field.

----------------------------------------------------------------
Borislav Petkov (1):
      x86/efi: Fix 32-bit fallout

Matt Fleming (1):
      x86/efi: Check status field to validate BGRT header

 arch/x86/include/asm/efi.h       | 2 ++
 arch/x86/platform/efi/efi-bgrt.c | 2 +-
 arch/x86/platform/efi/efi.c      | 5 ++---
 arch/x86/platform/efi/efi_32.c   | 6 ++++++
 arch/x86/platform/efi/efi_64.c   | 9 +++++++++
 5 files changed, 20 insertions(+), 4 deletions(-)

-- 
Matt Fleming, Intel Open Source Technology Center

^ permalink raw reply	[flat|nested] 77+ messages in thread
* [GIT PULL] EFI urgent fixes
@ 2013-07-11 11:16 ` Matt Fleming
  0 siblings, 0 replies; 77+ messages in thread
From: Matt Fleming @ 2013-07-11 11:16 UTC (permalink / raw)
  To: H. Peter Anvin; +Cc: Ingo Molnar, linux-efi, linux-kernel

The following changes since commit 6d128e1e72bf082542e85f72e6b7ddd704193588:

  Revert "Makefile: Fix install error with make -j option" (2013-07-10 19:02:51 -0700)

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 8216a67eb5e92224b4509b7f55ec4891c9021fdb:

  Revert "UEFI: Don't pass boot services regions to SetVirtualAddressMap()" (2013-07-11 11:00:32 +0100)

----------------------------------------------------------------
 * Revert Matthew Garrett's patch that avoids passing EFI Boot Services
   regions to SetVirtualAddressMap(). It caused boot regressions.

 * Fix a crash in the efivars code by checking whether that EFI Runtime
   Services are available before attempting to use them.

----------------------------------------------------------------
Matt Fleming (2):
      efivars: check for EFI_RUNTIME_SERVICES
      Revert "UEFI: Don't pass boot services regions to SetVirtualAddressMap()"

 arch/x86/platform/efi/efi.c    | 7 -------
 drivers/firmware/efi/efivars.c | 3 +++
 2 files changed, 3 insertions(+), 7 deletions(-)

-- 
Matt Fleming, Intel Open Source Technology Center

^ permalink raw reply	[flat|nested] 77+ messages in thread
* [GIT PULL] EFI urgent fixes
@ 2013-06-07 11:50 ` Matt Fleming
  0 siblings, 0 replies; 77+ messages in thread
From: Matt Fleming @ 2013-06-07 11:50 UTC (permalink / raw)
  To: H. Peter Anvin; +Cc: Ingo Molnar, linux-kernel, linux-efi

Hi folks,

The following changes since commit eccaf52fee8305d5207ff110950a82c100e459bc:

  x86, efi: initial the local variable of DataSize to zero (2013-05-14 08:13:05 +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 d70005bfc5f47f74fb5cb77a84983ed26bf65557:

  efi: Convert runtime services function ptrs (2013-06-06 11:07:07 +0100)

----------------------------------------------------------------
 * More tweaking to the EFI variable anti-bricking algorithm. Quite a
   few users were reporting boot regressions in v3.9. This has now been
   fixed with a more accurate "minimum storage requirement to avoid
   bricking" value from Samsung (5K instead of 50%) and code to trigger
   garbage collection when we near our limit - Matthew Garrett.

 * A small cleanup to get rid of all the void * casting that is
   prevalent in the EFI code - Borislav Petkov

----------------------------------------------------------------
Borislav Petkov (1):
      efi: Convert runtime services function ptrs

Matthew Garrett (1):
      Modify UEFI anti-bricking code

 arch/x86/boot/compressed/eboot.c      |  47 ---------
 arch/x86/include/asm/efi.h            |  35 +++----
 arch/x86/include/uapi/asm/bootparam.h |   1 -
 arch/x86/platform/efi/efi.c           | 188 ++++++++++++----------------------
 include/linux/efi.h                   |  28 ++---
 5 files changed, 93 insertions(+), 206 deletions(-)

-- 
Matt Fleming, Intel Open Source Technology Center

^ permalink raw reply	[flat|nested] 77+ messages in thread
* [GIT PULL] EFI urgent fixes
@ 2013-05-17 10:18 ` Matt Fleming
  0 siblings, 0 replies; 77+ messages in thread
From: Matt Fleming @ 2013-05-17 10:18 UTC (permalink / raw)
  To: H. Peter Anvin; +Cc: Ingo Molnar, linux-efi, linux-kernel

Hi guys,

I've queued up some fixes for bugs that were introduced in the merge
window. Please consider pulling, thanks.

The following changes since commit f722406faae2d073cc1d01063d1123c35425939e:

  Linux 3.10-rc1 (2013-05-11 17:14:08 -0700)

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 eccaf52fee8305d5207ff110950a82c100e459bc:

  x86, efi: initial the local variable of DataSize to zero (2013-05-14 08:13:05 +0100)

----------------------------------------------------------------
 * Avoid confusing the user by returning -EIO instead of -ENOENT in
   efivarfs if an EFI variable gets deleted from under us and return EOF
   when reading from a zero-length file - Lingzhu Xiang

 * Fix an oops in efivar_update_sysfs_entries() caused by reusing (and
   therefore corrupting) a kzalloc() allocation - Seiji Aguchi

 * Initialise the DataSize argument to GetVariable() otherwise it will
   not be updated with the actual size of the variable on return.
   Discovered on a Acer Aspire V3 BIOS - Lee, Chun-Yi

----------------------------------------------------------------
Lee, Chun-Yi (1):
      x86, efi: initial the local variable of DataSize to zero

Lingzhu Xiang (1):
      efivarfs: Never return ENOENT from firmware again

Seiji Aguchi (1):
      efivar: fix oops in efivar_update_sysfs_entries() caused by memory reuse

 arch/x86/platform/efi/efi.c    |  2 +-
 drivers/firmware/efi/efivars.c |  8 +++-----
 fs/efivarfs/file.c             | 14 ++++++++++++--
 3 files changed, 16 insertions(+), 8 deletions(-)

-- 
Matt Fleming, Intel Open Source Technology Center

^ permalink raw reply	[flat|nested] 77+ messages in thread
* [GIT PULL] EFI urgent fixes
@ 2013-04-25  8:49 ` Matt Fleming
  0 siblings, 0 replies; 77+ messages in thread
From: Matt Fleming @ 2013-04-25  8:49 UTC (permalink / raw)
  To: H. Peter Anvin; +Cc: Ingo Molnar, Thomas Gleixner, linux-efi, linux-kernel

Hi folks,

The following changes since commit 8c58bf3eec3b8fc8162fe557e9361891c20758f2:

  x86,efi: Implement efi_no_storage_paranoia parameter (2013-04-17 15:13:38 +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 f697036b93aa7345d4cbb3c854a76456c0ddac45:

  efi: Check EFI revision in setup_efi_vars (2013-04-24 16:19:01 +0100)

----------------------------------------------------------------
 * The EFI variable anti-bricking algorithm merged in -rc8 broke booting
   on some Apple machines because they implement EFI spec 1.10, which
   doesn't provide a QueryVariableInfo() runtime function and the logic
   used to check for the existence of that function was insufficient.
   Fix from Josh Boyer.

 * The anti-bricking algorithm also introduced a compiler warning on
   32-bit. Fix from Borislav Petkov.

----------------------------------------------------------------
Borislav Petkov (1):
      x86, efi: Fix a build warning

Josh Boyer (1):
      efi: Check EFI revision in setup_efi_vars

 arch/x86/boot/compressed/eboot.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

-- 
Matt Fleming, Intel Open Source Technology Center

^ permalink raw reply	[flat|nested] 77+ messages in thread

end of thread, other threads:[~2015-07-31  7:56 UTC | newest]

Thread overview: 77+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-29 12:09 [GIT PULL] EFI urgent fixes Matt Fleming
2013-11-29 12:09 ` Matt Fleming
  -- 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
2015-02-18 11:55 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
2015-02-18 16:36     ` Ard Biesheuvel
2015-02-18 16:57     ` Ingo Molnar
2015-02-18 16:57       ` Ingo Molnar
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-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

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.