Skip to content
  1. Mar 18, 2014
    • Matt Fleming's avatar
      x86/efi: Rip out phys_efi_get_time() · 3f4a7836
      Matt Fleming authored
      
      
      Dan reported that phys_efi_get_time() is doing kmalloc(..., GFP_KERNEL)
      under a spinlock which is very clearly a bug. Since phys_efi_get_time()
      has no users let's just delete it instead of trying to fix it.
      
      Note that since there are no users of phys_efi_get_time(), it is not
      possible to actually trigger a GFP_KERNEL alloc under the spinlock.
      
      Reported-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
      Cc: Ingo Molnar <mingo@kernel.org>
      Cc: H. Peter Anvin <hpa@zytor.com>
      Cc: Nathan Zimmer <nzimmer@sgi.com>
      Cc: Matthew Garrett <mjg59@srcf.ucam.org>
      Cc: Jan Beulich <JBeulich@suse.com>
      Signed-off-by: default avatarMatt Fleming <matt.fleming@intel.com>
      3f4a7836
    • Matt Fleming's avatar
      x86/efi: Preserve segment registers in mixed mode · e10848a2
      Matt Fleming authored
      
      
      I was triggering a #GP(0) from userland when running with
      CONFIG_EFI_MIXED and CONFIG_IA32_EMULATION, from what looked like
      register corruption. Turns out that the mixed mode code was trashing the
      contents of %ds, %es and %ss in __efi64_thunk().
      
      Save and restore the contents of these segment registers across the call
      to __efi64_thunk() so that we don't corrupt the CPU context.
      
      Signed-off-by: default avatarMatt Fleming <matt.fleming@intel.com>
      e10848a2
  2. Mar 06, 2014
  3. Mar 05, 2014
  4. Mar 03, 2014