This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 0/2] nptl: Update struct pthread_unwind_buf


On 03/07/2018 03:56 AM, H.J. Lu wrote:
>>> 1. I have to add  __setjmp_cancel and __sigsetjmp_cancel which won't
>>> save and restore shadow stack register.
> 
> I have been testing this.  I ran into one issue.  GCC knows that setjmp will
> return via longjmp and inserts ENDBR after it.  But it doesn't know
>   __setjmp_cancel and __sigsetjmp_cancel.   We can either add them to GCC
> or add NOTRACK prefix to the corresponding longjmps.

I would rather GCC did not know about these implementation details.

I have no objection to the NOTRACK prefix in the corresponding longjmps.

What would be a downside to this choice?

-- 
Cheers,
Carlos.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]