lkml.org 
[lkml]   [2022]   [Jul]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Subject[PATCH 0/2] afs: Fix ref-put functions
From
Date

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


\
 
 \ /
  Last update: 2022-07-29 18:40    [W:0.097 / U:0.748 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site