Skip to contentSkip to conversation

vfs fixes

GIT PULL Merged Christian Brauner 2 participants 2 messages Nov 28, 2025 VFS

lore
Share & tools
lore

Christian Brauner

author maintainer
#0 lore raw

Hey Linus,

/* Summary */
This contains some final fixes for the current cycle:

- afs: Fix delayed allocation of a cell's anonymous key

The allocation of a cell's anonymous key is done in a background thread along with other cell setup such as doing a DNS upcall. The normal key lookup tries to use the key description on the anonymous authentication key as the reference for request_key() - but it may not yet be set, causing an oops.

- ovl: fail ovl_lock_rename_workdir() if either target is unhashed

As well as checking that the parent hasn't changed after getting the lock, the code needs to check that the dentry hasn't been unhashed. Otherwise overlayfs might try to rename something that has been removed.

- namespace: fix a reference leak in grab_requested_mnt_ns

lookup_mnt_ns() already takes a reference on mnt_ns. grab_requested_mnt_ns() doesn't need to take an extra reference.

/* Testing */

gcc (Debian 15.2.0-7) 15.2.0
Debian clang version 19.1.7 (10)

No build failures or warnings were observed.

/* Conflicts */

Merge conflicts with mainline
=============================

No known conflicts.

Merge conflicts with other trees
================================

No known conflicts.

The following changes since commit ac3fd01e4c1efce8f2c054cdeb2ddd2fc0fb150d:

Linux 6.18-rc7 (2025-11-23 14:53:16 -0800)

are available in the Git repository at:

[email protected]:pub/scm/linux/kernel/git/vfs/vfs tags/vfs-6.18-rc8.fixes

for you to fetch changes up to d27c71257825dced46104eefe42e4d9964bd032e:

afs: Fix delayed allocation of a cell's anonymous key (2025-11-28 11:30:10 +0100)

Please consider pulling these changes from the signed vfs-6.18-rc8.fixes tag.

Thanks!
Christian

----------------------------------------------------------------
vfs-6.18-rc8.fixes

----------------------------------------------------------------
Andrei Vagin (1):
fs/namespace: fix reference leak in grab_requested_mnt_ns

David Howells (1):
afs: Fix delayed allocation of a cell's anonymous key

NeilBrown (1):
ovl: fail ovl_lock_rename_workdir() if either target is unhashed

 fs/afs/cell.c       | 43 ++++++++-----------------------------------
 fs/afs/internal.h   |  1 +
 fs/afs/security.c   | 48 ++++++++++++++++++++++++++++++++++++++++--------
 fs/namespace.c      |  7 ++++---
 fs/overlayfs/util.c |  4 ++--
 5 files changed, 55 insertions(+), 48 deletions(-)