Re: [dpdk-dev] [PATCH] net/mlx5: fix the get function of Rx queue type

2019-11-13 Thread Raslan Darawsheh
Hi, > -Original Message- > From: dev On Behalf Of Dekel Peled > Sent: Monday, November 11, 2019 4:33 PM > To: Matan Azrad ; Shahaf Shuler > ; Slava Ovsiienko > Cc: Ori Kam ; dev@dpdk.org > Subject: [dpdk-dev] [PATCH] net/mlx5: fix the get function of Rx que

Re: [dpdk-dev] [PATCH] net/mlx5: fix the get function of Rx queue type

2019-11-12 Thread Matan Azrad
From: Dekel Peled > Function mlx5_rxq_get_type() uses the input queue index, without checking > it, as index to the Rx queues array. > If this value is too high, it will result in pointer to memory out of Rx > queues > array bounds. > > This patch adds check of the input queue index, to verify

[dpdk-dev] [PATCH] net/mlx5: fix the get function of Rx queue type

2019-11-11 Thread Dekel Peled
Function mlx5_rxq_get_type() uses the input queue index, without checking it, as index to the Rx queues array. If this value is too high, it will result in pointer to memory out of Rx queues array bounds. This patch adds check of the input queue index, to verify it is valid. Fixes: 09775c04aace (