Received: by 2002:ac0:c50a:0:0:0:0:0 with SMTP id y10csp1376022imi; Fri, 1 Jul 2022 08:31:11 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uauUx/kwP5cPESV6nU4tb/CD9oTFWgKNCZwbF2aDE7mIRHGhfaxBWsCHoGxrtXVGU9iaD1 X-Received: by 2002:a05:6402:3907:b0:431:6776:64e7 with SMTP id fe7-20020a056402390700b00431677664e7mr19860563edb.0.1656689470812; Fri, 01 Jul 2022 08:31:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656689470; cv=none; d=google.com; s=arc-20160816; b=duNyLhUMrQXD8w0hch1NvHzG+UISNB8S0FuCzyEyU3Y6Y0GPLKI5Xo9B4dYrdEhP5w g6AnJhM//hmC9mFi5BQV79T1Wi4RvkqFE5mR2j58TS8BCv6S+5fLHPc6B7c2VACS3bmE liwBz05pB26cAKPZAyYaCBWaGT9Th+P6Nnk1hFLD6pAPk0InNUsHl7Nk8bp3C20Ar8vw Ffsage3DnaTdURYNYF1Ya12rSWV2I2PcnJtu2PZImL8bD2uR1hRlfweySwXGmbO/hCnY FRiCT4pfp3cH/EfIdT1O01rxZZR4/MxSBRsvInyMocXG8PnjowtVpn+nMstbjOGZB49k aGaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=K0iZiXinEatv8xEcBISd59Ab8eNplLifK/KFllgmDfA=; b=sL2JFBcNZ0J9JTHElt7Txn2zYJYVsvf1LuYIvwbixLCgfP2/EY47WGAdKLL5cJZ1sS tMw7ovRryq18x0yOGIME8J1BMy3AQoPN0imCKNO5CXOmtg8iYa6X8LSPWZWczdhMVEOK MwuMSLGf40AHeV0V/LQ/fRW1dQjbFXr8RXJbFLB3JrrKpFk8BSasAwB2TIN07T+oaea1 6kxzktC5q/4mw5inHT2KyUoa2hQKrEKdES2QKQsmzp7SGjq1tYTbDHA+cTB2IgOZM71o zM6UyAY1aAtp3NygfxIjpqYYgWWt787W8LCHa7nD+NXEqK547KhFX78H7ZN2ndHdl0BR nRzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=AkKkSH90; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h13-20020a05640250cd00b0043574c5a72fsi32554807edb.360.2022.07.01.08.30.45; Fri, 01 Jul 2022 08:31:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=AkKkSH90; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230426AbiGAP1H (ORCPT + 99 others); Fri, 1 Jul 2022 11:27:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53946 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229632AbiGAP1F (ORCPT ); Fri, 1 Jul 2022 11:27:05 -0400 Received: from mail-ej1-x631.google.com (mail-ej1-x631.google.com [IPv6:2a00:1450:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EA3B637A83; Fri, 1 Jul 2022 08:27:04 -0700 (PDT) Received: by mail-ej1-x631.google.com with SMTP id lw20so4698470ejb.4; Fri, 01 Jul 2022 08:27:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=K0iZiXinEatv8xEcBISd59Ab8eNplLifK/KFllgmDfA=; b=AkKkSH90WBGW9spYSEFDjhuJfRAK1ihCSwwzha9d19mrwuRU2ZUQa5QaL9Mx5vKUSw 0zHYHRn56sSlCNx6XxWOue2MBL05jvRsk9cfBCwzBROcGgURGosPCaCXTn0qhBMZhfjd e8zM93KjwIcl3oNi4eG7snL8BNEFwvunUQkQy7MncYAmYtgHXYDz62fxHPJuALmnTBYX 27n96hX2Hn5khXgz0InQoSDBO1eb1oxxWeO6toAtc2AKzHG9jRWxxqeOt/NAk+2Gy/Kj uSRGoVa/M9Ct/sUVJfLqY1V9us0aLfTaUY8j6xMhhnRUy6h8v6WohYydD5/131WLXu2j vTFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=K0iZiXinEatv8xEcBISd59Ab8eNplLifK/KFllgmDfA=; b=OpyMpAbFsIJCs5hVB11mdWeTL3fiRxi5MVvNCI9oCT8dcnxq/YpVGWXp05GvHlC0vA Xc7TxF4+DriCaz5mxOfx4dIqqtWxtn90kb47swIEDISgY/CeW1I9Uz2PCGgrIrrCE78J 6aV5/FV/HnXvCsPgc39myVmKvn7X5aR2MBazjlukAdpONMP4pV/WnXJVuX0Owqk+3mNN UWAdkoxizzbUzkUjZgSkqjRe9SqoR3388MGYPkIaMSBUofvSGNAvb6+vFjlRVrxxZVCh Y7pneR2I8LZJgeyMTUWm4onJwjtTMbs1kPayiuGKN/H3STr3vDeQ3FeJHcXs+bIIB+My X/ug== X-Gm-Message-State: AJIora80fRAb7oiYoB3EvxQFQpD/Xy1hCXm8BrWrHZC8bPWrt2GJVprj UThrrt1ctbFxzHocUkti3Bo= X-Received: by 2002:a17:906:6146:b0:722:f8c4:ec9b with SMTP id p6-20020a170906614600b00722f8c4ec9bmr15708406ejl.708.1656689223488; Fri, 01 Jul 2022 08:27:03 -0700 (PDT) Received: from skbuf ([188.25.161.207]) by smtp.gmail.com with ESMTPSA id k11-20020a17090632cb00b0072a881b21d8sm1121201ejk.119.2022.07.01.08.27.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Jul 2022 08:27:02 -0700 (PDT) Date: Fri, 1 Jul 2022 18:27:00 +0300 From: Vladimir Oltean To: Ido Schimmel Cc: Hans S , Hans Schultz , "David S. Miller" , Jakub Kicinski , netdev@vger.kernel.org, Andrew Lunn , Vivien Didelot , Florian Fainelli , Eric Dumazet , Paolo Abeni , Jiri Pirko , Ivan Vecera , Roopa Prabhu , Nikolay Aleksandrov , Shuah Khan , Daniel Borkmann , Hans Schultz , linux-kernel@vger.kernel.org, bridge@lists.linux-foundation.org, linux-kselftest@vger.kernel.org Subject: Re: [PATCH net-next v1 1/1] net: bridge: ensure that link-local traffic cannot unlock a locked port Message-ID: <20220701152700.sf2h6wbxx6dgll7a@skbuf> References: <20220630111634.610320-1-hans@kapio-technology.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 01, 2022 at 04:51:44PM +0300, Ido Schimmel wrote: > On Fri, Jul 01, 2022 at 09:47:24AM +0200, Hans S wrote: > > One question though... wouldn't it be an issue that the mentioned > > option setting is bridge wide, while the patch applies a per-port > > effect? > > Why would it be an issue? To me, the bigger issue is changing the > semantics of "locked" in 5.20 compared to previous kernels. > > What is even the use case for enabling learning when the port is locked? > In current kernels, only SAs from link local traffic will be learned, > but with this patch, nothing will be learned. So why enable learning in > the first place? As an administrator, I mark a port as "locked" so that > only traffic with SAs that I configured will be allowed. Enabling > learning when the port is locked seems to defeat the purpose? I think if learning on a locked port doesn't make sense, the bridge should just reject that configuration.