Repository navigation
Livepatches for Proxmox VE 9's default kernel series 7.0 (experimental):
7.0.14-30-pve has been built, tested in QEMU and run on a three-node test
cluster under guest load (docs/kernel-7.0.md).
Also: a signed revocation list, states for fixes with callbacks, CVE
scanning against the kernel CNA's data, a stricter split of the build into
four containers, and integrations (Checkmk, Ansible, notification hook).
Upgrading: install the new package on the nodes; the configuration is
unchanged. Build hosts: rebuild the builder image (run.sh does), and keep
using your keys. Nodes that have accepted a revocation list once do not
load anything new while the repository withholds it.
Changed (build side)
- Separate containers in
run.sh: fetch (the shipped packages,
read-only for every later stage), build (repository read-only, no keys),
sign (only the key and the output, no kernel tree, no catalog, no
network) and QEMU test (no tree, no keys, no network). A malicious catalog
patch or kernel Makefile can no longer reach the signing key, change the
build scripts or the artifacts the module is checked against. Later
stages read the build output as untrusted data (regular files only, no
symlinks; values checked), the signing stage runs Gate A again, and no
stage after the build runs code from the kernel tree (own build-id
extractor and initramfs writer). The agent rejects manifests whose
provenance fields have an unexpected format. - Module signing with Debian's
sign-fileinstead of the one built
from the kernel tree, and the signature is verified against the
certificate with openssl before anything is published. - Kernel source pinned in
builder/kernels.lock; a moved tag or a
reused tree that is not clean stops the build. - Publishing:
publish.sh(fresh builds, ring canary) andpromote.sh
(promote exactly what the ring below serves, after verifying its
signature and the module hash) replacesign-manifest.sh. Published
files are never overwritten, levels only go up per ring, and each ring is
a symlink switched atomically, so readers never see a manifest without
its signature. - QEMU stage: runs the catalog reproducers before, with, after and
again with the patch; loads the target modules after the livepatch and
checks they are patched; checksreplace=1; patch/unpatch cycles under
load. - GPL: every build has a corresponding-source bundle (patches, kernel
tarball, config, toolchain, scripts), published next to the module. - HTTP repositories time out after 15 s when they cannot be reached at
all, instead of waiting for the 300 s download timeout (hvpatch check
hung on a dropped connection). - The boot reload of a level below the highest one accepted (after a
revocation) is a restore, not a rollback. resolverefuses "already contained" when it contradicts the entry's
fixed_in_pve; Gate A treats a missing shipped module as an error;
compressed shipped modules are unpacked;build.shstarts from an empty
output directory and marks a dirty catalog.cve-scan --containedonly counts real backport markers ("cherry picked
from", "commit … upstream", "Upstream commit") and leaves out reverted
backports;Fixes:lines do not hide a CVE.- CI compares the catalog patches with the upstream commits (
git patch-id), as documented. The commits come from git.kernel.org (mainline
or stable) only, which serves nothing outside its own history. run.shmounts single directories per stage, never the whole build
directory, and checks on the host thatout/andshipped/are still
plain directories before the next stage.
Added
-
FROM_STAGE=3 builder/run.shrepeats only the QEMU stage for the
signed module already inout/. -
hvpatch-tool status-page: static HTML overview of a repository (rings
per kernel, CVEs fixed live, reboot-only CVEs, revoked levels). -
docs/threat-model.mdanddocs/key-management.md(two keys, offline
manifest key, rotation without a flag day, what to do after a leak). -
Integrations (
contrib/): Checkmk local check, notification hook
example, Ansible role and a rollout playbook (canary first, one node at a
time, stop at the first unhealthy node). Shipped as examples in the
Debian package. -
States for fixes with callbacks or shadow variables (catalog
states, manifeststates): a level must carry every state of the
active level at the same or a higher version, or the agent refuses it
before loading (klp-build modules do not declare states to the kernel
yet). Manifests without states are unchanged, so older agents keep
reading them. Guide:docs/writing-fixes.md. -
hvpatch-tool cve-scanandbuilder/cve-scan.sh: kernel CVEs that
affect a Proxmox kernel and are not in the catalog yet, from the kernel
CNA's vulns.git, with CVSS, CISA KEV and EPSS, prioritised P0–P2 for
hypervisors, with catalog drafts. For 7.0, backports in the kernel tree
are recognised by the mainline commit they name. -
7.0 kernel series (experimental):
fetch-source.shprepares the
Ubuntu-based tree frompve-kernel.gitas Proxmox does (pinned
pve-kernel commit, release checked against its Makefile) and adds the
six upstream objtool commits the tree lacks forobjtool klp
(builder/kernel-7.0/, seedocs/kernel-7.0.md). Checked: the patches
apply to Proxmox 7.0.14-30 and objtool builds with libxxhash; a 7.0
livepatch has not been through the QEMU stage and a host yet. -
Catalog:
fixed_in_pvetakes one version per kernel series and is only
compared within a series; patches can be given per series ("7.0") as
well as per package version. -
Signed revocation list (
v1/revoked.json,builder/revoke.sh,
hvpatch-tool revoke): a revoked module is never loaded again, not even
explicitly; nodes that run it go back to the highest cached level below
it on their next timer run, or unload it. Sequence numbers only go up
(no replay); the list is cached for the boot reload. Once a list was
accepted, nothing new is loaded while the repository withholds it. -
Reboot recommendation:
hvpatch statusnames a newer installed
kernel that waits for the next reboot (reboot reason, exit code 10,
metrichvpatch_newer_kernel_installed). Livepatches bridge the time to
the maintenance window; they do not replace booting the new kernel.
Install
wget https://github.com/prepaid-host/hvpatch/releases/download/v0.3.0/hvpatch_amd64.deb
apt install ./hvpatch_amd64.deb
hvpatch setup --repository <your repository> --key <manifest key>Verify
sha256sum -c SHA256SUMS --ignore-missing
gh attestation verify hvpatch_amd64.deb --repo prepaid-host/hvpatch