Kernel panic on boot inside efivars_sysfs_init on MacBookPro8,1

Bug #1200570 reported by Nickolay Ihalainen
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Fix Released
High
Joseph Salisbury
Saucy
Fix Released
High
Joseph Salisbury

Bug Description

I'm not able to boot with any recent saucy kernel without patch applied:

--- drivers/firmware/efi/efivars.c.orig 2013-07-12 14:17:23.984697546 +0400
+++ drivers/firmware/efi/efivars.c 2013-07-12 14:18:16.192698944 +0400
@@ -583,6 +583,9 @@ int efivars_sysfs_init(void)
  struct kobject *parent_kobj = efivars_kobject();
  int error = 0;

+ if (!efi_enabled(EFI_RUNTIME_SERVICES))
+ return -ENODEV;
+
  /* No efivars has been registered yet */
  if (!parent_kobj)
   return 0;

ProblemType: Bug
DistroRelease: Ubuntu 13.10
Package: linux-image-3.10.0-2-generic 3.10.0-2.10
ProcVersionSignature: Ubuntu 3.10.0-2.10-generic 3.10.0
Uname: Linux 3.10.0-2-generic i686
NonfreeKernelModules: wl
ApportVersion: 2.10.2-0ubuntu4
Architecture: i386
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: ihanick 26732 F.... pulseaudio
 /dev/snd/pcmC0D0c: ihanick 26732 F...m pulseaudio
 /dev/snd/pcmC0D0p: ihanick 26732 F...m pulseaudio
 /dev/snd/timer: ihanick 26732 f.... pulseaudio
CurrentDmesg: [ 38.467672] ip6_tables: (C) 2000-2006 Netfilter Core Team
Date: Fri Jul 12 13:44:25 2013
HibernationDevice: RESUME=UUID=c6ee8164-6427-4804-a2cc-0deb8c289254
MachineType: Apple Inc. MacBookPro8,1
MarkForUpload: True
ProcFB: 0 inteldrmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.10.0-2-generic root=UUID=c5cbe32b-b343-4ed4-a961-2dd4dee6e6f6 ro quiet splash i915.i915_enable_rc6=15 i915.i915_enable_fbc=1 i915.lvds_downclock=1 pcie_aspm=force acpi_pme=native drm.vblankoffdelay=1 vt.handoff=7
RelatedPackageVersions:
 linux-restricted-modules-3.10.0-2-generic N/A
 linux-backports-modules-3.10.0-2-generic N/A
 linux-firmware 1.111
SourcePackage: linux
UpgradeStatus: Upgraded to saucy on 2013-07-09 (2 days ago)
dmi.bios.date: 01/24/12
dmi.bios.vendor: Apple Inc.
dmi.bios.version: MBP81.88Z.0047.B27.1201241646
dmi.board.asset.tag: Base Board Asset Tag#
dmi.board.name: Mac-94245B3640C91C81
dmi.board.vendor: Apple Inc.
dmi.board.version: MacBookPro8,1
dmi.chassis.type: 10
dmi.chassis.vendor: Apple Inc.
dmi.chassis.version: Mac-94245B3640C91C81
dmi.modalias: dmi:bvnAppleInc.:bvrMBP81.88Z.0047.B27.1201241646:bd01/24/12:svnAppleInc.:pnMacBookPro8,1:pvr1.0:rvnAppleInc.:rnMac-94245B3640C91C81:rvrMacBookPro8,1:cvnAppleInc.:ct10:cvrMac-94245B3640C91C81:
dmi.product.name: MacBookPro8,1
dmi.product.version: 1.0
dmi.sys.vendor: Apple Inc.

Revision history for this message
Nickolay Ihalainen (ihanick) wrote :
Revision history for this message
Brad Figg (brad-figg) wrote : Status changed to Confirmed

This change was made by a bot.

Changed in linux (Ubuntu):
status: New → Confirmed
Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

Can you provide some information on the status of the patch with regards to getting it merged upstream? Has it been sent upstream, what sort of feedback has it received, is it getting applied to a subsystem maintainer's tree, etc?

Changed in linux (Ubuntu):
importance: Undecided → High
tags: added: kernel-da-key
Revision history for this message
Nickolay Ihalainen (ihanick) wrote :

Hi Joseph,
I have found just this mailing list message:
https://lkml.org/lkml/2013/7/10/597

According to discussion it should be in 3.11
https://lkml.org/lkml/2013/7/13/65

Changed in linux (Ubuntu Saucy):
status: Confirmed → Triaged
Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

I'll build a Saucy test kernel with that patch and post a link to it shortly.

Changed in linux (Ubuntu Saucy):
assignee: nobody → Joseph Salisbury (jsalisbury)
status: Triaged → In Progress
Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

I built a test kernel with the patch. It can be downloaded from:
http://kernel.ubuntu.com/~jsalisbury/lp1200570/

Can you test that kernel and post back if it has this bug or not. Note, you will need to install both the linux-image and linux-image-extra .deb packages.

Thanks in advance!

Revision history for this message
Nickolay Ihalainen (ihanick) wrote :

Hi Joseph,
Yes, your kernel builds are good for me.

~# uname -a
Linux bb 3.10.0-3-generic #12~lp1200570v1 SMP Thu Jul 18 17:19:27 UTC 2013 i686 i686 i686 GNU/Linux

Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

This is fixed by the following commit, which is in mainline as of v3.11-rc2:

commit d320c079efd46db1be0640d00bd6723d9e738f9f
Author: Matt Fleming <email address hidden>
Date: Thu Jul 11 07:30:33 2013 +0100

    efivars: check for EFI_RUNTIME_SERVICES

Saucy will pick up this fix when it is rebased to v3.11-rc2. I'll submit this for inclusion in Saucy, until it is rebased.

Tim Gardner (timg-tpi)
Changed in linux (Ubuntu Saucy):
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package linux - 3.10.0-5.15

---------------
linux (3.10.0-5.15) saucy; urgency=low

  [ Andy Whitcroft ]

  * [Config] add iwldvm to nic-modules
    - LP: #1204194

  [ Tim Gardner ]

  * [Debian] Supply PKG_ABI in kmake
    - LP: #1193172
  * SAUCE: (no-up) hv: Supply vendor ID and package ABI
    - LP: #1193172

  [ Upstream Kernel Changes ]

  * efivars: check for EFI_RUNTIME_SERVICES
    - LP: #1200570
  * drm/radeon/hdmi: make sure we have an afmt block assigned
  * Input: elantech - fix for newer hardware versions (v7)
    - LP: #1166442
 -- Tim Gardner <email address hidden> Tue, 23 Jul 2013 07:42:49 -0600

Changed in linux (Ubuntu Saucy):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.