Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp669871img; Fri, 22 Mar 2019 06:16:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqws6utXYFmYVEy/sV+kdkmuJFVjnxBPRlys0uJEROGGnn/25KKTdEjB1G0jHQxw6Pd2mk5m X-Received: by 2002:a17:902:8697:: with SMTP id g23mr9773744plo.30.1553260589076; Fri, 22 Mar 2019 06:16:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553260589; cv=none; d=google.com; s=arc-20160816; b=EGHXzAg7VeVINNOC9ViV3D6R0OdrfWfWK0tgcayLHZ0V58BHW8BZLN54uAxXFxFoFo BHN6GjQ6M1uQ9GdDnT3cJ323brIcz11dlKu10tchsZlj+s1PsoVVHJZcRHC5LLj6IKzi k91czYVDLYsIi0N+qYZsUgML2ExfHSbpIRgjpOJC0Zin52xSb2g+ICxZJ9Z9qgqzwm14 P81/GTmENSlcshxnjVQdCwotCK3vncDMKyyKTYv+xoDxJ+mTauyFYwvK1bu0IgchGv+d M0D6i5Oav1b7FUXlUzkSOLAsKqFDIzxXGClbFrKmGOlojTWAZ3WfWBlHdUBWpWhiR7V5 ixRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=WYfRQQTkRAFsv+afTqxmJOvVFcU6mlJsEjYsXrXvHHE=; b=W0P47oSPmQjBZPQY3Hs8UxJ5Tow7SJ8GiiYAw2iyaJn8GwJiTbkd9OXE/BuMCQt6y/ Xf5/+dno1P5sOAOymRkEjx9fC8XdRUex80FR6Z6CAcmLIeWwFwO9bz82zEMOVYSFaGjJ qcMRQvpT+4yurBLSH4dFMSnq0jGmuoUaHwLvxWvnuuxi2blOK1CXeg9w7KUsHc64cR/G JiaCieA0yuGl01eAYDpn1pPXaA6kYPExPWSUBc7n5Mk0S7gQN4NEDvA36ugIof4qeaiS Fh5jiL4M+iEklof+tJK2DV8/V35wJOktk/QE2K8Vipd4oVt0kyH/x8LAWm0dhofPuu+s fXqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=hdq7JRHI; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e11si7588160plb.140.2019.03.22.06.16.11; Fri, 22 Mar 2019 06:16:29 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=hdq7JRHI; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729780AbfCVNOj (ORCPT + 99 others); Fri, 22 Mar 2019 09:14:39 -0400 Received: from mail.kernel.org ([198.145.29.99]:56918 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729758AbfCVL3E (ORCPT ); Fri, 22 Mar 2019 07:29:04 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 4864720449; Fri, 22 Mar 2019 11:29:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1553254143; bh=Nh40Bkq47hiR0oqbK4JtsE4PzriVjsAkEBDBsAD08es=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hdq7JRHI4GDg/mWBgTdQo9nJlv/1iOFG2xKUZufaLBq4W9eZb41rjFPITMdfks9AP 7n+eBb59FXDYRCxjBdodthyBYT7APs3yRPcGGsMg86Tl2DoNRBAdbQ33gkONo3Izpr Rd7acEvxFjK0w1XAjcG0Kt12L2JPZjsYTu6aTniI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, =?UTF-8?q?Linus=20L=C3=BCssing?= , Sebastian Gottschall , Hangbin Liu , Nikolay Aleksandrov , "David S. Miller" Subject: [PATCH 4.4 029/230] Revert "bridge: do not add port to router list when receives query with source 0.0.0.0" Date: Fri, 22 Mar 2019 12:12:47 +0100 Message-Id: <20190322111238.731308639@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190322111236.796964179@linuxfoundation.org> References: <20190322111236.796964179@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.4-stable review patch. If anyone has any objections, please let me know. ------------------ From: Hangbin Liu commit 278e2148c07559dd4ad8602f22366d61eb2ee7b7 upstream. This reverts commit 5a2de63fd1a5 ("bridge: do not add port to router list when receives query with source 0.0.0.0") and commit 0fe5119e267f ("net: bridge: remove ipv6 zero address check in mcast queries") The reason is RFC 4541 is not a standard but suggestive. Currently we will elect 0.0.0.0 as Querier if there is no ip address configured on bridge. If we do not add the port which recives query with source 0.0.0.0 to router list, the IGMP reports will not be about to forward to Querier, IGMP data will also not be able to forward to dest. As Nikolay suggested, revert this change first and add a boolopt api to disable none-zero election in future if needed. Reported-by: Linus Lüssing Reported-by: Sebastian Gottschall Fixes: 5a2de63fd1a5 ("bridge: do not add port to router list when receives query with source 0.0.0.0") Fixes: 0fe5119e267f ("net: bridge: remove ipv6 zero address check in mcast queries") Signed-off-by: Hangbin Liu Acked-by: Nikolay Aleksandrov Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- net/bridge/br_multicast.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) --- a/net/bridge/br_multicast.c +++ b/net/bridge/br_multicast.c @@ -1261,14 +1261,7 @@ static void br_multicast_query_received( return; br_multicast_update_query_timer(br, query, max_delay); - - /* Based on RFC4541, section 2.1.1 IGMP Forwarding Rules, - * the arrival port for IGMP Queries where the source address - * is 0.0.0.0 should not be added to router port list. - */ - if ((saddr->proto == htons(ETH_P_IP) && saddr->u.ip4) || - saddr->proto == htons(ETH_P_IPV6)) - br_multicast_mark_router(br, port); + br_multicast_mark_router(br, port); } static int br_ip4_multicast_query(struct net_bridge *br,