]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
NFSD: Fix NFSv4's PUTPUBFH operation
authorChuck Lever <chuck.lever@oracle.com>
Sun, 11 Aug 2024 17:11:07 +0000 (13:11 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Oct 2024 13:11:39 +0000 (15:11 +0200)
commit2f8f226f4d56fae0fabec23cf0af82c43cb4dce0
treeafb3cdb3153908f6263bf55a97775dc5644e8241
parent825789ca94602543101045ad3aad19b2b60c6b2a
NFSD: Fix NFSv4's PUTPUBFH operation

commit 202f39039a11402dcbcd5fece8d9fa6be83f49ae upstream.

According to RFC 8881, all minor versions of NFSv4 support PUTPUBFH.

Replace the XDR decoder for PUTPUBFH with a "noop" since we no
longer want the minorversion check, and PUTPUBFH has no arguments to
decode. (Ideally nfsd4_decode_noop should really be called
nfsd4_decode_void).

PUTPUBFH should now behave just like PUTROOTFH.

Reported-by: Cedric Blancher <cedric.blancher@gmail.com>
Fixes: e1a90ebd8b23 ("NFSD: Combine decode operations for v4 and v4.1")
Cc: Dan Shelton <dan.f.shelton@gmail.com>
Cc: Roland Mainz <roland.mainz@nrubsig.org>
Cc: stable@vger.kernel.org
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/nfsd/nfs4xdr.c