Skip to content

Commit 6d56dad

Browse files
richardweinbergertorvalds
authored andcommitted
um: fix call tracer and bug handler
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 <[email protected]> Reported-by: Sergei Trofimovich <[email protected]> Tested-by: Sergei Trofimovich <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent ed5afea commit 6d56dad

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

arch/um/include/asm/bug.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#ifndef __UM_BUG_H
2+
#define __UM_BUG_H
3+
4+
#include <asm-generic/bug.h>
5+
6+
#endif

0 commit comments

Comments
 (0)