Skip to content

vz on Intel: kernel 6.12 doesn't boot (when CONFIG_X86_INTEL_MEMORY_PROTECTION_KEYS is set) #3334

@AkihiroSuda

Description

@AkihiroSuda

Linux kernel v6.12 does not boot with vz on Intel.

No error message is printed on video nor on serial.

✅ Boots

❌ Doesn't boot (still boots with QEMU)

The issue might be a regression in kernel 6.12, although Alpine still boots with kernel 6.12.

Note

Update: This turned out to be a regression in torvalds/linux@70044df250d0 x86/pkeys: Update PKRU to enable all pkeys before XSAVE.

Alpine is not affected because Alpine does not use CONFIG_X86_INTEL_MEMORY_PROTECTION_KEYS.

Test environment:

  • Lima v1.0.6
  • macOS 15.3.1
  • MacBook Pro 13-inch, 2020, Four Thunderbolt 3 ports (Intel(R) Core(TM) i7-1068NG7 CPU @ 2.30GHz)

Thanks to @trodemaster for originally reporting this issue.
https://cloud-native.slack.com/archives/C043N6ZFV9S/p1741464872994929


Workaround 1: use QEMU

limactl create --vm-type=qemu ...

Workaround 2: append nopku to the kernel cmdline

images:
- location: "https://cloud-images.ubuntu.com/plucky/20250310/plucky-server-cloudimg-amd64.img"
  arch: "x86_64"
  kernel:
    location: https://cloud-images.ubuntu.com/plucky/20250310/unpacked/plucky-server-cloudimg-amd64-vmlinuz-generic
    digest: sha256:547c4316eadc8e46b043b5658fd4c08d62b3522c07a7eb94692e1b7d8827bf52
    cmdline: root=LABEL=cloudimg-rootfs ro console=tty1 console=ttyAMA0 nopku
  initrd:
    location: https://cloud-images.ubuntu.com/plucky/20250310/unpacked/plucky-server-cloudimg-amd64-initrd-generic
    digest: sha256:2842bb61052f77c1f1301394c5db215e3d89696b122accd42b7a7b30ae0c64d4

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