[dpdk-dev] [PATCH] net/mlx5: fix the get function of Rx queue type
Matan Azrad
matan at mellanox.com
Tue Nov 12 15:16:35 CET 2019
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 it is valid.
>
> Fixes: 09775c04aace ("net/mlx5: split hairpin flows")
> Cc: orika at mellanox.com
>
> Signed-off-by: Dekel Peled <dekelp at mellanox.com>
Acked-by: Matan Azrad <matan at mellanox.com>
More information about the dev
mailing list