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]
Date:	Sat, 30 Sep 2006 14:11:06 -0700 (PDT)
From:	Linus Torvalds <torvalds@...l.org>
To:	Ingo Molnar <mingo@...e.hu>
cc:	Andi Kleen <ak@...e.de>, Eric Rannaud <eric.rannaud@...il.com>,
	Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
	Andrew Morton <akpm@...l.org>, nagar@...son.ibm.com,
	Chandra Seetharaman <sekharan@...ibm.com>,
	Jan Beulich <jbeulich@...ell.com>
Subject: Re: BUG-lockdep and freeze (was: Arrr! Linux 2.6.18)



On Sat, 30 Sep 2006, Ingo Molnar wrote:
> 
> (i'd have been happy with an %rbp based unwinder for x86_64, in fact i 
> implemented it for lockdep and used it for some time on x86_64, but Andi 
> wanted a dwarf-based, lower-overhead one. Andi also nicely integrated it 
> into stacktrace.c.)

I wouldn't mind the dawrf-based one so much, if it wasn't so obviously 
crap.

It could - and _should_ dammit! - do some basic sanity tests like "is the 
thing even in the same stack page"? But nooo... It seems _designed_ to be 
fragile and broken.

Here's a simple test: if the next stack-slot isn't on the same page, the 
unwind information is bogus unless you had the IRQ stack-switch signature 
there. Does the code do that? No. It just assumes that unwind information 
is complete and perfect.

That's not the kind of code we write in the kernel. In the kernel, we 
write code that _works_, regardless of the kind of horrible stuff people 
feed it. That's _doubly_ true for something like a stack frame debugger, 
which is invoced when there is trouble, and for all we know the stack 
itself MIGHT BE CORRUPT.

In short, I think the stack unwinder is just _broken_. It has made all the 
wrong policy decisions - it only works when everything is perfect, yet 
it's actually meant to be _used_ when somethign bad happened. Doesn't that 
strike anybody else as a totally flawed design?

It damn well should.

		Linus
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ