linux/drivers/infiniband/hw
Faisal Latif c12e56ef69 RDMA/nes: Don't allow userspace QPs to use STag zero
STag zero is a special STag that allows consumers to access any bus
address without registering memory.  The nes driver unfortunately
allows STag zero to be used even with QPs created by unprivileged
userspace consumers, which means that any process with direct verbs
access to the nes device can read and write any memory accessible to
the underlying PCI device (usually any memory in the system).  Such
access is usually given for cluster software such as MPI to use, so
this is a local privilege escalation bug on most systems running this
driver.

The driver was using STag zero to receive the last streaming mode
data; to allow STag zero to be disabled for unprivileged QPs, the
driver now registers a special MR for this data.

Cc: <stable@kernel.org>
Signed-off-by: Faisal Latif <faisal.latif@intel.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2009-03-12 16:21:41 -07:00
..
amso1100 infiniband: Kill directly reference of netdev->priv 2008-11-24 15:34:00 -08:00
cxgb3 RDMA/cxgb3: Fix deadlock in iw_cxgb3 (hang when configuring interface) 2008-11-12 10:16:47 -08:00
ehca IB/ehca: Use consistent types for ehca_plpar_hcall9() 2009-01-16 14:55:40 -08:00
ipath zero i_uid/i_gid on inode allocation 2009-01-05 11:54:28 -05:00
mlx4 IB/mlx4: Fix memory ordering problem when posting LSO sends 2009-01-16 12:47:47 -08:00
mthca net: replace %p6 with %pI6 2008-10-29 12:52:50 -07:00
nes RDMA/nes: Don't allow userspace QPs to use STag zero 2009-03-12 16:21:41 -07:00