]> git.baikalelectronics.ru Git - kernel.git/commit
NFSv4: Fix EXCHANGE_ID corrupt verifier issue
authorTrond Myklebust <trond.myklebust@primarydata.com>
Tue, 1 Aug 2017 20:02:47 +0000 (16:02 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Tue, 1 Aug 2017 20:28:55 +0000 (16:28 -0400)
commitba2629aa57f49b5fcc944ca015922fdcf5a8d475
tree2e90e12a96fc87b33c34be6082bf42be81322154
parent7e07edc4d85e800e6d2eae923166dc5aa38b2017
NFSv4: Fix EXCHANGE_ID corrupt verifier issue

The verifier is allocated on the stack, but the EXCHANGE_ID RPC call was
changed to be asynchronous by commit 8b3f135d66316. If we interrrupt
the call to rpc_wait_for_completion_task(), we can therefore end up
transmitting random stack contents in lieu of the verifier.

Fixes: 8b3f135d66316 ("NFS setup async exchange_id")
Cc: stable@vger.kernel.org # v4.9+
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/nfs4proc.c
fs/nfs/nfs4xdr.c
include/linux/nfs_xdr.h