From 73ac36e1a2ad7bf716de2032f7ffa5fbc20f0491 Mon Sep 17 00:00:00 2001 From: lu21253 Date: Fri, 15 May 2026 14:56:18 +0800 Subject: [PATCH] lockup: x86_64 __pfx_ Skip symbols starting with __pfx_ 6.6 kernel version, each function symbol in vmlinux/ko has a corresponding __pfx_-prefixed symbol, but it is not present in .o files. When creating a patch file, the check for searching and matching local symbols fails. Signed-off-by: lu21253 --- kpatch-build/lookup.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kpatch-build/lookup.c b/kpatch-build/lookup.c index 1530cfb3..3c1720dc 100644 --- a/kpatch-build/lookup.c +++ b/kpatch-build/lookup.c @@ -108,6 +108,8 @@ static bool locals_match(struct lookup_table *table, int idx, continue; if (table_sym->type != STT_FUNC && table_sym->type != STT_OBJECT) continue; + if(!strncmp(table_sym->name, "__pfx_", 6)) + continue; found = 0; sym = file_sym; @@ -136,6 +138,8 @@ static bool locals_match(struct lookup_table *table, int idx, continue; if (sym->type != STT_FUNC && sym->type != STT_OBJECT) continue; + if(!strncmp(sym->name, "__pfx_", 6)) + continue; /* * Symbols which get discarded at link time are missing from * the lookup table, so skip them.