From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out3-smtp.messagingengine.com ([66.111.4.27]:36063 "EHLO out3-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751723AbeDVJmd (ORCPT ); Sun, 22 Apr 2018 05:42:33 -0400 Date: Sun, 22 Apr 2018 11:42:28 +0200 From: Greg KH To: David Miller Cc: andrew@lunn.ch, stable@vger.kernel.org, f.fainelli@gmail.com, cphealy@gmail.com Subject: Re: [PATCH v4.14] net: dsa: Discard frames from unused ports Message-ID: <20180422094228.GA26895@kroah.com> References: <1524002373-20456-1-git-send-email-andrew@lunn.ch> <20180417.232754.1078619169780049583.davem@davemloft.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180417.232754.1078619169780049583.davem@davemloft.net> Sender: stable-owner@vger.kernel.org List-ID: On Tue, Apr 17, 2018 at 11:27:54PM -0400, David Miller wrote: > From: Andrew Lunn > Date: Tue, 17 Apr 2018 23:59:33 +0200 > > > [ Upstream commit fc5f33768cca7144f8d793205b229d46740d183b ] > > > > The Marvell switches under some conditions will pass a frame to the > > host with the port being the CPU port. Such frames are invalid, and > > should be dropped. Not dropping them can result in a crash when > > incrementing the receive statistics for an invalid port. > > > > This has been reworked for 4.14, which does not have the central > > dsa_master_find_slave() function, so each tag driver needs to check. > > > > Reported-by: Chris Healy > > Fixes: 91da11f870f0 ("net: Distributed Switch Architecture protocol support") > > Signed-off-by: Andrew Lunn > > Reviewed-by: Florian Fainelli > > Signed-off-by: David S. Miller > > Stable folks, please queue up this backport for 4.14 stable. Now queued up, thanks. greg k-h