-
-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix use after free when dealing with timeouts
This refactors the timeouts handling code to ultimately resolve its soundness issues. That is, it was possible for a process to be dropped while the timeouts thread still had one or more entries in the timeouts heap. This would then result in this thread potentially trying to reschedule a process that no longer exists. The result would either be a crash or a hang, depending on how lucky (or not) you are. This fixes #796. Changelog: fixed
- Loading branch information
1 parent
d13fd2f
commit 342c777
Showing
8 changed files
with
360 additions
and
568 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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
pub mod process; | ||
pub mod signal; | ||
pub mod timeout_worker; | ||
pub mod timeouts; | ||
|
||
#[cfg(target_os = "linux")] | ||
|
Oops, something went wrong.