[PATCH v4 05/19] kho: Add feature header for fine-grained ABI compatibility

sashiko-bot at kernel.org sashiko-bot at kernel.org
Tue Nov 10 22:16:34 PST 2026


> Serialized structures in KHO and Live Update Orchestrator currently rely
> on whole-structure compatibility strings or monolithic version fields to
> validate handed-over state across kexec. Any change to a serialized
> structure, even an optional additive field, requires bumping the
> compatibility string or version number and breaks live update between
> adjacent kernels.
> 
> Introduce a generic feature header (struct kho_ser_hdr) for serialized
> binary structures in include/linux/kho/abi/feature.h. Each subsystem
> groups the fields of its serialized structure under feature indices,
> starting with index 0 for base fields. When a subsystem adds a new
> capability, it appends new fields to the end of its payload structure
> under a new feature index. Retired fields are kept in place so existing
> field offsets never shift; if the type or format of a field needs to
> change, the existing field and feature are kept intact until retired and
> [ ... ]
> layout while deserialization helpers follow the incoming header.
> 
> Suggested-by: David Matlack <dmatlack at google.com>
> Suggested-by: Pasha Tatashin <pasha.tatashin at soleen.com>
> Signed-off-by: Tarun Sahu <tarunsahu at google.com>

Sashiko has reviewed this patch and found no issues.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261110050202.529473-1-tarunsahu@google.com?part=5




More information about the kexec mailing list