[dpdk-dev] [PATCH v2] common/mlx5: fix netlink buffer allocation from stack

Matan Azrad matan at mellanox.com
Sun May 17 14:02:33 CEST 2020



From: Viacheslav Ovsiienko
> The buffer size to receive netlink reply messages is relatively large (32K), and
> it is allocated on the stack and it might break in application is using smaller
> per-thread stacks.
> This patch allocates temporary buffer from heap.
> 
> Fixes: ccdcba53a3f4 ("net/mlx5: use Netlink to add/remove MAC addresses")
> Cc: nelio.laranjeiro at 6wind.com
> Cc: stable at dpdk.org
> 
> Reported-by: Stephen Hemminger <stephen at networkplumber.org>
> Signed-off-by: Viacheslav Ovsiienko <viacheslavo at mellanox.com>
Acked-by: Matan Azrad <matan at mellanox.com>


More information about the dev mailing list