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: <20250226220732.esiaz7jqskteitup@jpoimboe>
Date: Wed, 26 Feb 2025 14:07:32 -0800
From: Josh Poimboeuf <jpoimboe@...hat.com>
To: Steven Rostedt <rostedt@...dmis.org>
Cc: Kent Overstreet <kent.overstreet@...ux.dev>,
	James Bottomley <James.Bottomley@...senpartnership.com>,
	Greg KH <gregkh@...uxfoundation.org>,
	Miguel Ojeda <miguel.ojeda.sandonis@...il.com>,
	Ventura Jack <venturajack85@...il.com>,
	"H. Peter Anvin" <hpa@...or.com>, Alice Ryhl <aliceryhl@...gle.com>,
	Linus Torvalds <torvalds@...ux-foundation.org>,
	Gary Guo <gary@...yguo.net>, airlied@...il.com,
	boqun.feng@...il.com, david.laight.linux@...il.com,
	hch@...radead.org, ksummit@...ts.linux.dev,
	linux-kernel@...r.kernel.org, rust-for-linux@...r.kernel.org,
	Ralf Jung <post@...fj.de>, Peter Zijlstra <peterz@...radead.org>
Subject: Re: C aggregate passing (Rust kernel policy)

On Wed, Feb 26, 2025 at 12:47:33PM -0500, Steven Rostedt wrote:
> On Wed, 26 Feb 2025 12:41:30 -0500
> Kent Overstreet <kent.overstreet@...ux.dev> wrote:
> 
> > It's been awhile since I've looked at one, I've been just automatically
> > switching back to frame pointers for awhile, but - I never saw
> > inaccurate backtraces, just failure to generate a backtrace - if memory
> > serves.
> 
> OK, maybe if the bug was bad enough, it couldn't get access to the ORC
> tables for some reason.

ORC has been rock solid for many years, even for oopses.  Even if it
were to fail during an oops for some highly unlikely reason, it falls
back to the "guess" unwind which shows all the kernel text addresses on
the stack.

The only known thing that will break ORC is if objtool warnings are
ignored.  (BTW those will soon be upgraded to build errors by default)

ORC also gives nice clean stack traces through interrupts and
exceptions.  Frame pointers *try* to do that, but for async code flows
that's very much a best effort type thing.

So on x86-64, frame pointers are very much deprecated.  In fact we've
talked about removing the FP unwinder as there's no reason to use it
anymore.  Objtool is always enabled by default anyway.

-- 
Josh

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ