linux/drivers/infiniband/hw
Naresh Gottumukkala cffce99051 RDMA/ocrdma: Dont use PD 0 for userpace CQ DB
Create_CQ verb doesn't provide a PD pointer.  So, until now we are
creating all (both userspace and kernel) CQ DB regions from PD0.  This
will result in mmapping PD0 to applications.  A rogue userspace
application can mess things up.

Also more serious issues is even the be2net NIC uses PD0.

This patch addresses this problem by:

1) Create a PD page for every userspace application when the
   alloc_ucontext is called. This will be destroyed in
   dealloc_ucontext.
2) All CQs for that context will use the PD allocated in ucontext.
3) The first create_PD call from application will result in returning
   the PD address from its ucontext (no new PD will be created).
4) For subsecquent create_pd calls from application, we create new PDs for
   the application.

Signed-off-by: Naresh Gottumukkala <bgottumukkala@emulex.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
2013-09-02 21:18:32 -07:00
..
amso1100 drivers/infiniband/hw/amso1100: convert to using idr_alloc_cyclic 2013-04-29 18:28:41 -07:00
cxgb3 RDMA/cxgb3: Fix stack info leak in iwch_create_cq() 2013-07-30 10:11:33 -07:00
cxgb4 RDMA/cxgb4: Fix stack info leak in c4iw_create_qp() 2013-07-30 10:07:56 -07:00
ehca Main batch of InfiniBand/RDMA changes for 3.11 merge window: 2013-07-13 12:57:21 -07:00
ipath InfiniBand/RDMA changes for the 3.10 merge window: 2013-05-08 15:29:48 -07:00
mlx4 IB/mlx4: Use default pkey when creating tunnel QPs 2013-07-31 12:22:12 -07:00
mlx5 mlx5_core: Variable may be used uninitialized 2013-07-31 14:12:33 -07:00
mthca Drivers: infinband: remove __dev* attributes. 2013-01-03 15:57:15 -08:00
nes Revert "RDMA/nes: Fix compilation error when nes_debug is enabled" 2013-07-30 15:48:35 -07:00
ocrdma RDMA/ocrdma: Dont use PD 0 for userpace CQ DB 2013-09-02 21:18:32 -07:00
qib IB/qib: Add err_decode() call for ring dump 2013-07-30 10:13:00 -07:00