Re: [PATCH 4/4] fs, afs: convert afs_volume.usage from atomic_t to refcount_t

From: David Howells
Date: Wed Feb 22 2017 - 11:44:44 EST


Elena Reshetova <elena.reshetova@xxxxxxxxx> wrote:

> refcount_t type and corresponding API should be
> used instead of atomic_t when the variable is used as
> a reference counter. This allows to avoid accidental
> refcounter overflows that might lead to use-after-free
> situations.
>
> Signed-off-by: Elena Reshetova <elena.reshetova@xxxxxxxxx>
> Signed-off-by: Hans Liljestrand <ishkamiel@xxxxxxxxx>
> Signed-off-by: Kees Cook <keescook@xxxxxxxxxxxx>
> Signed-off-by: David Windsor <dwindsor@xxxxxxxxx>

This one is fine.

Acked-by: David Howells <dhowells@xxxxxxxxxx>