Patch "afs: Fix missing kunmap in afs_dir_search_bucket()" has been added to the 6.18-stable tree
gregkh at linuxfoundation.org
gregkh at linuxfoundation.org
Wed Sep 16 08:59:17 PDT 2026
This is a note to let you know that I've just added the patch titled
afs: Fix missing kunmap in afs_dir_search_bucket()
to the 6.18-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-missing-kunmap-in-afs_dir_search_bucket.patch
and it can be found in the queue-6.18 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 950ae84b5cc944fbe27d81806d0b76af765f779c Mon Sep 17 00:00:00 2001
From: David Howells <dhowells at redhat.com>
Date: Wed, 2 Sep 2026 13:10:19 +0100
Subject: afs: Fix missing kunmap in afs_dir_search_bucket()
From: David Howells <dhowells at redhat.com>
commit 950ae84b5cc944fbe27d81806d0b76af765f779c upstream.
Fix afs_dir_search_bucket() to kunmap the block it's using in the "bad:"
path.
Fixes: a5b5beebcf96 ("afs: Use the contained hashtable to search a directory")
Closes: https://sashiko.dev/#/patchset/20260716103030.3065561-1-dhowells%40redhat.com
Signed-off-by: David Howells <dhowells at redhat.com>
Link: https://patch.msgid.link/20260902121024.3328255-2-dhowells@redhat.com
cc: Marc Dionne <marc.dionne at auristor.com>
cc: linux-afs at lists.infradead.org
cc: linux-fsdevel at vger.kernel.org
cc: stable at vger.kernel.org
Signed-off-by: Christian Brauner (Amutable) <brauner at kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh at linuxfoundation.org>
---
fs/afs/dir_search.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
--- a/fs/afs/dir_search.c
+++ b/fs/afs/dir_search.c
@@ -173,12 +173,11 @@ int afs_dir_search_bucket(struct afs_dir
ret = -ENOENT;
found:
+bad:
if (iter->block) {
kunmap_local(iter->block);
iter->block = NULL;
}
-
-bad:
if (ret == -ESTALE)
afs_invalidate_dir(iter->dvnode, afs_dir_invalid_iter_stale);
_leave(" = %d", ret);
Patches currently in stable-queue which might be from dhowells at redhat.com are
queue-6.18/afs-fix-double-unmap-of-directory-block.patch
queue-6.18/afs-clear-stale-peer-app-data-after-address-list-changes.patch
queue-6.18/netfs-fix-subreq-ref-leak.patch
queue-6.18/netfs-fix-unbuffered-dio-write-partial-transfer-erro.patch
queue-6.18/cachefiles-fix-potential-uaf-kasan-warning.patch
queue-6.18/netfs-fix-i_size-update-for-partial-transfer.patch
queue-6.18/netfs-break-unbuffered-write-when-netfs_alloc_subreq.patch
queue-6.18/netfs-fix-uninitialized-return-value-in-netfs_unbuffered_write.patch
queue-6.18/cachefiles-fix-double-fput.patch
queue-6.18/netfs-fix-barriering-when-walking-subrequest-list.patch
queue-6.18/netfs-fix-decision-whether-to-disallow-write-streami.patch
queue-6.18/afs-fix-missing-kunmap-in-afs_dir_search_bucket.patch
queue-6.18/netfs-fix-error-vs-transferred-passed-to-ki_complete.patch
queue-6.18/afs-fix-incorrect-free-in-candidate-cleanup-in-afs_lookup_server.patch
More information about the linux-afs
mailing list