rhboot / efibootmgr

efibootmgr development tree
GNU General Public License v2.0
514 stars 97 forks source link

efibootmgr fails to create a new boot entry on Lenovo Yoga 80U2 #90

Closed ghost closed 4 years ago

ghost commented 6 years ago

When I try to create a new boot entry on a Lenovo 80U2 I get the following error log (dmesg):

[  +0.000037] Hardware name: LENOVO 80U2/Sofia, BIOS 2MCN32WW 07/14/2017
[  +0.000042] RIP: 0010:__x86_indirect_thunk_rcx+0x10/0x20
[  +0.000030] RSP: 0018:ffff9ec0409cfab8 EFLAGS: 00010082
[  +0.000030] RAX: 0000000000000002 RBX: 0000000000000002 RCX: 32cef000e987f000
[  +0.000038] RDX: 0000000000000000 RSI: 00000000ff53f000 RDI: fea5f0003304f000
[  +0.000038] RBP: ffff9ec0409cfba0 R08: ffff9ec0409cfb10 R09: ffff9ec0409cfc00
[  +0.000038] R10: 0000000000000000 R11: 000000000000007a R12: 0000000000000000
[  +0.000038] R13: 000000000008bfb0 R14: ffff9ec0409cfc00 R15: ffff9ec0409cfc08
[  +0.000039] FS:  00007f51f1135f80(0000) GS:ffff965337a80000(0000) knlGS:0000000000000000
[  +0.000043] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[  +0.000032] CR2: 00007f51f0d0a6c0 CR3: 0000000077570000 CR4: 00000000003406e0
[  +0.000038] Call Trace:
[  +0.000024]  ? mii_get_an+0x1a/0x70 [mii]
[  +0.000026]  ? select_task_rq_fair+0x3fe/0xac0
[  +0.000027]  ? preempt_count_add+0x49/0xa0
[  +0.000027]  ? try_module_get.part.15+0x5e/0xf0
[  +0.000028]  ? get_disk+0x3b/0x60
[  +0.000021]  ? ___slab_alloc+0x34e/0x680
[  +0.000024]  ? preempt_count_add+0x49/0xa0
[  +0.000025]  ? get_mem_cgroup_from_mm+0x82/0xe0
[  +0.000027]  ? memcg_kmem_get_cache+0xc5/0x1c0
[  +0.000026]  ? preempt_count_add+0x49/0xa0
[  +0.000026]  ? inode_init_always+0x123/0x1d0
[  +0.000026]  ? efi_call+0x58/0x90
[  +0.001549]  ? virt_efi_query_variable_info.part.3+0xb1/0x170
[  +0.001562]  ? efi_query_variable_store+0xb8/0x1a0
[  +0.001563]  ? __atime_needs_update+0x7f/0x190
[  +0.001604]  ? efivar_entry_set_get_size+0xb2/0x200
[  +0.001563]  ? efivar_entry_set_get_size+0xb2/0x200
[  +0.001564]  ? efivarfs_file_write+0xb0/0x160
[  +0.001634]  ? __vfs_write+0x36/0x180
[  +0.001567]  ? do_vfs_ioctl+0xa4/0x630
[  +0.001564]  ? vfs_write+0xb1/0x1a0
[  +0.001557]  ? SyS_write+0x52/0xc0
[  +0.001537]  ? SyS_ioctl+0x74/0x80
[  +0.001475]  ? do_syscall_64+0x74/0x190
[  +0.001420]  ? entry_SYSCALL_64_after_hwframe+0x3d/0xa2
[  +0.001375] Code: f3 90 0f ae e8 eb f9 48 89 1c 24 c3 0f 1f 44 00 00 66 2e 0f 1f 84 00 00 00 00 00 e8 07 00 00 00 f3 90 0f ae e8 eb f9 48 89 0c 24 <c3> 0f 1f 44 00 00 66 2e 0f 1f 84 00 00 00 00 00 e8 07 00 00 00 
[  +0.002819] RIP: __x86_indirect_thunk_rcx+0x10/0x20 RSP: ffff9ec0409cfab8
[  +0.001339] ---[ end trace 84604e1308a02e9a ]---
[  +0.001375] note: efibootmgr[776] exited with preempt_count 2

It does it when installing grub2 with --target=x86_64-efi and when creating manually the boot-entry efibootmgr -c -d /dev/mmcblk0 -p 1 -L "Gentoo" -l "\EFI\gentoo\vmlinuz-4.16.5-gentoo.efi"

I tried from a Gentoo livedvd chrooted environment and from an Archlinux installer, but always with the same error and no boot entry created.

vathpela commented 4 years ago

This is a kernel bug.