From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH net] mlxsw: spectrum: Forbid creation of VLAN 1 over port/LAG Date: Tue, 29 May 2018 10:08:35 -0400 (EDT) Message-ID: <20180529.100835.1891188861153508596.davem@davemloft.net> References: <20180527064841.32199-1-idosch@mellanox.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, jiri@mellanox.com, petrm@mellanox.com, mlxsw@mellanox.com To: idosch@mellanox.com Return-path: Received: from shards.monkeyblade.net ([184.105.139.130]:55692 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933755AbeE2OIh (ORCPT ); Tue, 29 May 2018 10:08:37 -0400 In-Reply-To: <20180527064841.32199-1-idosch@mellanox.com> Sender: netdev-owner@vger.kernel.org List-ID: From: Ido Schimmel Date: Sun, 27 May 2018 09:48:41 +0300 > From: Petr Machata > > VLAN 1 is internally used for untagged traffic. Prevent creation of > explicit netdevice for that VLAN, because that currently isn't supported > and leads to the NULL pointer dereference cited below. > > Fix by preventing creation of VLAN devices with VID of 1 over mlxsw > devices or LAG devices that involve mlxsw devices. ... > Fixes: 9589a7b5d7d9 ("mlxsw: spectrum: Handle VLAN devices linking / unlinking") > Suggested-by: Ido Schimmel > Signed-off-by: Petr Machata > Signed-off-by: Ido Schimmel Applied and queued up for -stable.