[dpdk-dev] [PATCH] lpm6: fix use after free of lpm in rte_lpm6_create

2016-03-11 Thread Christian Ehrhardt
Hi, thanks already Stephen for your ack on this patch. I was realizing that my lpm patches were still not applied which is ok given the amount of patches flowing by, but I wanted to ask again. Considering the discussion between Bruce and Thomas about review and maintainers I realized it might be

[dpdk-dev] [PATCH] lpm6: fix use after free of lpm in rte_lpm6_create

2016-03-04 Thread Stephen Hemminger
On Fri, 4 Mar 2016 11:31:20 +0100 Christian Ehrhardt wrote: > In certain autotests lpm->max_rules turned out to be non initialized. > That was caused by a failing allocation for lpm->rules_tbl in rte_lpm6_create. > It then left the function via goto exit with lpm freed, but still a pointer >

[dpdk-dev] [PATCH] lpm6: fix use after free of lpm in rte_lpm6_create

2016-03-04 Thread Christian Ehrhardt
In certain autotests lpm->max_rules turned out to be non initialized. That was caused by a failing allocation for lpm->rules_tbl in rte_lpm6_create. It then left the function via goto exit with lpm freed, but still a pointer value being set. In case of an allocation failure it resets lpm to NULL