numam-dpdk/drivers/net
Dekel Peled 97127d4298 net/mlx5: fix check of RSS queue index
RSS action validation function checks the queues included in RSS
to make sure they are valid.
A Queue is considered valid if the pointer to the queue (item at
location queue-index of RxQ array) is not a null value.
The queue indices are not checked. If a large value is entered as
queue index, using it as an index in RxQ array will result in a
pointer to memory out of array bounds. If this memory contains a
value which is not null, this queue will be wrongly considered valid.

This patch updates function mlx5_flow_validate_action_rss() with
check of the input queue indices, as done in function
mlx5_flow_validate_action_queue().

Fixes: 23c1d42c71 ("net/mlx5: split flow validation to dedicated function")
Cc: stable@dpdk.org

Signed-off-by: Dekel Peled <dekelp@mellanox.com>
Acked-by: Matan Azrad <matan@mellanox.com>
2019-11-20 17:36:05 +01:00
..
af_packet net/af_packet: improve Tx statistics accuracy 2019-10-23 16:43:10 +02:00
af_xdp net/af_xdp: support unaligned umem chunks 2019-10-23 16:43:10 +02:00
ark ethdev: make stats and xstats reset callbacks return int 2019-10-07 15:00:54 +02:00
atlantic net/atlantic: add FW mailbox guard mutex 2019-10-08 12:14:31 +02:00
avp ethdev: make stats and xstats reset callbacks return int 2019-10-07 15:00:54 +02:00
axgbe net/axgbe: fix double unlock 2019-10-23 16:43:10 +02:00
bnx2x net/bnx2x: fix meson build 2019-11-06 11:55:24 +01:00
bnxt drivers/net: update Rx RSS hash offload capabilities 2019-11-11 16:15:37 +01:00
bonding net/bonding: fix port ID check 2019-11-08 23:15:04 +01:00
cxgbe drivers/net: update Rx RSS hash offload capabilities 2019-11-11 16:15:37 +01:00
dpaa drivers/net: update Rx RSS hash offload capabilities 2019-11-11 16:15:37 +01:00
dpaa2 net/dpaa2: fix Rx offload flags on jumbo MTU set 2019-11-11 17:25:31 +01:00
e1000 drivers/net: update Rx RSS hash offload capabilities 2019-11-11 16:15:37 +01:00
ena net/ena: fix indication of bad L4 Rx checksums 2019-11-08 23:15:04 +01:00
enetc net/enetc: enable dpaax library 2019-10-23 16:43:10 +02:00
enic drivers/net: update Rx RSS hash offload capabilities 2019-11-11 16:15:37 +01:00
failsafe net/failsafe: support xstats 2019-11-11 14:23:02 +01:00
fm10k drivers/net: update Rx RSS hash offload capabilities 2019-11-11 16:15:37 +01:00
hinic drivers/net: update Rx RSS hash offload capabilities 2019-11-11 16:15:37 +01:00
hns3 net/hns3: fix FLR reset 2019-10-25 19:23:23 +02:00
i40e drivers/net: update Rx RSS hash offload capabilities 2019-11-11 16:15:37 +01:00
iavf drivers/net: update Rx RSS hash offload capabilities 2019-11-11 16:15:37 +01:00
ice drivers/net: update Rx RSS hash offload capabilities 2019-11-11 16:15:37 +01:00
ifc net/ifc: clean LTO warnings 2019-11-08 15:23:41 +01:00
ipn3ke net/ipn3ke: remove commented out code 2019-11-08 16:40:28 +01:00
ixgbe drivers/net: update Rx RSS hash offload capabilities 2019-11-11 16:15:37 +01:00
kni drivers/net: enable promiscuous and multicast by default 2019-10-23 16:43:10 +02:00
liquidio drivers/net: update Rx RSS hash offload capabilities 2019-11-11 16:15:37 +01:00
memif net/memif: support multiple Tx 2019-10-25 19:00:22 +02:00
mlx4 drivers/net: update Rx RSS hash offload capabilities 2019-11-11 16:15:37 +01:00
mlx5 net/mlx5: fix check of RSS queue index 2019-11-20 17:36:05 +01:00
mvneta ethdev: make stats and xstats reset callbacks return int 2019-10-07 15:00:54 +02:00
mvpp2 ethdev: change allmulticast callbacks to return status 2019-10-07 15:00:55 +02:00
netvsc drivers/net: update Rx RSS hash offload capabilities 2019-11-11 16:15:37 +01:00
nfb ethdev: move queue state defines to private file 2019-11-08 23:15:04 +01:00
nfp drivers/net: update Rx RSS hash offload capabilities 2019-11-11 16:15:37 +01:00
null drivers/net: enable promiscuous and multicast by default 2019-10-23 16:43:10 +02:00
octeontx ethdev: make stats and xstats reset callbacks return int 2019-10-07 15:00:54 +02:00
octeontx2 drivers/net: update Rx RSS hash offload capabilities 2019-11-11 16:15:37 +01:00
pcap net/pcap: fix argument checks 2019-11-08 15:34:10 +01:00
pfe mk: fix dpaax library dependency 2019-11-08 23:15:04 +01:00
qede drivers/net: update Rx RSS hash offload capabilities 2019-11-11 16:15:37 +01:00
ring drivers/net: enable promiscuous and multicast by default 2019-10-23 16:43:10 +02:00
sfc drivers/net: update Rx RSS hash offload capabilities 2019-11-11 16:15:37 +01:00
softnic net/softnic: add subport config flexibility to TM 2019-10-25 17:53:00 +02:00
szedata2 net/szedata2: fix dependency check 2019-10-08 12:14:31 +02:00
tap net/tap: fix blocked Rx packets 2019-10-23 16:43:08 +02:00
thunderx drivers/net: update Rx RSS hash offload capabilities 2019-11-11 16:15:37 +01:00
vdev_netvsc drivers: remove duplicated compiler flags 2019-10-24 01:04:14 +02:00
vhost net/vhost: support TSO disabling 2019-10-07 15:00:57 +02:00
virtio net/virtio-user: fix setting filters 2019-11-08 23:15:05 +01:00
vmxnet3 drivers/net: update Rx RSS hash offload capabilities 2019-11-11 16:15:37 +01:00
Makefile net/pfe: introduce basic functions 2019-10-23 16:43:08 +02:00
meson.build net/pfe: introduce basic functions 2019-10-23 16:43:08 +02:00