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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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(-)





[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [NTFS 3]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [NTFS 3]     [Samba]     [Device Mapper]     [CEPH Development]

  Powered by Linux