diff options
Diffstat (limited to 'arch/x86/mm/fault_64.c')
-rw-r--r-- | arch/x86/mm/fault_64.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/mm/fault_64.c b/arch/x86/mm/fault_64.c index 5149ac136a5d..7c560843ded1 100644 --- a/arch/x86/mm/fault_64.c +++ b/arch/x86/mm/fault_64.c | |||
@@ -378,7 +378,7 @@ asmlinkage void __kprobes do_page_fault(struct pt_regs *regs, | |||
378 | again: | 378 | again: |
379 | /* When running in the kernel we expect faults to occur only to | 379 | /* When running in the kernel we expect faults to occur only to |
380 | * addresses in user space. All other faults represent errors in the | 380 | * addresses in user space. All other faults represent errors in the |
381 | * kernel and should generate an OOPS. Unfortunatly, in the case of an | 381 | * kernel and should generate an OOPS. Unfortunately, in the case of an |
382 | * erroneous fault occurring in a code path which already holds mmap_sem | 382 | * erroneous fault occurring in a code path which already holds mmap_sem |
383 | * we will deadlock attempting to validate the fault against the | 383 | * we will deadlock attempting to validate the fault against the |
384 | * address space. Luckily the kernel only validly references user | 384 | * address space. Luckily the kernel only validly references user |
@@ -386,7 +386,7 @@ asmlinkage void __kprobes do_page_fault(struct pt_regs *regs, | |||
386 | * exceptions table. | 386 | * exceptions table. |
387 | * | 387 | * |
388 | * As the vast majority of faults will be valid we will only perform | 388 | * As the vast majority of faults will be valid we will only perform |
389 | * the source reference check when there is a possibilty of a deadlock. | 389 | * the source reference check when there is a possibility of a deadlock. |
390 | * Attempt to lock the address space, if we cannot we then validate the | 390 | * Attempt to lock the address space, if we cannot we then validate the |
391 | * source. If this is invalid we can skip the address space check, | 391 | * source. If this is invalid we can skip the address space check, |
392 | * thus avoiding the deadlock. | 392 | * thus avoiding the deadlock. |