[PATCH 1/1] net/sfc: add explicit fail path for unknown tunnel flow type

Andrew Rybchenko andrew.rybchenko at oktetlabs.ru
Mon Jul 17 10:27:21 CEST 2023


On 7/14/23 15:41, Ivan Malov wrote:
> The driver supports flow tunnel offload. When the parsed rule
> type is unknown, which must not happen, the driver does not
> properly indicate the failure in non-debug builds. That
> presumably makes Coverity report possible NULL pointer
> dereference in regard with uninitialised HW match
> specification (which gets properly initialised
> when the rule type check is successful).
> 
> In order to fix this, replace the debug
> assert with a proper runtime fail path.
> 
> Coverity issue: 393675
> Fixes: 73e01736868b ("net/sfc: turn MAE flow action rules into shareable resources")
> Cc: stable at dpdk.org
> 
> Signed-off-by: Ivan Malov <ivan.malov at arknetworks.am>

Acked-by: Andrew Rybchenko <andrew.rybchenko at oktetlabs.ru>



More information about the stable mailing list