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 00be7f0a71b2..644b4f7ece10 100644 --- a/arch/x86/mm/fault_64.c +++ b/arch/x86/mm/fault_64.c | |||
@@ -373,7 +373,7 @@ asmlinkage void __kprobes do_page_fault(struct pt_regs *regs, | |||
373 | again: | 373 | again: |
374 | /* When running in the kernel we expect faults to occur only to | 374 | /* When running in the kernel we expect faults to occur only to |
375 | * addresses in user space. All other faults represent errors in the | 375 | * addresses in user space. All other faults represent errors in the |
376 | * kernel and should generate an OOPS. Unfortunatly, in the case of an | 376 | * kernel and should generate an OOPS. Unfortunately, in the case of an |
377 | * erroneous fault occurring in a code path which already holds mmap_sem | 377 | * erroneous fault occurring in a code path which already holds mmap_sem |
378 | * we will deadlock attempting to validate the fault against the | 378 | * we will deadlock attempting to validate the fault against the |
379 | * address space. Luckily the kernel only validly references user | 379 | * address space. Luckily the kernel only validly references user |
@@ -381,7 +381,7 @@ asmlinkage void __kprobes do_page_fault(struct pt_regs *regs, | |||
381 | * exceptions table. | 381 | * exceptions table. |
382 | * | 382 | * |
383 | * As the vast majority of faults will be valid we will only perform | 383 | * As the vast majority of faults will be valid we will only perform |
384 | * the source reference check when there is a possibilty of a deadlock. | 384 | * the source reference check when there is a possibility of a deadlock. |
385 | * Attempt to lock the address space, if we cannot we then validate the | 385 | * Attempt to lock the address space, if we cannot we then validate the |
386 | * source. If this is invalid we can skip the address space check, | 386 | * source. If this is invalid we can skip the address space check, |
387 | * thus avoiding the deadlock. | 387 | * thus avoiding the deadlock. |