Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2240203imj; Mon, 18 Feb 2019 02:29:45 -0800 (PST) X-Google-Smtp-Source: AHgI3IZEoZG15ZQ5+7JaKeTk85IwqR/FPpLR3xQ9+iFzmlNY1R4NVAhTshWhsy26KG2LhXoNRlcW X-Received: by 2002:a65:63c1:: with SMTP id n1mr4927655pgv.339.1550485785235; Mon, 18 Feb 2019 02:29:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550485785; cv=none; d=google.com; s=arc-20160816; b=ov+hPVZw0IB5OE6rvMFFYMcCebItrGzr0wiS/s5ZRuhIBgvydmVAR9gu51nBQDPIfr nV0uhxv7WpHWgI0V06h416KGvxCyI4/k961Eor+x5cXf0w/CW9PoJLzrpDnz7ba9SVzw PqZ07wKV1MJKXQ6AcP39e3kQgIJNcA3+ylkNMbNYjLeYa0t9KGQ65GGYnusZmJxTP7Bf uDo2hiFPlRJiJJm5p04LcodA0eSobwht2VYJu0ypsLCGJ5dO5DQZVWkC+O8AS2DQI4Qh HZh2DIJYePFQYwhOnU5S6oUbF6zg5ELXq3wvdkUcph4yVEi8GctW4CLKoYaGQxaYP/iX EcNw== 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:in-reply-to :mime-version:user-agent:date:message-id:from:references:cc:to :subject:dkim-signature; bh=Acf3YPM7H/bIjmXRCTIFPkI8qVDiWV5cRXBU51KvShw=; b=gJB1GLSYtFWzZaSi5KxFnQXl20rRwHMO+9fBFnCEM6OfEVWcaszHSOHmqZQYBhCMuS 8seg0CpOaaiSPt5SQ/OU0PR5bK3nKtYFiLnnv5MD+FgWEEs89RnueMiWAUXTeBYPqSZ8 xZFtHcETRMxIjSrr7Txn5yIsTx8bNHLOBxGXS3eJrAgWNcq0aON5baEYBcMQQq/G6U6t 1N07XA11Co5onvQPu7pqnPBRI/aNVSnWHUjcGDUMvHpW2egFsPSE2ebrWzpfAGse10FL jTz4KR8hRvY0gsVyYgs0sUyjQyDAkOpPGqpcq2Ky3+REX1tJ4ipZhxCIfCdGY2f/0JrZ fd1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@newmedia-net.de header.s=mikd header.b="nrNs/Trq"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=newmedia-net.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j4si12734850pgc.186.2019.02.18.02.29.21; Mon, 18 Feb 2019 02:29:45 -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=@newmedia-net.de header.s=mikd header.b="nrNs/Trq"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=newmedia-net.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729025AbfBRKSf (ORCPT + 99 others); Mon, 18 Feb 2019 05:18:35 -0500 Received: from webmail.newmedia-net.de ([185.84.6.166]:57991 "EHLO webmail.newmedia-net.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728272AbfBRKSf (ORCPT ); Mon, 18 Feb 2019 05:18:35 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=newmedia-net.de; s=mikd; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject; bh=Acf3YPM7H/bIjmXRCTIFPkI8qVDiWV5cRXBU51KvShw=; b=nrNs/TrqyVEOgyDQLciKB0vMplD2jiP6N4v7MW3ZQgf4OWjNyhAkDzIoTEV3AKm1zElrfaDQc1nOxdIRoSvpohERa6GcuiB/MPQTwKCsyNWM+QrwYtnGD/Iv+JsRXQ1leT4mH27LsMrYUszW3JoFizjQrPtKIRmBoJw3XMpDDVw=; Subject: Re: [PATCH 4.19 01/24] bridge: do not add port to router list when receives query with source 0.0.0.0 To: Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, Ying Xu , Hangbin Liu , Nikolay Aleksandrov , Roopa Prabhu , "David S. Miller" References: <20181102182839.725385066@linuxfoundation.org> <20181102182839.913422845@linuxfoundation.org> <07d315a2-d735-3d8b-686c-9c52acf91bf1@newmedia-net.de> <20190217164809.GA24091@kroah.com> From: Sebastian Gottschall Message-ID: <7978727a-eacc-779c-771f-f4c3013237f3@newmedia-net.de> Date: Mon, 18 Feb 2019 11:18:29 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1 MIME-Version: 1.0 In-Reply-To: <20190217164809.GA24091@kroah.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Received: from [212.111.244.1] (helo=[172.29.0.186]) by webmail.newmedia-net.de with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.72) (envelope-from ) id 1gvg0Q-0001en-46; Mon, 18 Feb 2019 11:18:34 +0100 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am 17.02.2019 um 17:48 schrieb Greg Kroah-Hartman: > On Sun, Feb 17, 2019 at 03:29:22PM +0100, Sebastian Gottschall wrote: >> according to user reports this patch will cause a serious regression. >> igmp >> snooping is not working anymore with this patch >> >> Am 02.11.2018 um 19:34 schrieb Greg Kroah-Hartman: >>> 4.19-stable review patch.  If anyone has any objections, please let >>> me know. >>> >>> ------------------ >>> >>> From: Hangbin Liu >>> >>> [ Upstream commit 5a2de63fd1a59c30c02526d427bc014b98adf508 ] >>> >>> Based on RFC 4541, 2.1.1.  IGMP Forwarding Rules >>> >>>     The switch supporting IGMP snooping must maintain a list of >>>     multicast routers and the ports on which they are attached.  This >>>     list can be constructed in any combination of the following ways: >>> >>>     a) This list should be built by the snooping switch sending >>>        Multicast Router Solicitation messages as described in IGMP >>>        Multicast Router Discovery [MRDISC].  It may also snoop >>>        Multicast Router Advertisement messages sent by and to other >>>        nodes. >>> >>>     b) The arrival port for IGMP Queries (sent by multicast routers) >>>        where the source address is not 0.0.0.0. >>> >>> We should not add the port to router list when receives query with >>> source >>> 0.0.0.0. >>> >>> Reported-by: Ying Xu >>> Signed-off-by: Hangbin Liu >>> Acked-by: Nikolay Aleksandrov >>> Acked-by: Roopa Prabhu >>> Signed-off-by: David S. Miller >>> Signed-off-by: Greg Kroah-Hartman >>> --- >>>    net/bridge/br_multicast.c |   10 +++++++++- >>>    1 file changed, 9 insertions(+), 1 deletion(-) >>> >>> --- a/net/bridge/br_multicast.c >>> +++ b/net/bridge/br_multicast.c >>> @@ -1420,7 +1420,15 @@ static void br_multicast_query_received( >>>            return; >>>        br_multicast_update_query_timer(br, query, max_delay); >>> -    br_multicast_mark_router(br, port); >>> + >>> +    /* 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) && >>> +         !ipv6_addr_any(&saddr->u.ip6))) >>> +        br_multicast_mark_router(br, port); >>>    } >>>    static void br_ip4_multicast_query(struct net_bridge *br, > Is this also a problem in 4.20?  This patch went into 4.20-rc1, so it > has been around for a while with no reported issues that I can find. > Any pointers to the reports? i need to check this. i found this patch in 4.9, 4.14 and 4.4 the rest was picked up from the mailinglist. according to the git sources of 4.20 and 5.0 the same code is in there as well i just got the report from users today and was able to reproduce it with iptv streams. just by disabling the code it was working again. Sebastian > > thanks, > > greg k-h >