[dpdk-dev] [PATCH] net/mlx5: fix use of local array for global error
Raslan Darawsheh
rasland at nvidia.com
Mon Nov 9 09:20:59 CET 2020
Hi,
> -----Original Message-----
> From: dev <dev-bounces at dpdk.org> On Behalf Of Dekel Peled
> Sent: Wednesday, November 4, 2020 4:25 PM
> To: Slava Ovsiienko <viacheslavo at nvidia.com>; Shahaf Shuler
> <shahafs at nvidia.com>; Matan Azrad <matan at nvidia.com>
> Cc: dev at dpdk.org
> Subject: [dpdk-dev] [PATCH] net/mlx5: fix use of local array for global error
>
> Recent patch uses a local string array as input for function
> rte_flow_error_set().
> This stack memory may be later used by other code sections,
> overwriting the desired error string.
>
> This patch impelemnets an error string for the specific case
> requested, of ICMP item not supported in Verbs flow engine.
>
> Fixes: cb6a02dcea9d ("net/mlx5: support item type error message in flow
> Verbs")
>
> Signed-off-by: Dekel Peled <dekelp at nvidia.com>
> Acked-by: Matan Azrad <matan at nvidia.com>
> ---
> drivers/net/mlx5/mlx5_flow_verbs.c | 16 ++++++++--------
> 1 file changed, 8 insertions(+), 8 deletions(-)
>
Patch applied to next-net-mlx,
Kindest regards,
Raslan Darawsheh
More information about the dev
mailing list