Re: [PATCH 3/3] creds: convert cred.usage to refcount_t

2020-06-14 Thread Xiaoming Ni
On 2020/6/13 2:34, Kees Cook wrote: From: 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,

[PATCH 3/3] creds: convert cred.usage to refcount_t

2020-06-12 Thread Kees Cook
From: 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 -

[PATCH 3/3] creds: convert cred.usage to refcount_t

2019-03-06 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