Kernel: Disable SMAP protection while capturing profile samples

This commit is contained in:
Andreas Kling 2020-01-12 02:02:29 +01:00
parent ef05bb61a0
commit 9e51291aed

View file

@ -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();