[PATCH 0/2] nptl: Update struct pthread_unwind_buf

H.J. Lu hjl.tools@gmail.com
Sun Feb 25 14:00:00 GMT 2018


On Sun, Feb 25, 2018 at 5:36 AM, H.J. Lu <hjl.tools@gmail.com> wrote:
> On Sun, Feb 25, 2018 at 5:31 AM, Florian Weimer <fw@deneb.enyo.de> wrote:
>> * H. J. Lu:
>>
>>> libpthread cancellation implementation passes cancel_jmp_buf to
>>> libgcc unwinder,
>>
>> Oh.  Where does it do that?  If you mean _Unwind_ForcedUnwind, I think
>> that's just an opaque closure argument for the callback.
>
> Yes.  Libgcc unwinder needs to deal with it.
>

Because of  libgcc unwinder,  provide another set of setjmp/longjmp
without saving and restoring shadow stack register for thread cancellation
won't solve our problem.


-- 
H.J.



More information about the Libc-alpha mailing list