numam-dpdk/drivers
Suanming Mou 4a73c86ff6 net/mlx5: fix crash on GRE flow rule parsing
When set the GRE item, GRE key should follow after GRE header, or the
header gre_item pointer used by the key will be invalid.

Currently in the mlx5_flow_validate_item_gre_key() function, the header
gre_item pointer is access before checking if the key is after the
header or not. Once the key item is before the header, invalid gre_item
pointer access happens.

Move the gre_item pointer access after the GRE header check to avoid the
crash issue.

Fixes: a7a0365565 ("net/mlx5: match GRE key and present bits")
Cc: stable@dpdk.org

Signed-off-by: Suanming Mou <suanmingm@mellanox.com>
Acked-by: Ori Kam <orika@mellanox.com>
2019-11-26 18:22:27 +01:00
..
baseband build: align symbols with global ABI version 2019-11-20 23:05:39 +01:00
bus bus/pci: clear driver on detach 2019-11-21 00:18:02 +01:00
common net/octeontx: add application domain validation 2019-11-26 07:49:30 +01:00
compress build: align symbols with global ABI version 2019-11-20 23:05:39 +01:00
crypto crypto/ccp: fix digest size capabilities 2019-11-25 11:01:36 +01:00
event event/octeontx2: update start timestamp periodically 2019-11-26 07:49:30 +01:00
mempool mempool/octeontx: add application domain validation 2019-11-26 07:49:30 +01:00
net net/mlx5: fix crash on GRE flow rule parsing 2019-11-26 18:22:27 +01:00
raw remove blank lines at end of file 2019-11-26 00:12:08 +01:00
Makefile drivers: add common as dependency for bus 2018-10-16 14:54:25 +02:00
meson.build build: change ABI versioning to global 2019-11-20 23:05:39 +01:00