Re: [PATCH] userfaultfd: convert userfaultfd_ctx::refcount to refcount_t

2018-11-21 Thread Mike Rapoport
On Wed, Nov 14, 2018 at 04:39:16PM -0800, Eric Biggers wrote: > From: Eric Biggers > > Reference counters should use refcount_t rather than atomic_t, since the > refcount_t implementation can prevent overflows, reducing the > exploitability of reference leak bugs. userfaultfd_ctx::refcount is a

[PATCH] userfaultfd: convert userfaultfd_ctx::refcount to refcount_t

2018-11-14 Thread Eric Biggers
From: Eric Biggers Reference counters should use refcount_t rather than atomic_t, since the refcount_t implementation can prevent overflows, reducing the exploitability of reference leak bugs. userfaultfd_ctx::refcount is a reference counter with the usual semantics, so convert it to refcount_t.

[PATCH] userfaultfd: convert userfaultfd_ctx::refcount to refcount_t

2018-11-14 Thread Eric Biggers
From: Eric Biggers Reference counters should use refcount_t rather than atomic_t, since the refcount_t implementation can prevent overflows, reducing the exploitability of reference leak bugs. userfaultfd_ctx::refcount is a reference counter with the usual semantics, so convert it to refcount_t.