[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <535.1487781288@warthog.procyon.org.uk>
Date: Wed, 22 Feb 2017 16:34:48 +0000
From: David Howells <dhowells@...hat.com>
To: Elena Reshetova <elena.reshetova@...el.com>
Cc: dhowells@...hat.com, linux-kernel@...r.kernel.org,
linux-afs@...ts.infradead.org, peterz@...radead.org,
gregkh@...uxfoundation.org, Hans Liljestrand <ishkamiel@...il.com>,
Kees Cook <keescook@...omium.org>,
David Windsor <dwindsor@...il.com>
Subject: Re: [PATCH 4/4] fs, afs: convert afs_volume.usage from atomic_t to refcount_t
Elena Reshetova <elena.reshetova@...el.com> 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@...el.com>
> Signed-off-by: Hans Liljestrand <ishkamiel@...il.com>
> Signed-off-by: Kees Cook <keescook@...omium.org>
> Signed-off-by: David Windsor <dwindsor@...il.com>
This one is fine.
Acked-by: David Howells <dhowells@...hat.com>
Powered by blists - more mailing lists