Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp2460246imd; Fri, 2 Nov 2018 11:47:27 -0700 (PDT) X-Google-Smtp-Source: AJdET5dX9wUPv1iZiAKA/VMy6AAfOKiFrPYV1RZCtQMrrKTevfVVga121ZyuMVje/GTQP9ZRN6q4 X-Received: by 2002:a63:2f07:: with SMTP id v7mr11271586pgv.368.1541184447573; Fri, 02 Nov 2018 11:47:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1541184447; cv=none; d=google.com; s=arc-20160816; b=Wrqv0F7aoLKrMqZDbESv6t2FOKmelpgfMKUTl1vB34p06BjV5oK145Y5ADbqejYpCW FGn8pUTbqCEF5mE+bNagQSvjromBrXMc/XhOO3dwHYn/vDA/dcYxSmNUACjeJuTbbcCy 4ckgyP7UgytmVnYmrEw2esxlviKEJPoYD9xqZWA+nHHvLEx4roU5J5X0CD0lHK6Yhgx+ yMRFlFMsguOH9/NZDDuMsNUvpMHw8y70B6bMqtMd0+mctbQoSrP7wvSPz9qSxJYS7iq5 xWVv91KXSWdbq3KCU3NAj7PEMNzqlK0HXgTtkw/nHqErRcxJrpMjxqqeLi6CjNDbpYix oJkQ== 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=OR+rdsmhXc3LFR4gZUjwBmav2Hhk6oKKV1rxAhhvoK8=; b=RRottUImRs830HboejFcEenqSEcoyngsuDFWssZ/l9RQtnVOixyvJ0v3AulwUpNrV8 lJ5/WE4qJPArqiiZ+tisekIQ7BiLTY42tlGK20QVOboa3miLGusp9+/7Hefj66Y0B7+N 3SJLmwvS12HOqRvp1Re0DvnIo211+DI6yXLTYk9sy9+Zea92qozi/Efo4WOvLFfTeu1w /v5e/kHcBzkiDTCw7BndnMZcLMvdgqPjtIH99VyA9t2wLywhKOiqEUc5ZByP5Qrkrdcn gOsERhoCdMu/dm53MH6yHaVFcOU5TwNVFRhGXLiRXvjdFlXepaBOX1Ag24oambshFdq7 6p9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=LfakxAlU; 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 m6-v6si10883577pls.35.2018.11.02.11.47.13; Fri, 02 Nov 2018 11:47:27 -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=LfakxAlU; 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 S1730374AbeKCDyg (ORCPT + 99 others); Fri, 2 Nov 2018 23:54:36 -0400 Received: from mail.kernel.org ([198.145.29.99]:50564 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729136AbeKCDyf (ORCPT ); Fri, 2 Nov 2018 23:54:35 -0400 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 9A16720837; Fri, 2 Nov 2018 18:46:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1541184382; bh=sdDH0iOihs1E7t16M1FajuNFq9k0F3Px3JMv9jsr3hU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LfakxAlUx9CPTqXKoQWYz1WyQWY4BxTsICyAsuf5E0/yYLQDoxOYQN1WHtnPjSPTk 0M8S1m+vALAW4QeuxeKlRif0zbzDKAweZNG8RWbFwXv9OQQyj1Vv6ld4Rc5UEsHesI azVb91q8xqv4NWdpEDbux+buxSyXn6bDSaCRTWfI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Nikolay Aleksandrov , "David S. Miller" , Hangbin Liu Subject: [PATCH 4.18 150/150] net: bridge: remove ipv6 zero address check in mcast queries Date: Fri, 2 Nov 2018 19:35:12 +0100 Message-Id: <20181102182912.786826018@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181102182902.250560510@linuxfoundation.org> References: <20181102182902.250560510@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review 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.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: Nikolay Aleksandrov commit 0fe5119e267f3e3d8ac206895f5922195ec55a8a upstream. Recently a check was added which prevents marking of routers with zero source address, but for IPv6 that cannot happen as the relevant RFCs actually forbid such packets: RFC 2710 (MLDv1): "To be valid, the Query message MUST come from a link-local IPv6 Source Address, be at least 24 octets long, and have a correct MLD checksum." Same goes for RFC 3810. And also it can be seen as a requirement in ipv6_mc_check_mld_query() which is used by the bridge to validate the message before processing it. Thus any queries with :: source address won't be processed anyway. So just remove the check for zero IPv6 source address from the query processing function. Fixes: 5a2de63fd1a5 ("bridge: do not add port to router list when receives query with source 0.0.0.0") Signed-off-by: Nikolay Aleksandrov Signed-off-by: David S. Miller Cc: Hangbin Liu Signed-off-by: Greg Kroah-Hartman --- net/bridge/br_multicast.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) --- a/net/bridge/br_multicast.c +++ b/net/bridge/br_multicast.c @@ -1426,8 +1426,7 @@ static void br_multicast_query_received( * 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))) + saddr->proto == htons(ETH_P_IPV6)) br_multicast_mark_router(br, port); }