From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756229AbYIAI4F (ORCPT ); Mon, 1 Sep 2008 04:56:05 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752415AbYIAIzu (ORCPT ); Mon, 1 Sep 2008 04:55:50 -0400 Received: from earthlight.etchedpixels.co.uk ([81.2.110.250]:55279 "EHLO lxorguk.ukuu.org.uk" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751877AbYIAIzt (ORCPT ); Mon, 1 Sep 2008 04:55:49 -0400 Date: Mon, 1 Sep 2008 09:38:27 +0100 From: Alan Cox To: Stephen Hemminger Cc: Stephen Hemminger , David Miller , Dushan Tcholich , Francois Romieu , Robert Hancock , netdev@vger.kernel.org, LKML , bridge@lists.linux-foundation.org Subject: Re: [RFC] bridge: STP timer management range checking Message-ID: <20080901093827.24eec86f@lxorguk.ukuu.org.uk> In-Reply-To: <48BB295A.6050200@vyatta.com> References: <48975BD3.6040709@shaw.ca> <20080807185802.GA16327@electric-eye.fr.zoreil.com> <20080831100537.6929c51e@extreme> <20080831104309.780cc01f@extreme> <20080831230247.76b5a193@lxorguk.ukuu.org.uk> <48BB295A.6050200@vyatta.com> X-Mailer: Claws Mail 3.5.0 (GTK+ 2.12.11; x86_64-redhat-linux-gnu) Organization: Red Hat UK Cyf., Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SL4 1TE, Y Deyrnas Gyfunol. Cofrestrwyd yng Nghymru a Lloegr o'r rhif cofrestru 3798903 Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > Seems bogus extra code to me - stops things working that should be > > allowed too. > > > The timer configuration is propagated in network protocol, so > misconfigured Linux box > could survive but effect other devices on the network that are less > robust. Maybe the That would be irrelevant. CAP_NET_ADMIN lets you make that size mess anyway. > small values would cause some other bridge to crash, go infinite loop, ... > More likely robust devices might ignore our packets (because values out > of range), leading to > routing loops and other disasters. Spamming tree isn't secure, news at 11. > The kernel does need to stop administrative settings from taking out a > network. If you have CAP_NET_ADMIN you can trivially take out the network unless it is properly switched. Now you might want your pretty little GUI and/or config tools to warn people that their configuration is outside 802 specs but that is a different matter altogether Alan