]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
nfsd: nfsd4_spo_must_allow() must check this is a v4 compound request
authorNeilBrown <neil@brown.name>
Fri, 28 Mar 2025 00:05:59 +0000 (11:05 +1100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Jun 2025 10:05:23 +0000 (11:05 +0100)
commit425efc6b3292a3c79bfee4a1661cf043dcd9cf2f
treeff8396af762752a679fb4c6bf5aad60875cbfdc1
parent1f7f8168abe8cbe845ab8bb557228d44784a6b57
nfsd: nfsd4_spo_must_allow() must check this is a v4 compound request

commit 1244f0b2c3cecd3f349a877006e67c9492b41807 upstream.

If the request being processed is not a v4 compound request, then
examining the cstate can have undefined results.

This patch adds a check that the rpc procedure being executed
(rq_procinfo) is the NFSPROC4_COMPOUND procedure.

Reported-by: Olga Kornievskaia <okorniev@redhat.com>
Cc: stable@vger.kernel.org
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: NeilBrown <neil@brown.name>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/nfsd/nfs4proc.c