From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [patch net] mlxsw: spectrum_router: Fix NULL pointer deref Date: Tue, 02 Jan 2018 12:39:24 -0500 (EST) Message-ID: <20180102.123924.311531485776936517.davem@davemloft.net> References: <20171225075735.2058-1-jiri@resnulli.us> <20171225080254.GA1885@nanopsycho> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, idosch@mellanox.com, mlxsw@mellanox.com To: jiri@resnulli.us Return-path: Received: from shards.monkeyblade.net ([184.105.139.130]:50132 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751166AbeABRj3 (ORCPT ); Tue, 2 Jan 2018 12:39:29 -0500 In-Reply-To: <20171225080254.GA1885@nanopsycho> Sender: netdev-owner@vger.kernel.org List-ID: From: Jiri Pirko Date: Mon, 25 Dec 2017 09:02:54 +0100 > Mon, Dec 25, 2017 at 08:57:35AM CET, jiri@resnulli.us wrote: >>From: Ido Schimmel >> >>When we remove the neighbour associated with a nexthop we should always >>refuse to write the nexthop to the adjacency table. Regardless if it is >>already present in the table or not. >> >>Otherwise, we risk dereferencing the NULL pointer that was set instead >>of the neighbour. >> >>Fixes: a7ff87acd995 ("mlxsw: spectrum_router: Implement next-hop routing") >>Signed-off-by: Ido Schimmel >>Reported-by: Alexander Petrovskiy >>Signed-off-by: Jiri Pirko > > Dave, could you please queue this up for 4.14.y together > with "mlxsw: spectrum: Relax sanity checks during enslavement". Both applied and queued up for -stable.