]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
klp-build: Reject patches to realmode
authorJosh Poimboeuf <jpoimboe@kernel.org>
Mon, 20 Apr 2026 02:57:48 +0000 (19:57 -0700)
committerJosh Poimboeuf <jpoimboe@kernel.org>
Tue, 5 May 2026 04:16:03 +0000 (21:16 -0700)
Realmode code is compiled as a separate 16-bit binary and embedded into
the kernel image via rmpiggy.S.  It can't be livepatched.

Acked-by: Song Liu <song@kernel.org>
Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>
scripts/livepatch/klp-build

index a70d48d984532b70cb7582035d18b9998d5eb24f..2bb35de5db7575136c09ad59389dbe05482647f6 100755 (executable)
@@ -357,7 +357,7 @@ check_unsupported_patches() {
 
                for file in "${files[@]}"; do
                        case "$file" in
-                               lib/*|*/vdso/*|*.S)
+                               lib/*|*/vdso/*|*/realmode/rm/*|*.S)
                                        die "${patch}: unsupported patch to $file"
                                        ;;
                        esac