Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

livepatch/klp-build: improve short-circuit validation

Update SHORT_CIRCUIT behavior to better handle patch validation and
argument processing in later klp-build steps.

Perform patch validation for both step 1 (building original kernel) and
step 2 (building patched kernel) to ensure patches are verified before
any compilation occurs.

Additionally, allow the user to omit input patches when skipping past
step 2.

Acked-by: Song Liu <song@kernel.org>
Signed-off-by: Joe Lawrence <joe.lawrence@redhat.com>
Link: https://patch.msgid.link/20260310203751.1479229-9-joe.lawrence@redhat.com
Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>

authored by

Joe Lawrence and committed by
Josh Poimboeuf
e506ad21 b4a53519

+5 -2
+5 -2
scripts/livepatch/klp-build
··· 220 220 esac 221 221 done 222 222 223 - if [[ $# -eq 0 ]]; then 223 + if [[ $# -eq 0 ]] && (( SHORT_CIRCUIT <= 2 )); then 224 224 usage 225 225 exit 1 226 226 fi ··· 791 791 process_args "$@" 792 792 do_init 793 793 794 - if (( SHORT_CIRCUIT <= 1 )); then 794 + if (( SHORT_CIRCUIT <= 2 )); then 795 795 status "Validating patch(es)" 796 796 validate_patches 797 + fi 798 + 799 + if (( SHORT_CIRCUIT <= 1 )); then 797 800 status "Building original kernel" 798 801 clean_kernel 799 802 build_kernel