Skip to content

Commit

Permalink
um: fix call tracer and bug handler
Browse files Browse the repository at this point in the history
Commit 1de1502 ("x86, um: now we can get rid of trivial uml headers")
removed accidentally bug.h which broke UML's call tracer and bug
handler.

Without asm-generic/bug.h UML uses BUG() from arch/x86/ which makes use
of ud2.  UML cannot use ud2, it raises SIGILL in user mode.  As UML has
a different stack for handling signals the call trace will be cut off.

Signed-off-by: Richard Weinberger <richard@nod.at>
Reported-by: Sergei Trofimovich <slyich@gmail.com>
Tested-by: Sergei Trofimovich <slyich@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Richard Weinberger authored and Linus Torvalds committed Apr 14, 2011
1 parent ed5afea commit 6d56dad
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions arch/um/include/asm/bug.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#ifndef __UM_BUG_H
#define __UM_BUG_H

#include <asm-generic/bug.h>

#endif

0 comments on commit 6d56dad

Please sign in to comment.