From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH v2 net] net: dsa: Discard frames from unused ports Date: Sun, 08 Apr 2018 10:35:17 -0400 (EDT) Message-ID: <20180408.103517.1213809560648788946.davem@davemloft.net> References: <1523126260-15559-1-git-send-email-andrew@lunn.ch> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, f.fainelli@gmail.com, vivien.didelot@savoirfairelinux.com To: andrew@lunn.ch Return-path: Received: from shards.monkeyblade.net ([184.105.139.130]:50696 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751402AbeDHOfS (ORCPT ); Sun, 8 Apr 2018 10:35:18 -0400 In-Reply-To: <1523126260-15559-1-git-send-email-andrew@lunn.ch> Sender: netdev-owner@vger.kernel.org List-ID: From: Andrew Lunn Date: Sat, 7 Apr 2018 20:37:40 +0200 > 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. > > Reported-by: Chris Healy > Fixes: 91da11f870f0 ("net: Distributed Switch Architecture protocol support") > Signed-off-by: Andrew Lunn > --- > v2: > Use an earlier revision for the fixes tag. > Add unlikely annotation Applied and queued up for -stable, thanks.