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: <20240820095641.1c74302f@gandalf.local.home>
Date: Tue, 20 Aug 2024 09:56:41 -0400
From: Steven Rostedt <rostedt@...dmis.org>
To: Mark Rutland <mark.rutland@....com>
Cc: Masami Hiramatsu <mhiramat@...nel.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, 20 Aug 2024 11:48:07 +0100
Mark Rutland <mark.rutland@....com> wrote:

> > 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...

Hmm, doesn't noinstr place the code in a separate section?

I wonder if we create a separate section for the test function that LTO is
inlining, if it will prevent it from being inlined. That is, noinline tells
the compiler not to inline, but LTO happens after the compiler is done and
may inline functions in the same section. But the linker does see separate
sections and I don't think it will try to inline that code into another
section. But I could be wrong. ;-)

-- Steve

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ