Re: [PATCH v2] net/mlx5: Fix use-after-free

2018-03-23 Thread David Miller
From: "Gustavo A. R. Silva" Date: Thu, 22 Mar 2018 13:44:56 -0500 > _rule_ is being freed and then dereferenced by accessing rule->ctx > > Fix this by copying the value returned by PTR_ERR(rule->ctx) into a local > variable for its safe use after freeing _rule_ > > Addresses-Coverity-ID: 146604

Re: [PATCH v2] net/mlx5: Fix use-after-free

2018-03-22 Thread Saeed Mahameed
On Thu, 2018-03-22 at 13:44 -0500, Gustavo A. R. Silva wrote: > _rule_ is being freed and then dereferenced by accessing rule->ctx > > Fix this by copying the value returned by PTR_ERR(rule->ctx) into a > local > variable for its safe use after freeing _rule_ > > Addresses-Coverity-ID: 1466041 ("

[PATCH v2] net/mlx5: Fix use-after-free

2018-03-22 Thread Gustavo A. R. Silva
_rule_ is being freed and then dereferenced by accessing rule->ctx Fix this by copying the value returned by PTR_ERR(rule->ctx) into a local variable for its safe use after freeing _rule_ Addresses-Coverity-ID: 1466041 ("Read from pointer after free") Fixes: 05564d0ae075 ("net/mlx5: Add flow-stee