v2
2026-10-22
KHO 特性标志细化兼容匹配 · v2
Live Update 用每结构 feature header 替代整体版本串,并扩展 FD 保留按 handler 名称选择。
原始补丁链接
子 Patch(4)
1/4
liveupdate: Rename handler compatible to name
File handler and File-Lifecycle-Bound (FLB) identifiers name the registered handler or FLB rather than a monolithic compatibility version. Rename compatible to name across LUO headers, structures, and
2/4
liveupdate: Select file handler by name in the preserve ioctl
Currently luo_preserve_file() iterates over luo_file_handler_list and picks the first registered handler whose .can_preserve() callback returns true. When a subsystem introduces a new, backwards-incom
3/4
liveupdate: Replace compatibility string with a 2-bit pair feature header
LUO and its file handlers validate handed-over state with monolithic compatibility strings (“luo-v5”, “memfd-v2”). Any change to a serialized structure, even an optional additive one, must bump the st
4/4
mm: memfd_luo: Add the 2-bit pair feature header
Embed the fixed-size 128-byte struct luo_feature_hdr at the start of struct memfd_luo_ser and define enum memfd_luo_feature (MEMFD_LUO_FEAT_CORE and MEMFD_LUO_FEAT_MAX) for memfd preservation. All cu