]> git.itanic.dy.fi Git - linux-stable/commit
SUNRPC: Reinitialise the backchannel request buffers before reuse
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Wed, 27 Jul 2022 16:27:54 +0000 (12:27 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Aug 2022 09:09:29 +0000 (11:09 +0200)
commit6d8453df84f1488798b1d39a467de6349fdf3ccb
treed9aadfd600cc43347cf9bc8c22335c0583b166ed
parentd908b2604ec9e769ae275dbbf066f7dba93e92a5
SUNRPC: Reinitialise the backchannel request buffers before reuse

commit 6622e3a73112fc336c1c2c582428fb5ef18e456a upstream.

When we're reusing the backchannel requests instead of freeing them,
then we should reinitialise any values of the send/receive xdr_bufs so
that they reflect the available space.

Fixes: 0d2a970d0ae5 ("SUNRPC: Fix a backchannel race")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/sunrpc/backchannel_rqst.c