linux/drivers/infiniband/hw/nes
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
..
Kconfig RDMA/nes: Use LRO 2008-04-29 13:46:54 -07:00
Makefile RDMA/nes: Add a driver for NetEffect RNICs 2008-02-04 20:20:45 -08:00
nes.c Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6 2008-11-18 23:38:23 -08:00
nes.h RDMA/nes: Cleanup warnings 2008-12-05 11:00:41 -08:00
nes_cm.c RDMA/nes: Don't allow userspace QPs to use STag zero 2009-03-12 16:21:41 -07:00
nes_cm.h RDMA/nes: Remove tx_free_list 2008-12-24 20:30:04 -08:00
nes_context.h RDMA/nes: Add a driver for NetEffect RNICs 2008-02-04 20:20:45 -08:00
nes_hw.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next-2.6 2008-12-28 12:49:40 -08:00
nes_hw.h RDMA/nes: Mitigate compatibility issue regarding PCIe write credits 2008-11-02 21:40:55 -08:00
nes_nic.c net: Fix warning fallout from recent NAPI interface changes. 2008-12-26 15:10:00 -08:00
nes_user.h RDMA/nes: Add a driver for NetEffect RNICs 2008-02-04 20:20:45 -08:00
nes_utils.c RDMA/nes: Fix for NIPQUAD removal 2009-01-10 21:45:42 -08:00
nes_verbs.c RDMA/nes: Don't allow userspace QPs to use STag zero 2009-03-12 16:21:41 -07:00
nes_verbs.h RDMA/nes: Don't allow userspace QPs to use STag zero 2009-03-12 16:21:41 -07:00