Browse Source

Kernel: Disable interrupts throughout Thread::raw_backtrace()

Otherwise we may hit an assertion when validating stack addresses.
Andreas Kling 5 năm trước cách đây
mục cha
commit
8b6d548b55
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      Kernel/Thread.cpp

+ 1 - 0
Kernel/Thread.cpp

@@ -816,6 +816,7 @@ String Thread::backtrace_impl() const
 
 Vector<uintptr_t> Thread::raw_backtrace(uintptr_t ebp) const
 {
+    InterruptDisabler disabler;
     auto& process = const_cast<Process&>(this->process());
     ProcessPagingScope paging_scope(process);
     Vector<uintptr_t, Profiling::max_stack_frame_count> backtrace;