]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
sunrpc: reset rq_accept_statp when starting a new RPC
authorJeff Layton <jlayton@kernel.org>
Fri, 20 Jun 2025 12:16:03 +0000 (08:16 -0400)
committerChuck Lever <chuck.lever@oracle.com>
Mon, 14 Jul 2025 16:46:48 +0000 (12:46 -0400)
commitc8af9d3d4be25dd25845c6d67b32f30d01bf921a
treee8548f8d164f38f0318655e8582fe0ef6c3668c1
parent6f0e26243b02f440938ab7a3782eb730f2247fb1
sunrpc: reset rq_accept_statp when starting a new RPC

rq_accept_statp should point to the location of the accept_status in the
reply. This field is not reset between RPCs so if svc_authenticate or
pg_authenticate return SVC_DENIED without setting the pointer, it could
result in the status being written to the wrong place.

This pointer starts its lifetime as NULL. Reset it on every iteration
so we get consistent behavior if this happens.

Signed-off-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
net/sunrpc/svc.c