On Fri, Jun 02, 2023 at 04:24:01PM -0700, Song Liu wrote: > With CONFIG_LTO_CLANG, kallsyms.c:cleanup_symbol_name() removes symbols > suffixes during comparison. This is problematic for livepatch, as > kallsyms_on_each_match_symbol may find multiple matches for the same > symbol, and fail with: > > livepatch: unresolvable ambiguity for symbol 'xxx' in object 'yyy' > > Fix this by using kallsyms_on_each_symbol instead, and matching symbols > exactly. > > Signed-off-by: Song Liu <song@xxxxxxxxxx> Acked-by: Josh Poimboeuf <jpoimboe@xxxxxxxxxx> -- Josh