diff options
| author | Steven Rostedt <[email protected]> | 2007-06-06 23:34:04 -0400 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2007-06-07 17:05:03 -0700 |
| commit | e5e3c84b70e58fc605635fd340fb8dba3cc59058 (patch) | |
| tree | 7ebba42dc0a402ef54bcbd4552e1fe47c519de2b /include/linux | |
| parent | c52ecdab06ff3b4d0f8914951eb74dc8b049f51c (diff) | |
enable interrupts in user path of page fault.
This is a minor fix, but what is currently there is essentially wrong.
In do_page_fault, if the faulting address from user code happens to be
in kernel address space (int *p = (int*)-1; p = 0xbed;) then the
do_page_fault handler will jump over the local_irq_enable with the
goto bad_area_nosemaphore;
But the first line there sees this is user code and goes through the
process of sending a signal to send SIGSEGV to the user task. This whole
time interrupts are disabled and the task can not be preempted by a
higher priority task.
This patch always enables interrupts in the user path of the
bad_area_nosemaphore.
Signed-off-by: Steven Rostedt <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions