]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
klp-build: Reject patches to vDSO
authorJosh Poimboeuf <jpoimboe@kernel.org>
Sun, 12 Apr 2026 19:09:39 +0000 (12:09 -0700)
committerJosh Poimboeuf <jpoimboe@kernel.org>
Tue, 5 May 2026 04:16:03 +0000 (21:16 -0700)
vDSO code runs in userspace and can't be livepatched.  Such patches also
cause spurious "new function" errors due to generated files like
vdso*-image.c having unstable line numbers across builds.

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

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