1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 22:38:13 +00:00

Kernel: Disable interrupts throughout Thread::raw_backtrace()

Otherwise we may hit an assertion when validating stack addresses.
This commit is contained in:
Andreas Kling 2020-02-29 21:36:00 +01:00
parent 79e06e8308
commit 8b6d548b55

View file

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