This patch stores the Unsafe Stack Pointer (USP) at offset 9*sizeof(uintptr_t)
in the Thread Control Block (TCB) for musl environments.
Details
Diff Detail
- Build Status
Buildable 922 Build 922: arc lint + arc unit
Event Timeline
Updated so that USP is stored in TCB for all musl libc environments on X86,
rather than just those on Linux with the separate stack segment feature enabled.
My original musl libc patches just supported SafeStack with the separate stack
segment feature enabled, but I recently divided them into two series. The first
series provides architecture-independent support for SafeStack including the
support for storing USP in the TCB. The second series adds support for the
separate stack segment feature.
By the way, I would welcome feedback on my musl libc patches from the LLVM
community, especially from those of you that have experience developing runtime
support for SafeStack such as @pcc and @eugenis. My recent posts are listed at
http://www.openwall.com/lists/musl/2016/10/28/ .