Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 2926
b: refs/heads/master
c: df164db
h: refs/heads/master
v: v3
  • Loading branch information
Alexander Nyberg authored and Linus Torvalds committed Jun 23, 2005
1 parent d3c78d5 commit 28ff394
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5f45f1a78fbac3cc859ec10c5366e97d20d40fa2
refs/heads/master: df164db5fd16888ddbe2a63a47b2f6dda9a428b5
11 changes: 11 additions & 0 deletions trunk/kernel/exit.c
Original file line number Diff line number Diff line change
Expand Up @@ -793,6 +793,17 @@ fastcall NORET_TYPE void do_exit(long code)
ptrace_notify((PTRACE_EVENT_EXIT << 8) | SIGTRAP);
}

/*
* We're taking recursive faults here in do_exit. Safest is to just
* leave this task alone and wait for reboot.
*/
if (unlikely(tsk->flags & PF_EXITING)) {
printk(KERN_ALERT
"Fixing recursive fault but reboot is needed!\n");
set_current_state(TASK_UNINTERRUPTIBLE);
schedule();
}

tsk->flags |= PF_EXITING;

/*
Expand Down

0 comments on commit 28ff394

Please sign in to comment.