RDMA/i40w: Hold read semaphore while looking after VMA
authorLeon Romanovsky <leonro@mellanox.com>
Sun, 1 Jul 2018 16:36:24 +0000 (19:36 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 4 Oct 2018 00:00:47 +0000 (17:00 -0700)
commiteca8598823596b740c6ef498a7c940a4ced45efa
treeedee1b4e66365fc73cf55872f51d317ff5acf093
parente862ab6b69c487fa4df545a60203fef1133bda9f
RDMA/i40w: Hold read semaphore while looking after VMA

[ Upstream commit 5d9a2b0e28759e319a623da33940dbb3ce952b7d ]

VMA lookup is supposed to be performed while mmap_sem is held.

Fixes: f26c7c83395b ("i40iw: Add 2MB page support")
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/infiniband/hw/i40iw/i40iw_verbs.c