linux-uconsole/drivers/net/mlx4
Sebastien Dugue 12a5a0e39b mlx4_core: Fix possible chunk sg list overflow in mlx4_alloc_icm()
commit c0dc72bad9 upstream.

If the number of sg entries in the ICM chunk reaches MLX4_ICM_CHUNK_LEN,
we must set chunk to NULL even for coherent mappings so that the next
time through the loop will allocate another chunk.  Otherwise we'll
overflow the sg list the next time through the loop.  This will lead to
memory corruption if this case is hit.

mthca does not have this bug.

Signed-off-by: Sebastien Dugue <sebastien.dugue@bull.net>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-07-05 11:10:51 -07:00
..
alloc.c
catas.c mlx4: Fix access to freed memory 2009-09-16 00:00:21 -07:00
cmd.c mlx4_core: Handle multi-physical function devices 2009-07-06 16:10:03 -07:00
cq.c mlx4_core: Remove unnecessary includes of <linux/init.h> 2009-09-05 20:24:49 -07:00
en_cq.c mlx4_en: Fix partial rings feature 2009-05-25 00:35:53 -07:00
en_ethtool.c drivers/net/mlx4: Adjust constant 2009-07-21 13:00:46 -07:00
en_main.c mlx4_en: Using real number of rings as RSS map size 2009-08-06 19:27:51 -07:00
en_netdev.c mlx4_en: Not using Shared Receive Queues 2009-08-06 19:28:18 -07:00
en_port.c mlx4_en: Move to SW counters for total bytes and packets 2009-04-21 01:47:07 -07:00
en_port.h
en_resources.c mlx4_en: Not using Shared Receive Queues 2009-08-06 19:28:18 -07:00
en_rx.c Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6 2009-08-12 17:44:53 -07:00
en_tx.c Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6 2009-09-02 00:32:56 -07:00
eq.c mlx4_core: Distinguish multiple devices in /proc/interrupts 2009-09-05 20:24:50 -07:00
fw.c mlx4_core: Pass cache line size to device FW 2009-09-24 11:03:03 -07:00
fw.h
icm.c mlx4_core: Fix possible chunk sg list overflow in mlx4_alloc_icm() 2010-07-05 11:10:51 -07:00
icm.h
intf.c
main.c mlx4_core: Add a new supported 40 GigE device ID 2009-10-14 10:52:40 -07:00
Makefile mlx4_en renamed en_params.c to en_ethtool.c 2009-06-02 02:29:04 -07:00
mcg.c mlx4_core: Remove unnecessary includes of <linux/init.h> 2009-09-05 20:24:49 -07:00
mlx4.h mlx4_core: Allocate and map sufficient ICM memory for EQ context 2009-09-05 20:24:49 -07:00
mlx4_en.h netdev: convert bulk of drivers to netdev_tx_t 2009-09-01 01:14:07 -07:00
mr.c mlx4_core: Remove unnecessary includes of <linux/init.h> 2009-09-05 20:24:49 -07:00
pd.c mlx4_core: Remove unnecessary includes of <linux/init.h> 2009-09-05 20:24:49 -07:00
port.c mlx4_core: Don't leak mailbox for SET_PORT on Ethernet ports 2009-03-31 09:54:15 -07:00
profile.c mlx4_core: Remove unnecessary includes of <linux/init.h> 2009-09-05 20:24:49 -07:00
qp.c mlx4_core: Remove unnecessary includes of <linux/init.h> 2009-09-05 20:24:49 -07:00
reset.c mlx4_core: Remove unnecessary includes of <linux/init.h> 2009-09-05 20:24:49 -07:00
sense.c workqueue: add to_delayed_work() helper function 2009-04-02 19:04:50 -07:00
srq.c mlx4_core: Remove unnecessary includes of <linux/init.h> 2009-09-05 20:24:49 -07:00