Re: [PATCH 04/16] sched: convert user_struct.__count to refcount_t

2017-11-16 Thread Kees Cook
On Wed, Nov 15, 2017 at 6:03 AM, Elena Reshetova wrote: > atomic_t variables are currently used to implement reference > counters with the following properties: > - counter is initialized to 1 using atomic_set() > - a resource is freed upon counter reaching zero > - once counter reaches zero, i

[PATCH 04/16] sched: convert user_struct.__count to refcount_t

2017-11-15 Thread Elena Reshetova
atomic_t variables are currently used to implement reference counters with the following properties: - counter is initialized to 1 using atomic_set() - a resource is freed upon counter reaching zero - once counter reaches zero, its further increments aren't allowed - counter schema uses basi