[RFC PATCH v3 4/4] liveupdate: Add KUnit test for the feature header helpers

sashiko-bot at kernel.org sashiko-bot at kernel.org
Mon Oct 26 10:53:55 PDT 2026


> Add a KUnit test suite in lib/tests/liveupdate_feature_kunit.c covering
> the Live Update feature header declared in include/linux/kho/abi/luo.h.
> 
> The suite contains two focused test cases:
> - luo_ser_hdr_set_get_test: verifies DECLARE_LUO_SER_WRAP structure
>   sizing, header initialization, payload pointer resolution, and 2-bit
>   feature flag setting and retrieval across flags entry boundaries,
>   including out-of-range queries.
> - luo_ser_hdr_truth_table_test: verifies luo_ser_hdr_validate against
>   all rows of the feature state truth table (absent, optional,
>   required, and reserved 0b10 encodings), as well as empty supported
>   tables.
> 
> 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/20261026174217.603114-1-tarunsahu@google.com?part=4




More information about the kexec mailing list