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:	Wed, 06 Sep 2006 18:31:12 +1200
From:	Keith Owens <kaos@....com.au>
To:	Andi Kleen <ak@...e.de>
cc:	"Jan Beulich" <jbeulich@...ell.com>,
	"Badari Pulavarty" <pbadari@...il.com>,
	"J. Bruce Fields" <bfields@...ldses.org>,
	petkov@...h.uni-muenster.de, akpm@...l.org,
	"lkml" <linux-kernel@...r.kernel.org>
Subject: Re: Was: boot failure, "DWARF2 unwinder stuck at 0xc0100199" 

Andi Kleen (on Thu, 31 Aug 2006 09:41:40 +0200) wrote:
>P.S.: Badari, we worked out your kernel_math_context trace too:
>that one is actually a gcc bug related to dubious unwind tables generated
>for noreturn calls (in your case do_exit). We were still discussing the best 
>workaround for that one.

Lots of luck.  I logged a bug several years ago against gcc for ia64
with noreturn calls.  When gcc sees a call to a function marked
noreturn (like do_exit or panic), gcc has been known to discard all
code past that point.  The unwind code has to assume that the return
address is pointing into the previous function.  Where does the return
address point after a noreturn call compiled with the gcc bug?  - at
the start of the next function.  Goodbye unwind.

I asked that gcc always insert at least one instruction after a call to
a noreturn function.  That would keep the return address inside the
right function and the unwind code would work.  Ideally that
instruction would cause an error if it was ever executed (break 0 on
ia64, ud2 on i386/x86_64) but even a no-op would be good enough.  Most
of the ia64 list thought it was a good idea, the gcc team disagreed.
AFAIK the bug is still outstanding.

-
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