diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/i386/mm/fault.c | 5 | ||||
-rw-r--r-- | arch/x86_64/mm/fault.c | 6 |
2 files changed, 11 insertions, 0 deletions
diff --git a/arch/i386/mm/fault.c b/arch/i386/mm/fault.c index 29d7d61543a1..1ecb3e43b523 100644 --- a/arch/i386/mm/fault.c +++ b/arch/i386/mm/fault.c | |||
@@ -458,6 +458,11 @@ bad_area: | |||
458 | bad_area_nosemaphore: | 458 | bad_area_nosemaphore: |
459 | /* User mode accesses just cause a SIGSEGV */ | 459 | /* User mode accesses just cause a SIGSEGV */ |
460 | if (error_code & 4) { | 460 | if (error_code & 4) { |
461 | /* | ||
462 | * It's possible to have interrupts off here. | ||
463 | */ | ||
464 | local_irq_enable(); | ||
465 | |||
461 | /* | 466 | /* |
462 | * Valid to do another page fault here because this one came | 467 | * Valid to do another page fault here because this one came |
463 | * from user space. | 468 | * from user space. |
diff --git a/arch/x86_64/mm/fault.c b/arch/x86_64/mm/fault.c index bfb62a13d7ee..635e58d443d7 100644 --- a/arch/x86_64/mm/fault.c +++ b/arch/x86_64/mm/fault.c | |||
@@ -476,6 +476,12 @@ bad_area: | |||
476 | bad_area_nosemaphore: | 476 | bad_area_nosemaphore: |
477 | /* User mode accesses just cause a SIGSEGV */ | 477 | /* User mode accesses just cause a SIGSEGV */ |
478 | if (error_code & PF_USER) { | 478 | if (error_code & PF_USER) { |
479 | |||
480 | /* | ||
481 | * It's possible to have interrupts off here. | ||
482 | */ | ||
483 | local_irq_enable(); | ||
484 | |||
479 | if (is_prefetch(regs, address, error_code)) | 485 | if (is_prefetch(regs, address, error_code)) |
480 | return; | 486 | return; |
481 | 487 | ||