]> 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, 10 Oct 2024 10:00:58 +0000 (12:00 +0200)
commite91d86e8537ab944cfb80cf838875a6d104ada1a
tree3fd02e01a66c6af9680d94bea00f6c21a4b828ac
parentc76005adfa93d1a027433331252422078750321f
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