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: <aba52935dc06a1fe69f05309f5d9828a297ad787.camel@crowdstrike.com>
Date: Wed, 5 Feb 2025 00:13:26 +0000
From: Martin Kelly <martin.kelly@...wdstrike.com>
To: "rostedt@...dmis.org" <rostedt@...dmis.org>,
        "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
        "linux-trace-kernel@...r.kernel.org" <linux-trace-kernel@...r.kernel.org>,
        "bpf@...r.kernel.org" <bpf@...r.kernel.org>,
        "linux-kbuild@...r.kernel.org"
	<linux-kbuild@...r.kernel.org>
CC: "masahiroy@...nel.org" <masahiroy@...nel.org>,
        "akpm@...ux-foundation.org"
	<akpm@...ux-foundation.org>,
        "jpoimboe@...hat.com" <jpoimboe@...hat.com>,
        "peterz@...radead.org" <peterz@...radead.org>,
        "mark.rutland@....com"
	<mark.rutland@....com>,
        "mathieu.desnoyers@...icios.com"
	<mathieu.desnoyers@...icios.com>,
        "mhiramat@...nel.org"
	<mhiramat@...nel.org>,
        "torvalds@...ux-foundation.org"
	<torvalds@...ux-foundation.org>,
        "nicolas@...sle.eu" <nicolas@...sle.eu>,
        "nathan@...nel.org" <nathan@...nel.org>,
        "zhengyejian1@...wei.com"
	<zhengyejian1@...wei.com>,
        "christophe.leroy@...roup.eu"
	<christophe.leroy@...roup.eu>
Subject: Re: [PATCH v2 16/16] scripts/sorttable: ftrace: Do not add weak
 functions to available_filter_functions

On Thu, 2025-01-02 at 18:26 -0500, Steven Rostedt wrote:
> From: Steven Rostedt <rostedt@...dmis.org>
> 
> When a function is annotated as "weak" and is overridden, the code is
> not
> removed. If it is traced, the fentry/mcount location in the weak
> function
> will be referenced by the "__mcount_loc" section. This will then be
> added
> to the available_filter_functions list. Since only the address of the
> functions are listed, to find the name to show, a search of kallsyms
> is
> used.
> 
> Since kallsyms will return the function by simply finding the
> function
> that the address is after but before the next function, an address of
> a
> weak function will show up as the function before it. This is because
> kallsyms does not save names of weak functions. This has caused
> issues in
> the past, as now the traced weak function will be listed in
> available_filter_functions with the name of the function before it.
> 

I'm not necessarily a qualified reviewer for this patch, but I'm very
interested in seeing it or a similar solution get merged, as the impact
when it hits is significant (silent failure) and not easy to detect or
work around. Is there any obstacle left in getting this one merged
other than further reviews?

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ