]> git.baikalelectronics.ru Git - kernel.git/commit
SUNRPC: Fix potential memory corruption
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 26 Jul 2021 11:59:23 +0000 (07:59 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Sep 2021 10:26:24 +0000 (12:26 +0200)
commit06c9ae0ed00c0d91d58bcc2945543619bf11a31e
tree187045259b7543baeeeee81ce1da6569ddf68b35
parent9075b2f2a753b81a4a510f67050d39cc4f4a2901
SUNRPC: Fix potential memory corruption

[ Upstream commit c2dc3e5fad13aca5d7bdf4bcb52b1a1d707c8555 ]

We really should not call rpc_wake_up_queued_task_set_status() with
xprt->snd_task as an argument unless we are certain that is actually an
rpc_task.

Fixes: 2539499e6f58 ("SUNRPC: Fix disconnection races")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
include/linux/sunrpc/xprt.h
net/sunrpc/xprt.c