linux_old1/drivers/infiniband
Davidlohr Bueso 487f6683f1 IB/mthca: Fix gup usage in mthca_map_user_db()
get_user_pages() must be called with mmap_sem held, currently
it is not. In fact it is called under the user db_table->mutex.
To fix this we can convert gup to use the fast alternative,
and safely avoid taking mmap_sem, if possible. Furthermore
this is safe wrt to the mutex as other callers that take the
lock (unmap and alloc_db) are not called under mmap_sem
(hence possible deadlock).

Signed-off-by: Davidlohr Bueso <dbueso@suse.de>
Signed-off-by: Doug Ledford <dledford@redhat.com>
2018-01-26 10:43:46 -05:00
..
core RDMA/uverbs: Use an unambiguous errno for method not supported 2018-01-25 10:57:29 -05:00
hw IB/mthca: Fix gup usage in mthca_map_user_db() 2018-01-26 10:43:46 -05:00
sw RDMA/rxe: Fix rxe_qp_cleanup() 2018-01-18 14:49:20 -05:00
ulp RDMA/srpt: Fix RCU debug build error 2018-01-25 10:17:01 -05:00
Kconfig IB: INFINIBAND should depend on HAS_DMA 2017-11-30 16:01:28 -07:00
Makefile IB/rdmavt: Create module framework and handle driver registration 2016-03-10 20:37:04 -05:00