The following commit has been merged into the objtool/core branch of tip:
Commit-ID: d8c3e262361b04984f0322ce5b88ea52dab37318
Gitweb: https://git.kernel.org/tip/d8c3e262361b04984f0322ce5b88ea52dab37318
Author: Josh Poimboeuf <jpoimboe@kernel.org>
AuthorDate: Sun, 12 Apr 2026 12:09:39 -07:00
Committer: Josh Poimboeuf <jpoimboe@kernel.org>
CommitterDate: Mon, 04 May 2026 21:16:03 -07:00
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>
---
scripts/livepatch/klp-build | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/livepatch/klp-build b/scripts/livepatch/klp-build
index 9970e1f..a70d48d 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