-
Notifications
You must be signed in to change notification settings - Fork 568
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
i#1685 thread init crash: avoid clobbering xsp slot in layered scenario
For a thread being in initialized and on the initstack, if a client init routine invokes library code that triggers a native_exec_syscall hook, we can end up recursing into another hook which then uses the mcontext xsp slot for temporary storage. This clobbers the xsp slot subsequently used by the client init code. The solution adopted is to switch to using the PC slot, which is otherwise unused (only syscall events present the PC to clients). Fixes #1685 Review-URL: https://codereview.appspot.com/235030043
- Loading branch information
1 parent
030d4f3
commit 62f6ed4
Showing
2 changed files
with
10 additions
and
5 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