]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
NFS: Fix the setting of capabilities when automounting a new filesystem
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Sun, 3 Aug 2025 21:31:59 +0000 (14:31 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Aug 2025 14:28:11 +0000 (16:28 +0200)
commit987c20428f067c1c7f29ed0a2bd8c63fa74b1c2c
treedb22decf43e7dd5499e3eea4955c9ab141e05ce9
parentf0b89916d2fee4a33d1d01e9982e8dfeecb751fe
NFS: Fix the setting of capabilities when automounting a new filesystem

commit b01f21cacde9f2878492cf318fee61bf4ccad323 upstream.

Capabilities cannot be inherited when we cross into a new filesystem.
They need to be reset to the minimal defaults, and then probed for
again.

Fixes: 54ceac451598 ("NFS: Share NFS superblocks per-protocol per-server per-FSID")
Cc: stable@vger.kernel.org
Reviewed-by: Benjamin Coddington <bcodding@redhat.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/nfs/client.c
fs/nfs/internal.h
fs/nfs/nfs4client.c
fs/nfs/nfs4proc.c