Skip to content

fix(cozystack): stop disabling KVM nested virtualization in Talos skills#18

Merged
Aleksei Sviridkin (lexfrei) merged 1 commit into
mainfrom
fix/restore-nested-virt
Jul 9, 2026
Merged

fix(cozystack): stop disabling KVM nested virtualization in Talos skills#18
Aleksei Sviridkin (lexfrei) merged 1 commit into
mainfrom
fix/restore-nested-virt

Conversation

@lexfrei

Copy link
Copy Markdown
Contributor

Summary

The cozystack plugin's Talos skills no longer disable KVM nested virtualization. They stop writing kvm_intel.nested=0 / kvm_amd.nested=0 into generated node configs, and stop verifying those args after an upgrade.

Why

Turning nested virtualization off was a stopgap for CVE-2026-53359 ("Januscape"), adopted while no released Talos carried the kernel fix. Encoding it in the skills made it worse than a stopgap: talos-bootstrap injected the args into every generated nodes/<name>.yaml and flagged their absence during the pre-apply review, and cluster-upgrade re-checked the kernel command line afterwards. An operator who legitimately runs nested guests would have had the capability stripped at bootstrap, and would have been flagged as non-compliant every time they put it back. Nested virtualization is a feature real users depend on; the skills have no business taking it away.

It is also unnecessary now. CVE-2026-53359 and its sibling CVE-2026-46113 are use-after-free bugs in the KVM x86 shadow MMU (arch/x86/kvm/mmu/mmu.c), and a complete fix needs both upstream patches: 81ccda30b4e8 for the unexpected-role path and 0cb2af2ea66a for the unexpected-GFN path. Stable kernels are cumulative, so on the 6.18 branch both patches are present from 6.18.38 onwards. Talos v1.13.6 ships Linux 6.18.38 and therefore carries both fixes. Keeping nodes on a patched Talos release is the remedy; giving up the feature is not.

Change

  • talos-bootstrap skill: the generated node overlay no longer sets machine.install.grubUseUKICmdline / extraKernelArgs, and the pre-apply review no longer demands the nested=0 args.
  • talos-bootstrap reference (manual-steps.md): same block dropped from the node-config example.
  • cluster-upgrade reference (post-upgrade-checks.md): the post-upgrade /proc/cmdline check is gone.

The three files are restored byte-for-byte to their pre-mitigation state. Nothing else changes: the skills do not gain a Talos version gate, and no other guidance is touched.

The talos-bootstrap skill wrote kvm_intel.nested=0 / kvm_amd.nested=0
into every generated node config and flagged their absence during the
pre-apply review; the cluster-upgrade skill re-checked the kernel command
line afterwards. That turned a temporary workaround for CVE-2026-53359
into a permanent policy the skills enforced on the operator's behalf.
Nested virtualization is a feature real users depend on, and the skills
have no basis to take it away.

CVE-2026-53359 and its sibling CVE-2026-46113 are use-after-free bugs in
the KVM x86 shadow MMU, and both are fixed in the kernel. Linux 6.18.38
carries both upstream patches, and Talos v1.13.6 ships that kernel.
Running a patched Talos release is the remedy, so the host no longer has
to give up the feature.

Signed-off-by: Aleksei Sviridkin <f@lex.la>
@coderabbitai

coderabbitai Bot commented Jul 9, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@lexfrei, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 31 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: f28bb684-b399-4fc2-9284-a12527591c22

📥 Commits

Reviewing files that changed from the base of the PR and between 60f2fee and 8615d67.

📒 Files selected for processing (3)
  • plugins/cozystack/skills/cluster-upgrade/references/post-upgrade-checks.md
  • plugins/cozystack/skills/talos-bootstrap/SKILL.md
  • plugins/cozystack/skills/talos-bootstrap/references/manual-steps.md
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/restore-nested-virt

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@gemini-code-assist

Copy link
Copy Markdown

Warning

Gemini encountered an error creating the review. You can try again by commenting /gemini review.

@lexfrei Aleksei Sviridkin (lexfrei) merged commit a0b3e6d into main Jul 9, 2026
4 checks passed
@lexfrei Aleksei Sviridkin (lexfrei) deleted the fix/restore-nested-virt branch July 9, 2026 17:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant