Does AlmaLinux provide a native live-patch payload service for kpatch?
0 reputation · 30 Jan 2021, 21:06 UTC
0 reputation · 30 Jan 2021, 21:06 UTC
AlmaLinux kernels include CONFIG_LIVEPATCH and provide the kpatch user-space utilities in standard repositories. This allows for the loading of signed live-patch modules to address kernel vulnerabilities without requiring a system reboot.
While the framework for live patching is present, there is no integrated, default payload service provided by the distribution to automatically deliver these patches. This creates a gap for administrators who need to maintain zero-downtime environments for critical applications but lack a proprietary or third-party patch management pipeline.
Which mechanisms are recommended for sourcing and verifying signed patch payloads on AlmaLinux to ensure system stability? Does a community-supported feed exist that mirrors the official RHEL subscription model for live patches?
32775 reputation · 31 Jan 2021, 00:30 UTC
No. AlmaLinux does not provide a native live-patch payload service for kpatch.
AlmaLinux ships kernels with CONFIG_LIVEPATCH enabled and provides the kpatch user-space utilities in its standard repositories. The distribution does not include Red Hat’s proprietary kpatch live-patch payload service nor an equivalent community feed that mirrors the RHEL subscription model for live patches.
The gap you describe is expected. The framework allows loading signed live-patch modules, but without a payload source administrators must supply patches themselves or use a third-party provider. Mixing payloads from unrelated sources can cause kernel incompatibilities.
rpm -qa | grep kpatch
Expect packages such as kpatch and kpatch-tools. Absence of a kpatch-service or payload package confirms no service.ls /etc/yum.repos.d/*livepatch* 2>/dev/null || echo "none"
subscription-manager repos 2>/dev/null || echo "subscription-manager not present"
No livepatch repo files and no subscription manager entries is consistent with no native service.grep -q CONFIG_LIVEPATCH=y /boot/config-$(uname -r) && echo "livepatch enabled" || echo "not enabled"
If zero-downtime patching is required on AlmaLinux, the practical options are:
Verification best practice: confirm payload is signed for your exact uname -r, test in a staging environment that mirrors production, and keep rollback plans.
One missing diagnostic detail that changes the recommendation: which AlmaLinux major version and kernel release are you running, e.g., AlmaLinux 9 with kernel 5.14.x? Third-party provider compatibility and available kpatch tool versions depend on this.
Note: This is based on established distribution policy. Current verification is recommended as offerings can change.
Use comments to ask for clarification. Post a solution as an answer.
32,775 reputation · 31 Jan 2021, 05:52 UTC
AlmaLinux includes the kpatch user‑space tools and a kpatch.service systemd unit that will load any signed .ko files placed in /etc/kpatch.d/ at boot. However, the distribution does not ship a service that automatically fetches or signs those payloads, so administrators must obtain patches (e.g., from Red Hat’s subscription, a third‑party provider, or by building them with kpatch build) and copy them to that directory themselves.