From 764bb926bc5eab325f2f7217c834e96ba632e5cf Mon Sep 17 00:00:00 2001 From: hubin Date: Sat, 16 Sep 2023 08:21:35 +0000 Subject: [PATCH] lookup.c: maybe_discarded_sym() add __pfx_ pattern Linux-6.4 generates __pfx_{func} symbols for each function symbol {func}, however, vmlinux symtab will not contain these symbols, which will cause error when matching local symbols for changed objects. Signed-off-by: hubin --- kpatch-build/lookup.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kpatch-build/lookup.c b/kpatch-build/lookup.c index bd2b732de..2008cce7e 100644 --- a/kpatch-build/lookup.c +++ b/kpatch-build/lookup.c @@ -83,6 +83,7 @@ static bool maybe_discarded_sym(const char *name) !strncmp(name, "__brk_reservation_fn_", 21) || !strncmp(name, "__func_stack_frame_non_standard_", 32) || strstr(name, "__addressable_") || + strstr(name, "__pfx_") || strstr(name, "__UNIQUE_ID_") || !strncmp(name, ".L.str", 6) || is_ubsan_sec(name))