Received: by 2002:ac0:b08d:0:0:0:0:0 with SMTP id l13csp4919771imc; Mon, 25 Feb 2019 13:39:02 -0800 (PST) X-Google-Smtp-Source: AHgI3IYEamPElvCT9Kh6Nn7odOPBRx50gkYiQfovbH+ARXYMEUs1J/5dZkhVhFT14L8PA4J/eyMN X-Received: by 2002:a63:81c7:: with SMTP id t190mr21242334pgd.166.1551130742153; Mon, 25 Feb 2019 13:39:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551130742; cv=none; d=google.com; s=arc-20160816; b=hC3VzqFqcM2XeVbG/VW2lIW/sQ11NzBEUgZO0ogIGLBTLM+8mTyS3HwVkFfokMq9yi srLZKG4MY6nz5lhA+iSemEodT1JadEAc1KmZSO5bQU12Pf2cTEIHIlEO9tM+tjeiJ4QX NoNcIafWR/Iu4wx7loXAr1vx9f6ayXmKQWbyB4d+hBvviJcDoJM7IbDFlsV5T/uh4mvx obc5ffTcU5fG/gWrzJ391rKn1Jceq3tusDMnopztVxlti25MTIHtvGSsCtDC8kOZBRuK ii7SfXZjFT26zwbautzQe900VCmtJWBjJBqVHSh7I/jDb9kcA0+YDZJBHJMso/XMYaeI HiyA== 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=jN4djzrgobH3rYtHJGhHDXN1oD29SUfHhvpGaiEUlF8=; b=Tv3Z50+d3AdCAa9GXfpAcUavJUQCSuIps3Vk5yyP9OfuU0bZj85RInbbl7Pvb0L739 iHy/rFVNdfe5hZ+P+KvAxPi5WRfUbPQPpvm7bYOTQr72WoqJFJor6OiIMTWk2CeRL5+o JwXuh2/HGXNtaa8NxyamauJ8iDYe4F5bxQmDwN2HUriiQhc3IALVQ0XJHdV6n8dH1Us7 GAxzNyyMiQZNGIicOJ60NRzPL7kvozLv9BhtjzEGaHxS1Zb83/GBpUN2XNPX36Nvthlk 9vZ0GRHVTaUErn/gGcit9CgPTJv49h4G+Wuz8Tbc8aeR3ouNlNIoUNbTPrR9PpuF1MMk H4ew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=lx51nCnY; 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 h128si9971894pgc.397.2019.02.25.13.38.46; Mon, 25 Feb 2019 13:39:02 -0800 (PST) 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=lx51nCnY; 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 S1733300AbfBYVhA (ORCPT + 99 others); Mon, 25 Feb 2019 16:37:00 -0500 Received: from mail.kernel.org ([198.145.29.99]:44160 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733289AbfBYVg6 (ORCPT ); Mon, 25 Feb 2019 16:36:58 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.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 8B1DE217F5; Mon, 25 Feb 2019 21:36:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1551130618; bh=paSh/sJFCwCKqMx1H2JQ8yDMI7N0q3iDUCrIwbxd3FU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lx51nCnYfv0MdVDpphoYm+U4ZIYyoA5gT99YfHjK8hp4S91RaBC4M2UV5uW+KVm6R E9L+E35ikhKB6wtB6BWFKCkOTFmJwQDPBlGG9ywHxXce7uokMNbSJMrc8irs2E6G9C gB7+qCZJA6jPDwzqyEZOkEitiSmnDSnw7a1JcSJo= 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.20 177/183] Revert "bridge: do not add port to router list when receives query with source 0.0.0.0" Date: Mon, 25 Feb 2019 22:12:30 +0100 Message-Id: <20190225195124.985027486@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190225195054.748060397@linuxfoundation.org> References: <20190225195054.748060397@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.20-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 @@ -1422,14 +1422,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 void br_ip4_multicast_query(struct net_bridge *br,