Skip to content

kpatch-build: allow setting patch module version metadata - #1527

Open
dma-neb wants to merge 1 commit into
dynup:masterfrom
dma-neb:module_version
Open

dma-neb wants to merge 1 commit into
dynup:masterfrom
dma-neb:module_version

Conversation

@dma-neb

@dma-neb dma-neb commented Sep 28, 2026

Copy link
Copy Markdown

Add --module-version to let callers identify a generated patch module using standard MODULE_VERSION metadata. Write it to the temporary module glue, where it survives diff extraction, and verify the final module's version. Leave builds without the option unchanged.

Validate the value before using it in a C string. Document the option and add CLI regression tests to make check without requiring a kernel build or root access. Install gawk in CI for kpatch-build's existing dependency.

The version is a caller-supplied identifier, not livepatch activation state or a symbol version CRC. No source repository or CI integration is assumed.

Add --module-version to let callers identify a generated patch module using
standard MODULE_VERSION metadata. Write it to the temporary module glue,
where it survives diff extraction, and verify the final module's version.
Leave builds without the option unchanged.

Validate the value before using it in a C string. Document the option and
add CLI regression tests to make check without requiring a kernel build
or root access. Install gawk in CI for kpatch-build's existing dependency.

The version is a caller-supplied identifier, not livepatch activation state
or a symbol version CRC. No source repository or CI integration is assumed.

Signed-off-by: Dmitry Malkin <dma@nebius.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant