linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] afs: Fix ref-put functions
@ 2022-07-29 16:39 David Howells
  2022-07-29 16:39 ` [PATCH 1/2] afs: Use refcount_t rather than atomic_t David Howells
  2022-07-29 16:39 ` [PATCH 2/2] afs: Fix access after dec in put functions David Howells
  0 siblings, 2 replies; 8+ messages in thread
From: David Howells @ 2022-07-29 16:39 UTC (permalink / raw)
  To: linux-afs; +Cc: Marc Dionne, dhowells, Marc Dionne, linux-fsdevel, linux-kernel


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



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2022-08-02 17:27 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-29 16:39 [PATCH 0/2] afs: Fix ref-put functions David Howells
2022-07-29 16:39 ` [PATCH 1/2] afs: Use refcount_t rather than atomic_t David Howells
2022-08-02 14:27   ` Marc Dionne
2022-07-29 16:39 ` [PATCH 2/2] afs: Fix access after dec in put functions David Howells
2022-08-02 14:54   ` Marc Dionne
2022-08-02 15:49   ` David Howells
2022-08-02 17:14   ` David Howells
2022-08-02 17:27     ` Marc Dionne

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).