]> 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:25:48 +0000 (16:25 +0200)
commit175afda783e38c0660f2afc0602dd9c83d4e7ee1
treec97b838a8d6d33e8618782a050683fd91c600798
parent59f0bf620b03697c674b9266f61c6ccbd0b95b6e
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