[PATCH 0/2] nptl: Update struct pthread_unwind_buf

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


On Sun, Feb 25, 2018 at 4:53 AM, H.J. Lu <hjl.tools@gmail.com> wrote:
> On Sun, Feb 25, 2018 at 3:59 AM, Florian Weimer <fw@deneb.enyo.de> wrote:
>> * H. J. Lu:
>>
>>> On Sun, Feb 25, 2018 at 1:26 AM, Florian Weimer <fw@deneb.enyo.de> wrote:
>>>> * H. J. Lu:
>>>>
>>>>> What have I done wrong?
>>>>
>>>> My understanding (shared by Carlos as far as I know) is that you do
>>>> not need to restore the shadow stack pointer when unwinding for
>>>> cancellation or thread exit.
>>>
>>> It may be true for thread exit.  Are you saying that a function will never
>>> return after cancellation point?
>>
>> That's certainly the intent.  Cancellation is supposed to be
>> unstoppable.
>
> The question is what happens after cancellation.  Can a function return
> after cancellation?
>

Let me rephrase.  Can a function, which contains cancellation points,
return to its caller after cancellation happened?

-- 
H.J.



More information about the Libc-alpha mailing list