News › linux

Kmorph proposes Linux crash recovery through an already-running successor kernel

By The Linux Camp News, November 8, 2026

Announced November 6, kmorph uses out-of-tree multikernel support to take over after a kernel crash. Its author reports nginx serving again within two seconds, but hardware validation and workload recovery remain evaluation questions.

Cong Wang announced kmorph on November 6, 2026, at 21:56 UTC: a tool intended to recover a Linux machine from a kernel crash without rebooting. It builds on multikernel, which runs several Linux kernels alongside one another on the same machine. This is a tool announcement, not a mainline kernel feature release. In the reporting retrieved November 8, Phoronix identifies the required multikernel work as out of tree and says kmorph cannot run on an unmodified mainline kernel. 2 1

The central change is to do the replacement kernel's boot work before a failure. Each multikernel instance owns separate CPUs, memory and devices, communicating with its peers over vsock. Kmorph starts a successor kernel on one or two CPUs and a portion of memory beside the production kernel, called the predecessor. That successor watches the predecessor. The operational tradeoff follows directly: recovery avoids waiting for a new kernel to boot, but standby operation consumes CPU and memory resources beforehand. 2

After a panic or hang, the successor fences the predecessor's CPUs, isolating them for the takeover, then adopts and resets its devices and restores the machine's network identity. It can optionally save a kdump-compatible vmcore, a kernel crash dump. Finally, it hot-adds the remaining CPUs and memory, bringing those resources into the running successor rather than booting another production kernel. Device recovery and resource handover are therefore essential parts of the mechanism, not merely service restarts. 2

Selected services can also start before the failure. In Wang's nginx example, a standby instance already runs inside the successor with its ports bound. After taking over the network interface and addresses, the successor uses pivot_root to switch to the real disk's root filesystem, and systemd starts the other services around nginx. The distinction matters for application planning: this keeps the standby nginx instance running; it does not establish transparent migration of every process from the failed kernel, or preservation of existing client connections. 2

Wang reports approximately one second from detection to a running successor, and nginx serving requests within two seconds of the crash in the project's testing. Those are different milestones: kernel takeover is not the same measurement as application availability. They are project-reported results, not independently validated recovery guarantees. The announcement provides no reproducible benchmark setup or sample count, and explicitly describes zero downtime as a goal rather than the demonstrated result. 1 2

The kernel changes, rather than kmorph itself, implement fencing, device handover and resource hot-add; kmorph is C orchestration over those interfaces. Wang describes integration through dracut, initramfs-tools, kernel-install and a systemd service, making boot-image preparation and service configuration part of an evaluation. In the announcement retrieved November 8, he reports operation on x86_64 and ARM64, with RISC-V support still in progress. Architecture support alone is not a device-level compatibility guarantee. 2

Treat evaluation as an early integration and hardware-validation exercise, not a production recovery commitment. That recommendation follows Wang's own description of the project as early and his request for real-hardware testing. Useful acceptance questions include whether the target hardware completes takeover, whether the intended workloads recover correctly, and what fallback is needed when takeover fails. The announcement does not supply a versioned compatibility matrix or resolve those failure-path questions. 2

Sources

Courses