summaryrefslogtreecommitdiff
path: root/scripts/livepatch
diff options
context:
space:
mode:
authorJosh Poimboeuf <jpoimboe@kernel.org>2026-04-12 12:09:39 -0700
committerJosh Poimboeuf <jpoimboe@kernel.org>2026-05-04 21:16:03 -0700
commitd8c3e262361b04984f0322ce5b88ea52dab37318 (patch)
treed913011c2c98dd3dd4f0e481d8e481389fb58cce /scripts/livepatch
parentf3048888ea62ac1c573db91e74e0dcabe058e89f (diff)
downloadlinux-d8c3e262361b04984f0322ce5b88ea52dab37318.tar.gz
linux-d8c3e262361b04984f0322ce5b88ea52dab37318.zip
klp-build: Reject patches to vDSO
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>
Diffstat (limited to 'scripts/livepatch')
-rwxr-xr-xscripts/livepatch/klp-build2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/livepatch/klp-build b/scripts/livepatch/klp-build
index 9970e1f274ef..a70d48d98453 100755
--- a/scripts/livepatch/klp-build
+++ b/scripts/livepatch/klp-build
@@ -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