linux/drivers/infiniband/hw/nes
Roland Dreier 24797a3442 RDMA/nes: Fix off-by-one in nes_reg_user_mr() error path
nes_reg_user_mr() should fail if page_count becomes >= 1024 * 512
rather than just testing for strict >, because page_count is
essentially used as an index into an array with 1024 * 512 entries, so
allowing the loop to continue with page_count == 1024 * 512 means that
memory after the end of the array is corrupted.  This leads to a crash
triggerable by a userspace application that requests registration of a
too-big region.

Also get rid of the call to pci_free_consistent() here to avoid
corrupting state with a double free, since the same memory will be
freed in the code jumped to at reg_user_mr_err.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
2008-06-10 12:29:49 -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 RDMA/nes: Fix up nes_lro_max_aggr module parameter 2008-05-13 11:27:25 -07:00
nes.h RDMA/nes: Fix up nes_lro_max_aggr module parameter 2008-05-13 11:27:25 -07:00
nes_cm.c RDMA/nes: Formatting cleanup 2008-04-29 13:46:54 -07:00
nes_cm.h RDMA/nes: Remove session_id from nes_cm stuff 2008-04-16 21:09:25 -07:00
nes_context.h RDMA/nes: Add a driver for NetEffect RNICs 2008-02-04 20:20:45 -08:00
nes_hw.c RDMA/nes: Fix up nes_lro_max_aggr module parameter 2008-05-13 11:27:25 -07:00
nes_hw.h RDMA/nes: Formatting cleanup 2008-04-29 13:46:54 -07:00
nes_nic.c RDMA/nes: Formatting cleanup 2008-04-29 13:46:54 -07: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: Add support for SFP+ PHY 2008-04-29 13:46:54 -07:00
nes_verbs.c RDMA/nes: Fix off-by-one in nes_reg_user_mr() error path 2008-06-10 12:29:49 -07:00
nes_verbs.h RDMA/nes: Add a driver for NetEffect RNICs 2008-02-04 20:20:45 -08:00