[PATCH 0/2] afs: Fix ref-put functions

David Howells dhowells at redhat.com
Fri Jul 29 09:39:31 PDT 2022


Here's a pair of patches: the first converts afs to use refcount_t instead
of atomic_t for its refcounts; the second fixes a number of afs ref-putting
functions to make sure they don't access the target object after the
decrement unless the refcount was reduced to 0.

The patches can be found here:

	https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git/log/?h=afs-fixes

David

---
David Howells (2):
      afs: Use refcount_t rather than atomic_t
      afs: Fix access after dec in put functions


 fs/afs/cell.c              | 61 ++++++++++++++++++--------------------
 fs/afs/cmservice.c         |  4 +--
 fs/afs/internal.h          | 16 +++++-----
 fs/afs/proc.c              |  6 ++--
 fs/afs/rxrpc.c             | 31 ++++++++++---------
 fs/afs/server.c            | 46 +++++++++++++++++-----------
 fs/afs/vl_list.c           | 19 ++++--------
 fs/afs/volume.c            | 21 ++++++++-----
 include/trace/events/afs.h | 36 +++++++++++-----------
 9 files changed, 124 insertions(+), 116 deletions(-)





More information about the linux-afs mailing list