[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20171105184546.Horde.a-gZvkBaubvOCMMOf0npg62@gator4166.hostgator.com>
Date: Sun, 05 Nov 2017 18:45:46 -0600
From: "Gustavo A. R. Silva" <garsilva@...eddedor.com>
To: Saeed Mahameed <saeedm@....mellanox.co.il>
Cc: Saeed Mahameed <saeedm@...lanox.com>,
Matan Barak <matanb@...lanox.com>,
Leon Romanovsky <leonro@...lanox.com>,
Linux Netdev List <netdev@...r.kernel.org>,
linux-rdma@...r.kernel.org,
linux-kernel <linux-kernel@...r.kernel.org>,
Jes Sorensen <jsorensen@...com>,
Martin KaFai Lau <kafai@...com>
Subject: Re: [PATCH] net/mlx5e/core/en_fs: fix pointer dereference after
free in mlx5e_execute_l2_action
Hi Saeed,
Quoting Saeed Mahameed <saeedm@....mellanox.co.il>:
> On Sat, Nov 4, 2017 at 8:54 PM, Gustavo A. R. Silva
> <garsilva@...eddedor.com> wrote:
>> hn is being kfree'd in mlx5e_del_l2_from_hash and then dereferenced
>> by accessing hn->ai.addr
>>
>> Fix this by copying the MAC address into a local variable for its safe use
>> in all possible execution paths within function mlx5e_execute_l2_action.
>>
>> Addresses-Coverity-ID: 1417789
>> Fixes: eeb66cdb6826 ("net/mlx5: Separate between E-Switch and MPFS")
>> Signed-off-by: Gustavo A. R. Silva <garsilva@...eddedor.com>
>
> Acked-by: Saeed Mahameed <saeedm@...lanox.com>
>
> Looks good.
> Thank you Gustavo.
>
Glad to help.
Thanks
--
Gustavo A. R. Silva
Powered by blists - more mailing lists