-
Notifications
You must be signed in to change notification settings - Fork 304
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ERROR in find_local_syms, couldn't find matching XXX local symbols in vmlinux symbol table #1360
Comments
Please try the latest kpatch code |
Hi, thanks for advice. I upgrade kpatch to latest version but still fail to make kpatch. My environment:
|
Might be a problem with the handling of CONFIG_PREFIX_SYMBOLS. This should have been handled by 3e54c63 but maybe there's a gap somewhere. Please post the output of |
[root@openEuler ~]# readelf -Ws /usr/src/linux-6.4.0-6.0.0.14.oe2309.x86_64/kernel/time/ntp.o
|
I compare the ELF data of ntp.o produced by kernel-5.10, the st_value is differenet
|
Yes, the 16 byte offset is expected, and should be dealt with by 3e54c63, are you sure you have that commit? Can you also post the output of |
In my case, when iterating ntp_update_frequency symbol, sym->pfx returns false and results mismatch between st_value and expected_offset |
Maybe this error is releated to this PR :#1350 |
so find_local_syms error happens because vmlinux.symtab does not contains maybe maybe_discarded_sym() should add |
seems that this patch can solve the find_local_syms error: diff --git a/kpatch-build/lookup.c b/kpatch-build/lookup.c
index bd2b732..2008cce 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)) |
This issue has been open for 30 days with no activity and no assignee. It will be closed in 7 days unless a comment is added. |
This issue was closed because it was inactive for 7 days after being marked stale. |
hi, I met the following error when making kpatch.
My environment infor
/root/.kpatch/build.log:
The following is my kernel patch:
Addition info produced by debug_info flag:
Thanks in advance for any suggestion or help! Is there any patch that may fix this error already?
The text was updated successfully, but these errors were encountered: