]> git.dujemihanovic.xyz Git - linux.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)
committerChuck Lever <chuck.lever@oracle.com>
Fri, 20 Sep 2024 23:31:03 +0000 (19:31 -0400)
commit202f39039a11402dcbcd5fece8d9fa6be83f49ae
treee9da930d9c725844385b57c1472b4ceb0407d76a
parent32b34fa485645221e4f4b2e7ba8a02260920dce9
NFSD: Fix NFSv4's PUTPUBFH operation

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>
fs/nfsd/nfs4xdr.c