-
-
Notifications
You must be signed in to change notification settings - Fork 606
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lazy stack: prevent deadlock when taking vma_list_mutex for write
This patch makes all functions in core/mmu.cc that take vma_list_mutex for write to pre-fault the stack two pages deep before using the mutex. This is necessary to prevent any follow up stack faults down the call stack after the vma_list_mutex is take for write as this would lead to a deadlock experienced when testing one of the apps when the page fault handler and mmu::vm_fault() function would try to take the same vma_list_mutex for read. Signed-off-by: Waldemar Kozaczuk <[email protected]>
- Loading branch information
Showing
1 changed file
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters