Skip to content
This repository was archived by the owner on Aug 7, 2025. It is now read-only.
This repository was archived by the owner on Aug 7, 2025. It is now read-only.

kernel OOPS at efivar_init with kernel-native #397

Description

@majst01

Describe the bug
When booting a fresh installation with kexec, the following OOPS occurs:

[   56.274341] kexec_core: Starting new kernel                                                                                                                                                                     
[    0.000000] Linux version 4.20.4-686.native (mockbuild@kojibld02) (gcc version 8.2.1 20180502 (Clear Linux OS for Intel Architecture)) #1 SMP Thu Jan 24 18:09:21 UTC 2019                                      
[    0.000000] Command line: console=tty0 console=ttyS0 root=PARTUUID=f35c50c2-45a9-4375-842d-c73d5108366b init=/usr/lib/systemd/systemd-bootchart initcall_debug tsc=reliable no_timer_check noreplace-smp rootfst
ype=ext4 net.ifnames=0 biosdevname=0 acpi_rsdp=0x3fbfa014                                                                                                                                                          

...

[    0.385551] BUG: unable to handle kernel NULL pointer dereference at 0000000000000000
[    0.385579] PGD 0 P4D 0
[    0.385579] Oops: 0010 [#1] SMP PTI
[    0.385579] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.20.4-686.native #1
[    0.385579] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 0.0.0 02/06/2015
[    0.385579] RIP: 0010:          (null)
[    0.385579] Code: Bad RIP value.
[    0.385579] RSP: 0000:ffffb542001c7d78 EFLAGS: 00010246
[    0.385579] RAX: 0000000000000000 RBX: ffff8b943d03a400 RCX: 0000000000000000
[    0.385579] RDX: ffffb542001c7dc0 RSI: ffff8b943d03a400 RDI: ffffb542001c7db8
[    0.385579] RBP: ffffb542001c7e30 R08: 0000000000000000 R09: 0000000000000000
[    0.385579] R10: 0000000000000000 R11: 0000000000000000 R12: ffffffffa2a5fbf2
[    0.385579] R13: ffffb542001c7e48 R14: ffffffffa29f67c5 R15: dead000000000100
[    0.385579] FS:  0000000000000000(0000) GS:ffff8b943f600000(0000) knlGS:0000000000000000
[    0.385579] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[    0.385579] CR2: ffffffffffffffd6 CR3: 000000003b808001 CR4: 00000000003606f0
[    0.385579] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[    0.385579] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[    0.385579] Call Trace:
[    0.385579]  ? efivar_init+0xb3/0x390
[    0.385579]  ? vprintk_default+0x1a/0x30
[    0.385579]  ? efivar_ssdt_setup+0x50/0x50
[    0.385579]  ? up+0x2d/0x60
[    0.385579]  ? efivar_ssdt_iter+0xe1/0xe1
[    0.385579]  ? do_early_param+0x94/0x94
[    0.385579]  efisubsys_init+0x132/0x2db
[    0.385579]  ? ktime_get+0x3b/0xb0
[    0.385579]  ? efivar_ssdt_iter+0xe1/0xe1
[    0.385579]  ? do_early_param+0x94/0x94
[    0.385579]  do_one_initcall+0x45/0x1bc
[    0.385579]  ? do_early_param+0x94/0x94
[    0.385579]  kernel_init_freeable+0x1e6/0x290
[    0.385579]  ? rest_init+0xaf/0xaf
[    0.385579]  kernel_init+0x9/0x101
[    0.385579]  ret_from_fork+0x35/0x40
[    0.385579] Modules linked in:
[    0.385579] CR2: 0000000000000000
[    0.385579] ---[ end trace 92830f0b9f2793c4 ]---
[    0.385579] RIP: 0010:          (null)
[    0.385579] Code: Bad RIP value.
[    0.385579] RSP: 0000:ffffb542001c7d78 EFLAGS: 00010246
[    0.385579] RAX: 0000000000000000 RBX: ffff8b943d03a400 RCX: 0000000000000000
[    0.385579] RDX: ffffb542001c7dc0 RSI: ffff8b943d03a400 RDI: ffffb542001c7db8
[    0.385579] RBP: ffffb542001c7e30 R08: 0000000000000000 R09: 0000000000000000
[    0.385579] R10: 0000000000000000 R11: 0000000000000000 R12: ffffffffa2a5fbf2
[    0.385579] R13: ffffb542001c7e48 R14: ffffffffa29f67c5 R15: dead000000000100
[    0.385579] FS:  0000000000000000(0000) GS:ffff8b943f600000(0000) knlGS:0000000000000000
[    0.385579] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[    0.385579] CR2: ffffffffffffffd6 CR3: 000000003b808001 CR4: 00000000003606f0
[    0.385579] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[    0.385579] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[    0.385621] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000009
[    0.386579] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000009 ]---

Expected behavior
Booting up to the login prompt

Screenshots
Environment (please complete the following information):
cat /usr/lib/os-release
NAME="Clear Linux OS"
VERSION=1
ID=clear-linux-os
ID_LIKE=clear-linux-os
VERSION_ID=27640
PRETTY_NAME="Clear Linux OS"
ANSI_COLOR="1;35"
HOME_URL="https://clearlinux.org"
SUPPORT_URL="https://clearlinux.org"
BUG_REPORT_URL="mailto:dev@lists.clearlinux.org"
PRIVACY_POLICY_URL="http://www.intel.com/privacy"

Installed bundles:
swupd bundle-add --no-boot-update
curl
jq
iproute2
openssh-server
package-utils
strace
sudo
kernel-install
kernel-native

My guess is that all clearlinux kernels do not have KEXEC enabled:

grep -i kexec config-4.20.4-native
# CONFIG_KEXEC is not set
# CONFIG_KEXEC_FILE is not set

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions