Patch "afs: Fix leak of ungot volume" has been added to the 6.12-stable tree

gregkh at linuxfoundation.org gregkh at linuxfoundation.org
Wed Sep 9 05:27:51 PDT 2026


This is a note to let you know that I've just added the patch titled

    afs: Fix leak of ungot volume

to the 6.12-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     afs-fix-leak-of-ungot-volume.patch
and it can be found in the queue-6.12 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable at vger.kernel.org> know about it.


>From d672c276f685a540ed2b2a8bafaed4650a89022c Mon Sep 17 00:00:00 2001
From: David Howells <dhowells at redhat.com>
Date: Mon, 22 Jun 2026 10:08:50 +0100
Subject: afs: Fix leak of ungot volume

From: David Howells <dhowells at redhat.com>

commit d672c276f685a540ed2b2a8bafaed4650a89022c upstream.

Fix afs_lookup_volume_rcu() so that it doesn't leak a dying volume if
afs_try_get_volume() fails.

Fixes: 32222f09782f ("afs: Apply server breaks to mmap'd files in the call processor")
Closes: https://sashiko.dev/#/patchset/20260609081738.770127-1-dhowells%40redhat.com
Signed-off-by: David Howells <dhowells at redhat.com>
Link: https://patch.msgid.link/20260622090856.2746629-17-dhowells@redhat.com
cc: Marc Dionne <marc.dionne at auristor.com>
cc: Deepakkumar Karn <dkarn at redhat.com>
cc: linux-afs at lists.infradead.org
Signed-off-by: Christian Brauner (Amutable) <brauner at kernel.org>
Signed-off-by: Alexander Martyniuk <alexevgmart at gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh at linuxfoundation.org>
---
 fs/afs/callback.c |    1 +
 1 file changed, 1 insertion(+)

--- a/fs/afs/callback.c
+++ b/fs/afs/callback.c
@@ -138,6 +138,7 @@ static struct afs_volume *afs_lookup_vol
 
 		if (volume && afs_try_get_volume(volume, afs_volume_trace_get_callback))
 			break;
+		volume = NULL;
 		if (!need_seqretry(&cell->volume_lock, seq))
 			break;
 	}


Patches currently in stable-queue which might be from dhowells at redhat.com are

queue-6.12/netfs-fix-netfs_read_folio-to-wait-on-writeback.patch
queue-6.12/afs-fix-leak-of-ungot-volume.patch



More information about the linux-afs mailing list