Sergey Dyasly a280e64c08 net/i40e: fix out-of-bounds writes in vector Rx
Rx loop inside _recv_raw_pkts_vec() ignores nb_pkts argument and always
tries to receive RTE_I40E_VPMD_RX_BURST (32) packets. This is a violation
of rte_eth_rx_burst() API and can lead to memory corruption (out-of-bounds
writes to struct rte_mbuf **rx_pkts) if nb_pkts is less than 32.

Fix this by actually using nb_pkts inside the loop.

Fixes: 9ed94e5bb04e ("i40e: add vector Rx")

Signed-off-by: Sergey Dyasly <s.dyasly@samsung.com>
Acked-by: Ilya Maximets <i.maximets@samsung.com>
Acked-by: Adam Bynes <adambynes@outlook.com>
2016-07-22 01:32:17 +02:00
..
2016-07-22 00:36:18 +02:00
2016-07-10 14:55:42 +02:00
2016-07-22 00:42:10 +02:00
2016-07-22 00:49:10 +02:00
2016-07-22 01:20:35 +02:00
2016-07-15 23:01:15 +02:00
2016-07-10 14:51:09 +02:00
2016-07-08 22:55:19 +02:00
2016-06-20 17:21:54 +02:00