numam-dpdk/drivers/net/i40e
Beilei Xing 73f9509e0e net/i40e: fix out-of-bounds access
When calling i40e_flowtype_to_pctype in i40e_get_hash_filter_global_config
and i40e_set_hash_filter_global_config, function i40e_flowtype_to_pctype
will be possibly make an out-of-bounds access, because size of the array
is 15. So check the flow type is valid before calling
i40e_flowtype_to_pctype.
In the process fix other occurances of the same problem

Coverity issue: 37793, 37794
Fixes: 782c8c92f1 ("i40e: add hash configuration")
Fixes: f2b2e2354b ("i40e: split function for hash and flow director input")
Fixes: 98f0557076 ("i40e: configure input fields for RSS or flow director")

Signed-off-by: Beilei Xing <beilei.xing@intel.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
2016-07-08 22:50:59 +02:00
..
base net/i40e/base: support disabling links on all ports 2016-06-20 17:21:50 +02:00
i40e_ethdev_vf.c net/i40e: fix dereference before null check 2016-07-08 22:50:53 +02:00
i40e_ethdev.c net/i40e: fix out-of-bounds access 2016-07-08 22:50:59 +02:00
i40e_ethdev.h net/i40e: add floating VEB option 2016-06-29 17:28:31 +02:00
i40e_fdir.c net/i40e: fix unintended sign extension 2016-06-15 17:13:55 +02:00
i40e_logs.h drivers: allow pruning log during build 2015-07-30 20:16:04 +02:00
i40e_pf.c net/i40e: support floating VEB 2016-06-29 17:28:21 +02:00
i40e_pf.h i40e: support port hotplug 2015-07-19 21:22:23 +02:00
i40e_regs.h i40e: add EEPROM and registers dumping 2016-03-16 17:48:48 +01:00
i40e_rxtx_vec.c net/i40e: fix offload flags for vector Rx 2016-06-23 12:57:02 +02:00
i40e_rxtx.c net/i40e: fix null checks 2016-06-28 13:23:15 +02:00
i40e_rxtx.h ethdev: query supported packet types 2016-03-25 18:56:43 +01:00
Makefile net/i40e: add floating VEB option 2016-06-29 17:28:31 +02:00
rte_pmd_i40e_version.map i40e: move to drivers/net/ 2015-05-22 16:06:22 +02:00