Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp1939370imi; Sun, 24 Jul 2022 01:26:27 -0700 (PDT) X-Google-Smtp-Source: AGRyM1v90D7AukPrr4WKwvTC5CG16xSF+Kf/OHzUmkjySyWCEKcyH4K45FD5R1VLkuPzS53tR8fL X-Received: by 2002:a05:6402:1d93:b0:43b:a38a:e335 with SMTP id dk19-20020a0564021d9300b0043ba38ae335mr7957596edb.337.1658651187400; Sun, 24 Jul 2022 01:26:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658651187; cv=none; d=google.com; s=arc-20160816; b=kABmwO3Gko1CD4oa3vAq4/EoO+Iou5luP/W7I3eOSEUwh+Zhm/167pr73+G3cUsedy pS6fnqZ6HOcZOMXkrPLJ/51AO+HlmfifAhyzWe+pGjRslkru33dOKf3mbwXFVHMQgwYQ x+cec3YGDMB9CLN5NbviqbUgBhXjH7HJh+AnF0eaKH0DLIP78E/ceNMlMgrhf6JseIzn e5nDDATGcSTfAwWjFavidCrWDaZL1tdjVyMtm3YdTDRlCG23CXhYXuTUpvRxpsTdlIlL /WS16vu0M/G+BN6KD7VfeTEsU5F2zgErn0vp4M31nwP4ppt7OMzz1kDFp2JtuIRJ99fW gSMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=4j2cZN1zYQwRk4mpzSYDT0FtltzsuIeHx0BCJeg+1MI=; b=i4C9J+INm0q795RozYMyyKcWo9Se7KHV/2EPPa+kJkdAlqY98qNE6BeuLuONkRXm3r 5KWnOHHh6nxw6wt8I+MONyK1WnkbIJbR59+mSkSwvp9XEQpFByqliVy6faTCyuGIPsXp Vi5tcoQIdOeEC3PhTA2IsHQDP9Apts4LkIe+lFseojRzfGvYahrKa1qmgx9a9fNnPUmO jnr/9Af9SA0ppfgbQaLfC+SeqcgOI7KZj1UUPGCO6jb15VNUys3DczJwgJeA8okA7Z1Q LmX5bS9itX7JvpHd57qqCNGl7uVsdpr10EQ8JvSLH/Gzc03Mws1zIHR+886sqON8wOBn ywIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=FDC1RPQ3; 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 y2-20020a056402358200b0043bfbbbf047si110676edc.239.2022.07.24.01.26.03; Sun, 24 Jul 2022 01:26:27 -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=FDC1RPQ3; 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 S231871AbiGXIL2 (ORCPT + 99 others); Sun, 24 Jul 2022 04:11:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39278 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229486AbiGXIL0 (ORCPT ); Sun, 24 Jul 2022 04:11:26 -0400 Received: from mail-wr1-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2798B15FFA; Sun, 24 Jul 2022 01:11:25 -0700 (PDT) Received: by mail-wr1-x431.google.com with SMTP id m17so11604687wrw.7; Sun, 24 Jul 2022 01:11:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=4j2cZN1zYQwRk4mpzSYDT0FtltzsuIeHx0BCJeg+1MI=; b=FDC1RPQ342icpKEeFzetsAQN1Q1CFXtM5cASqyAfrvxxiF0Mi9rDkVLxxGPfS7UXJ+ Q3096eUT8BRnrsCb1iY6+0aENWYYoP9qOg+K3yblDf62ndrmf/huBe8vHUeFwDB1nges xqpwsVcbZuRIKHOo9oMu3N2pcEkXHECcFHDaCYfHg8U4oxbeckCHueqb67SdxJdMxj3z wGkeSF/bcFcMQzvlLVdVJ4Gayv17AmSXKOCEqm8HY6VzWhVidZLl0ldUzmX11zvvy4dM chgw6+MRG4eYzqo6i4YV17MMFk+/v1VPkhLngGm8PBJdzOXdYwCQtAHn2ubDmGZiyaGJ 2Kgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=4j2cZN1zYQwRk4mpzSYDT0FtltzsuIeHx0BCJeg+1MI=; b=l0gxzgmCYxHRAVIp5XxDGt1o/iSTc/MCkrBHp+Ap8emEozMZsc4UIafbByRZuK/+aI fEkh4ESR7tiK7y1N8LD8uk3P5Vuqdhyb+oBnL7/LiSDB5pqHlN6ZH3clf7g+HR8KR73h dowLBFHeGElvbZ0XouVMyZrfjzy4vo0ADdPg8mMi8PKjzl6fQU/nQonkfZP49zK1acBx IuDYAW24Vchk66b4DPB0yVoOUL9mJmJyv6K0Gcrfyd0WbrT2WTF7sEHiLUxtqQxjgyGo zvoGRqJXUaPyeZG+O5SoVv6gZzpExUFnZi5wE/29azPTRC0iSKwj87nr6iwIUtiv9XhA LU2A== X-Gm-Message-State: AJIora9BOWD4MKgevDjND85idVpGVBqHPMS2V8M+SmcxxM6ueWSwTwel imLVLnck47kO6caa20Ln9VArPe9zmcnfSKoy/wA= X-Received: by 2002:a5d:42c4:0:b0:21e:2cd4:a72e with SMTP id t4-20020a5d42c4000000b0021e2cd4a72emr4545412wrr.249.1658650283641; Sun, 24 Jul 2022 01:11:23 -0700 (PDT) MIME-Version: 1.0 References: <20220717134610.k3nw6mam256yxj37@skbuf> <20220717140325.p5ox5mhqedbyyiz4@skbuf> <20220717183852.oi6yg4tgc5vonorp@skbuf> <20220721114540.ovm22rtnwqs77nfb@skbuf> In-Reply-To: <20220721114540.ovm22rtnwqs77nfb@skbuf> From: Hans S Date: Sun, 24 Jul 2022 10:09:11 +0200 Message-ID: Subject: Re: [PATCH net-next v1 1/1] net: bridge: ensure that link-local traffic cannot unlock a locked port To: Vladimir Oltean Cc: Ido Schimmel , "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 Content-Type: text/plain; charset="UTF-8" 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 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 Thu, Jul 21, 2022 at 1:45 PM Vladimir Oltean wrote: > > On Sun, Jul 17, 2022 at 09:20:57PM +0200, Hans S wrote: > > I'm only pointing out the obvious here, we need an opt in for MAB, and > the implemented behavior I've seen here kind of points to mapping this > to "+learning +locked", where the learning process creates locked FDB entries. I can go with the reasoning for the opt in for MAB, but disabling link local learning system wide I don't think is a good idea, unless someone can ensure me that it does not impact something else. In general locked ports should never learn from link local, which is a problem if they do, which suggests to me that this patch should eventually be accepted as the best solution.