File tree Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -482,22 +482,13 @@ asmlinkage void __kprobes do_page_fault(struct pt_regs *regs,
482
482
* make sure we exit gracefully rather than endlessly redo
483
483
* the fault.
484
484
*/
485
- fault = handle_mm_fault (vma , address , flags , NULL );
485
+ fault = handle_mm_fault (vma , address , flags , regs );
486
486
487
487
if (unlikely (fault & (VM_FAULT_RETRY | VM_FAULT_ERROR )))
488
488
if (mm_fault_error (regs , error_code , address , fault ))
489
489
return ;
490
490
491
491
if (flags & FAULT_FLAG_ALLOW_RETRY ) {
492
- if (fault & VM_FAULT_MAJOR ) {
493
- tsk -> maj_flt ++ ;
494
- perf_sw_event (PERF_COUNT_SW_PAGE_FAULTS_MAJ , 1 ,
495
- regs , address );
496
- } else {
497
- tsk -> min_flt ++ ;
498
- perf_sw_event (PERF_COUNT_SW_PAGE_FAULTS_MIN , 1 ,
499
- regs , address );
500
- }
501
492
if (fault & VM_FAULT_RETRY ) {
502
493
flags |= FAULT_FLAG_TRIED ;
503
494
You can’t perform that action at this time.
0 commit comments