Your Linux hosts take kernel live patches. Does that remove the need to reboot?
answer
- it substitutes code, not state
- a kernel-only mechanism
- data structure changes are reboot-only
- the stream is anchored to a base kernel
- the reboot moves rather than disappears
basics
~10 sNo. Live patching redirects individual kernel functions in memory, so it covers self-contained kernel fixes only. Data-structure changes, all userspace code and firmware still need a restart, and each patch stream is time-bounded.
solid answer
~50 sLive patching swaps the entry point of specific kernel functions in the running kernel, so a self-contained fix - a missing bounds check, a wrong return in an error path - genuinely takes effect without a boot. What it cannot do is change the layout or meaning of data structures already in use, or re-run initialisation, because there is no safe way to migrate live state; those fixes are reboot-only. It also covers nothing above the kernel: a patched shared library still needs every process that maps it to restart, and firmware still needs a power cycle. Finally, a live-patch stream is anchored to a base kernel and vendors support it for a bounded period; when that lapses you must boot the newer base anyway. So live patching moves the reboot, it does not delete it.
go deeper
Know that live patching changes kernel code in memory without a restart, and that it applies to the kernel only - not to services, libraries or firmware on the same machine.
Be ready to explain the mechanism and its boundary: function entry points are redirected, so code can be replaced but live data structures cannot be reshaped, which is why some fixes stay reboot-only.
Demonstrate that you treat live patching as a deferral with a clock on it - stream support ends, patches accumulate, and the boot path must actually carry the fixed kernel or a reboot regresses the host.
Own the estate-level trade: live patching buys uptime for hosts that genuinely cannot pause, but if it becomes the reason no reboot is ever scheduled, it manufactures exactly the permanently stale population you were trying to shrink.
## What live patching is Kernel live patching replaces the behaviour of individual functions inside a kernel that is already running. The patched function is compiled and loaded as a module, and the kernel's function-entry redirection machinery makes future calls to the original symbol land on the replacement instead. Calls that are already in flight finish on the old code; the kernel waits until no task is executing inside the affected functions before it flips them, which is why a live patch can occasionally take a while to become fully active on a busy machine. The attraction is obvious for the hosts this leaf is about: a virtualisation host carrying guests that cannot pause, a management appliance inside a change freeze, a node in a cloud control plane whose drain is expensive. Live patching is the honest answer to "we cannot take the downtime" - as long as you know exactly what it does not cover. ## The four limits **1. Only function-shaped fixes.** A live patch substitutes code. If the fix changes the layout of a structure, adds a field, alters the meaning of an existing field, or depends on initialisation that already ran at boot, there is no safe way to convert the live state that thousands of existing objects are already using. Vendors classify those as reboot-only. So the set of live-patchable fixes is a subset of kernel fixes, chosen by the vendor, and it is not you who decides. **2. Only the kernel.** This is the limit that catches people in review. A live-patched host is still running whatever userspace it started: a replaced shared library is still mapped into every daemon that loaded it before the install, and those daemons need to restart independently. Live patching gives you a current kernel and says nothing about the rest of the address spaces on the box. **3. Nothing below the kernel.** Device and platform firmware, and the out-of-band management controller, are on their own cadence. The controller in particular runs its own software on its own processor and stays powered when the host is off, so no amount of kernel live patching moves it. **4. The stream expires.** A live-patch stream is built against a specific base kernel. Vendors maintain it for a bounded period, after which fixes are only shipped for a newer base, and the only way onto that base is a boot. There is also a practical ceiling: patches accumulate on the running kernel, and the further the running state drifts from any shipped kernel, the more you are operating a configuration nobody else has. ## The state trap One detail worth knowing because it inverts the intuition of the whole leaf: the live patch lives in memory. Depending on how the estate is set up, a host that boots without the live patch being reapplied - or that boots an on-disk kernel image which was never updated - comes back up *less* patched than it was before the reboot. The usual arrangement reapplies patches early at boot and updates the on-disk kernel too, but this is a real failure mode and you should say it out loud rather than assume it. ## How to answer in an interview Do not answer "yes" or "no" flatly. Say what live patching moves - self-contained kernel function fixes, applied without downtime, which is genuinely valuable for hosts that cannot restart. Then name the three things it leaves behind: reboot-only kernel changes, all of userspace, and everything below the kernel. Then name the clock: the stream is bounded, so the reboot is deferred, not cancelled. A good closing line is that live patching converts an urgent, unplanned reboot into a scheduled one, and the value of that is real - but if the estate treats live patching as permission never to plan a reboot at all, it has quietly recreated the population that never completes a cycle.
- Which kernel fixes are typically not live-patchable, and why?Fixes that change data structure layout or field meaning, and fixes that depend on initialisation that already ran. Live patching swaps function code; it cannot migrate the millions of live objects and the state a running kernel already holds. Vendors mark those fixes reboot-only, and the classification is theirs, not yours.
- A live-patched host reboots. Can it come back less patched than before?Yes, and it is a real failure mode. The patch lives in memory, so unless it is reapplied early at boot and the on-disk kernel was also updated, the host comes back on the older base kernel. Verify that the boot path installs the fixed kernel rather than relying on the running state.
- Does live patching help with a vulnerable shared library on the same host?Not at all. It operates inside the kernel only. A replaced userspace library stays mapped in every process that loaded it before the install, so those processes still need restarts. A host can hold a fully current kernel and a fleet of daemons executing month-old vulnerable code.
saying these in an interview costs you the question
- Claims live patching means the host never needs a reboot
- Assumes it covers userspace libraries too
- Does not know some kernel fixes are reboot-only
- Ignores that a live-patch stream is time-bounded
- Assumes the on-disk kernel is updated automatically