linux/arch/x86_64/mm
Steven Rostedt e5e3c84b70 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 <rostedt@goodmis.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-06-07 17:05:03 -07:00
..
Makefile [PATCH] x86_64: Flexmap for 32bit and randomized mappings for 64bit 2006-01-16 23:18:35 -08:00
extable.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
fault.c enable interrupts in user path of page fault. 2007-06-07 17:05:03 -07:00
init.c x86_64: allocate sparsemem memmap above 4G 2007-06-01 08:18:27 -07:00
ioremap.c Revert "[PATCH] x86: __pa and __pa_symbol address space separation" 2007-05-07 08:44:24 -07:00
k8topology.c [PATCH] x86-64: Don't enable NUMA for a single node in K8 NUMA scanning 2007-05-02 19:27:21 +02:00
mmap.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
numa.c [PATCH] x86-64: set node_possible_map at runtime - try 2 2007-05-02 19:27:20 +02:00
pageattr.c Revert "[PATCH] x86: __pa and __pa_symbol address space separation" 2007-05-07 08:44:24 -07:00
srat.c [PATCH] x86-64: set node_possible_map at runtime - try 2 2007-05-02 19:27:20 +02:00