[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <26169.1487780532@warthog.procyon.org.uk>
Date: Wed, 22 Feb 2017 16:22:12 +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 2/4] fs, afs: convert afs_vlocation.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.
Please hold this patch also. An assertion failure may happen here too because
afs_vlocation_lookup() may resurrect records with a refcount of 0 from the
cache.
David
Powered by blists - more mailing lists