Re: [PATCH v2 0/2] x86, refcount: Implement fast refcount overflow

2017-04-25 Thread Kees Cook
On Tue, Apr 25, 2017 at 7:01 PM, PaX Team wrote: > On 25 Apr 2017 at 15:56, Kees Cook wrote: > >> This protection is a modified version of the x86 PAX_REFCOUNT >> implementation from PaX/grsecurity. This speeds up the refcount_t API by >> duplicating the existing atomic_t implementation with a sin

Re: [PATCH v2 0/2] x86, refcount: Implement fast refcount overflow

2017-04-25 Thread PaX Team
On 25 Apr 2017 at 15:56, Kees Cook wrote: > This protection is a modified version of the x86 PAX_REFCOUNT > implementation from PaX/grsecurity. This speeds up the refcount_t API by > duplicating the existing atomic_t implementation with a single instruction > added to detect if the refcount has wr

[PATCH v2 0/2] x86, refcount: Implement fast refcount overflow

2017-04-25 Thread Kees Cook
This protection is a modified version of the x86 PAX_REFCOUNT implementation from PaX/grsecurity. This speeds up the refcount_t API by duplicating the existing atomic_t implementation with a single instruction added to detect if the refcount has wrapped past INT_MAX (or below 0) resulting in a sign