numam-dpdk/drivers
Michael Baum e71e90938b net/mlx5: fix crash in NVGRE item translation
The flow_dv_translate_item_nvgre function add NVGRE item to matcher and
to the value.
It defines a pointer named nvrge_m that receives the item's mask into
it, and then copies some of it to the matcher.

Before copying, it checks for mask validation, and in case the mask is
NULL the function gives it a pointer to rte_flow_item_nvgre_mask.
However, the function calls from the vni mask's field before the check,
and if there is no mask, it actually does dereference to the NULL
pointer and indeed the program crashes with segfault.

Move the call from the vni field to post-validation.

Fixes: cd18e1b72f ("net/mlx5: fix build on Arm")
Cc: stable@dpdk.org

Signed-off-by: Michael Baum <michaelba@mellanox.com>
Acked-by: Matan Azrad <matan@mellanox.com>
2020-07-30 00:41:23 +02:00
..
baseband log: introduce logtype register macro 2020-07-03 15:52:51 +02:00
bus bus/vmbus: use SMP memory barrier for signaling read 2020-07-29 16:17:54 +02:00
common net/mlx5: fix counter query 2020-07-30 00:41:23 +02:00
compress common/qat: remove unused fields 2020-07-28 22:09:22 +02:00
crypto crypto/armv8: remove redundant assert definition 2020-07-28 22:09:22 +02:00
event event/dpaa2: add all-types queue capability flag 2020-07-24 07:22:41 +02:00
mempool mempool/ring: support RTS and HTS ring modes 2020-07-21 19:20:00 +02:00
net net/mlx5: fix crash in NVGRE item translation 2020-07-30 00:41:23 +02:00
raw raw/ifpga/base: fix NIOS SPI init 2020-07-22 00:42:11 +02:00
regex regex/mlx5: fix overrun on enqueueing 2020-07-29 16:49:58 +02:00
vdpa common/mlx5: remove class check from class drivers 2020-07-28 19:01:30 +02:00
Makefile common/mlx5: introduce layer for multiple class drivers 2020-07-28 19:01:11 +02:00
meson.build common/mlx5: introduce layer for multiple class drivers 2020-07-28 19:01:11 +02:00