lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <7E4D8E14-6FFF-4A40-A29B-4DC48F5DDD28@fb.com>
Date: Tue, 13 Aug 2024 21:16:59 +0000
From: Song Liu <songliubraving@...a.com>
To: Song Liu <song@...nel.org>
CC: "live-patching@...r.kernel.org" <live-patching@...r.kernel.org>,
        LKML
	<linux-kernel@...r.kernel.org>,
        "linux-trace-kernel@...r.kernel.org"
	<linux-trace-kernel@...r.kernel.org>,
        Josh Poimboeuf <jpoimboe@...nel.org>, Jiri Kosina <jikos@...nel.org>,
        Miroslav Benes <mbenes@...e.cz>, "pmladek@...e.com" <pmladek@...e.com>,
        "joe.lawrence@...hat.com"
	<joe.lawrence@...hat.com>,
        "nathan@...nel.org" <nathan@...nel.org>,
        "morbo@...gle.com" <morbo@...gle.com>,
        "justinstitt@...gle.com"
	<justinstitt@...gle.com>,
        "mcgrof@...nel.org" <mcgrof@...nel.org>,
        "thunder.leizhen@...wei.com" <thunder.leizhen@...wei.com>,
        "kees@...nel.org"
	<kees@...nel.org>,
        Kernel Team <kernel-team@...a.com>,
        "mmaurer@...gle.com"
	<mmaurer@...gle.com>,
        "samitolvanen@...gle.com" <samitolvanen@...gle.com>,
        "mhiramat@...nel.org" <mhiramat@...nel.org>,
        "rostedt@...dmis.org"
	<rostedt@...dmis.org>
Subject: Re: [PATCH v3 2/2] kallsyms: Match symbols exactly with
 CONFIG_LTO_CLANG



> On Aug 7, 2024, at 3:05 PM, Song Liu <song@...nel.org> wrote:
> 
> With CONFIG_LTO_CLANG=y, the compiler may add .llvm.<hash> suffix to
> function names to avoid duplication. APIs like kallsyms_lookup_name()
> and kallsyms_on_each_match_symbol() tries to match these symbol names
> without the .llvm.<hash> suffix, e.g., match "c_stop" with symbol
> c_stop.llvm.17132674095431275852. This turned out to be problematic
> for use cases that require exact match, for example, livepatch.
> 
> Fix this by making the APIs to match symbols exactly.
> 
> Also cleanup kallsyms_selftests accordingly.
> 
> Signed-off-by: Song Liu <song@...nel.org>

Fixes: 8cc32a9bbf29 ("kallsyms: strip LTO-only suffixes from promoted global functions")

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ