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: <ZsR0Z6DxSHOI-wNj@J2N7QTR9R3>
Date: Tue, 20 Aug 2024 11:48:07 +0100
From: Mark Rutland <mark.rutland@....com>
To: Masami Hiramatsu <mhiramat@...nel.org>
Cc: Steven Rostedt <rostedt@...dmis.org>,
	Linux Trace Kernel <linux-trace-kernel@...r.kernel.org>,
	linux-kernel@...r.kernel.org
Subject: Re: [BUG] tracing: dynamic ftrace selftest detected failures

On Tue, Aug 20, 2024 at 10:03:30AM +0900, Masami Hiramatsu wrote:
> On Mon, 19 Aug 2024 12:02:44 -0400
> Steven Rostedt <rostedt@...dmis.org> wrote:
> 
> > On Tue, 20 Aug 2024 00:56:49 +0900
> > Masami Hiramatsu (Google) <mhiramat@...nel.org> wrote:
> > > 
> > > > 
> > > > We may need to add "noinline" or something to make sure those functions
> > > > don't get inlined for LTO.  
> > > 
> > > Yeah, we need such option at least for function call test.
> > 
> > Could you add the noinline, and if it fixes the issue send a patch?
> 
> I found the target function already has "noinline". I tried to add noinline
> to the testing function (callsite), but it also did not work.
> I think "noinline" is for the compiler, but LTO is done by the linker.

If LTO is breaking noinline, then that has much larger implications for
noinstr code and similar, and means that LTO is unsound...

> I found a discussion similar to this problem, but it seems very hacky.
> 
> https://groups.google.com/g/llvm-dev/c/6baI9LISmSU/m/uEeY_CRbBQAJ?pli=1

Thanks for the link!

Mark.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ