]> www.infradead.org Git - users/hch/misc.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)
committerChuck Lever <chuck.lever@oracle.com>
Sun, 11 May 2025 23:48:25 +0000 (19:48 -0400)
commit1244f0b2c3cecd3f349a877006e67c9492b41807
treeff4c0eba905176e0ec9da92e5b51abcf9ed0559d
parent0813c5f01249dbc32ccbc68d27a24fde5bf2901c
nfsd: nfsd4_spo_must_allow() must check this is a v4 compound request

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