소스 검색

Kernel: Disable SMAP protection while capturing profile samples

Andreas Kling 5 년 전
부모
커밋
9e51291aed
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      Kernel/Scheduler.cpp

+ 1 - 0
Kernel/Scheduler.cpp

@@ -562,6 +562,7 @@ void Scheduler::timer_tick(RegisterDump& regs)
     Process::update_info_page_timestamp(tv);
 
     if (current->process().is_profiling()) {
+        SmapDisabler disabler;
         auto backtrace = current->raw_backtrace(regs.ebp);
         auto& sample = Profiling::next_sample_slot();
         sample.pid = current->pid();