um: Make stack trace reliable against kernel mode faults
As UML uses an alternative signal stack we cannot use the current stack pointer for stack dumping if UML itself dies by SIGSEGV. To bypass this issue we save regs taken from mcontext in our segv handler into thread_struct and use these regs to obtain the stack pointer in show_stack(). Signed-off-by: Richard Weinberger <richard@nod.at>
This commit is contained in:
@@ -21,6 +21,7 @@ struct mm_struct;
|
||||
struct thread_struct {
|
||||
struct task_struct *saved_task;
|
||||
struct pt_regs regs;
|
||||
struct pt_regs *segv_regs;
|
||||
int singlestep_syscall;
|
||||
void *fault_addr;
|
||||
jmp_buf *fault_catcher;
|
||||
|
||||
Reference in New Issue
Block a user