linux/drivers/net/ethernet/qlogic/qed
Dan Carpenter 01e517f16e qed: potential overflow in qed_cxt_src_t2_alloc()
In the current code "ent_per_page" could be more than "conn_num" making
"conn_num" negative after the subtraction.  In the next iteration
through the loop then the negative is treated as a very high positive
meaning we don't put a limit on "ent_num".  It could lead to memory
corruption.

Fixes: dbb799c397 ('qed: Initialize hardware for new protocols')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Yuval Mintz <Yuval.Mintz@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-06-08 00:33:25 -07:00
..
Makefile qed: add support for dcbx. 2016-05-17 12:29:34 -04:00
qed_cxt.c qed: potential overflow in qed_cxt_src_t2_alloc() 2016-06-08 00:33:25 -07:00
qed_cxt.h qed: Initialize hardware for new protocols 2016-06-03 20:08:40 -04:00
qed_dcbx.c qed: Reset the enable flag for eth protocol. 2016-05-25 12:32:41 -07:00
qed_dcbx.h qed: add support for dcbx. 2016-05-17 12:29:34 -04:00
qed_dev_api.h qed: Revisit chain implementation 2016-06-03 20:08:39 -04:00
qed_dev.c qed: Initialize hardware for new protocols 2016-06-03 20:08:40 -04:00
qed_hsi.h qed: Add iscsi/rdma personalities 2016-06-03 20:08:39 -04:00
qed_hw.c qed: Initialize hardware for new protocols 2016-06-03 20:08:40 -04:00
qed_hw.h qed: Initialize hardware for new protocols 2016-06-03 20:08:40 -04:00
qed_init_fw_funcs.c qed: Utilize FW 8.10.3.0 2016-06-02 21:30:03 -07:00
qed_init_ops.c qed: Utilize FW 8.10.3.0 2016-06-02 21:30:03 -07:00
qed_init_ops.h
qed_int.c qed: Improve VF interrupt reset 2016-05-16 13:59:18 -04:00
qed_int.h qed: Improve VF interrupt reset 2016-05-16 13:59:18 -04:00
qed_l2.c qed: Utilize FW 8.10.3.0 2016-06-02 21:30:03 -07:00
qed_l2.h qed*: Tx-switching configuration 2016-05-12 00:04:08 -04:00
qed_main.c qed: Add iscsi/rdma personalities 2016-06-03 20:08:39 -04:00
qed_mcp.c qed: Add iscsi/rdma personalities 2016-06-03 20:08:39 -04:00
qed_mcp.h qed: Utilize FW 8.10.3.0 2016-06-02 21:30:03 -07:00
qed_reg_addr.h qed: Initialize hardware for new protocols 2016-06-03 20:08:40 -04:00
qed_selftest.c qed: add infrastructure for device self tests. 2016-05-02 00:16:39 -04:00
qed_selftest.h qed: add infrastructure for device self tests. 2016-05-02 00:16:39 -04:00
qed_sp_commands.c qed: Add iscsi/rdma personalities 2016-06-03 20:08:39 -04:00
qed_sp.h qed: Add common HSI for new protocols 2016-06-03 20:08:39 -04:00
qed_spq.c qed: Revisit chain implementation 2016-06-03 20:08:39 -04:00
qed_sriov.c qed: PF to reply to unknown messages 2016-06-07 15:40:12 -07:00
qed_sriov.h qed: PF enforce MAC limitation of VFs 2016-06-07 15:40:12 -07:00
qed_vf.c qed: Move doorbell calculation from VF to PF 2016-06-07 15:40:11 -07:00
qed_vf.h qed: Relax VF firmware requirements 2016-06-07 15:40:11 -07:00
qed.h qed: Initialize hardware for new protocols 2016-06-03 20:08:40 -04:00