[PATCH 0/2] nptl: Update struct pthread_unwind_buf

Carlos O'Donell carlos@redhat.com
Sat Feb 24 15:20:00 GMT 2018


On 02/09/2018 02:48 AM, Florian Weimer wrote:
> In short, the only thing need to ensure is that the over-write from
> __sigsetjmp stays within __cancel_buf.  Then we are good, without
> changing the stack layout for cancellation.
> 
> My proposal is still rather hackish, but so is the existing code (the
> truncated jump buffer), and HJ's approach of storing the shadow stack
> pointer in the signal save area of the non-truncated jump buffer.  But
> I think we can make it work.
 
I disagree completely. I think this is an an elegant solution to an ugly
problem. We need to see if HJ has any other requirements which may conflict
with this suggestion.

-- 
Cheers,
Carlos.



More information about the Libc-alpha mailing list