Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp48160imu; Thu, 8 Nov 2018 14:32:31 -0800 (PST) X-Google-Smtp-Source: AJdET5fUaYt547N/ppTDMwuxzAuzkOUTS5rJ9Rucc121+EYCZw8n+An/eDQZ4rA2+GlZQ/YI/YHr X-Received: by 2002:a62:d2c7:: with SMTP id c190-v6mr6383914pfg.26.1541716351759; Thu, 08 Nov 2018 14:32:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541716351; cv=none; d=google.com; s=arc-20160816; b=boGF6xkO9FZ4z8C+JIPup9kSsU8iI+UBBf1tEhUjcVqydGfKdB1uJvK1wMzaFz6qfi yCzSOQD69mFiLbjAMnjvVu2I2f7UuiTomVrkVE/urt6aDL4JhE+XdwIuPtLHL8gwZGnS otI7P+66Z3hsr0WNooddfdD2CygVhy5c/yNFdYtwbh4ggUVqE06Ublm2hvbYyrxCX7/C WnPYSp1iIhSFcX8xV1ZFCQ4el36TwK0LV0gwVT0oM97VTyi3DOzkfQP1tT5pBfBYgQ9b uaYaP7srk6n1MGKiFo+Gjj2NxeooC2aFybSpjFoELA4rcQbFZk7bUWLh2uMfvMqbkZ6a NLTA== 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=LeAO5F3xKesszEKyW5WXL/1nyg5q1Mm5w7V+sIos3jg=; b=KOErJE47vN0jQAzWqX3eMpyzktvdUDKIZ4tpJB/jaSmUxoXfcps/qv23/dgVQZGNAh cY4KUHe8Xkv3MxKue4PNY+UFO9jOK7WArbdbkTpQvBR0xwt5/fpKh0dpiGima3vxfyRd 46c33vOwYHatU1q8Afn5Urv91StPzEERWYHrSvDoLKEwFcmE4TomIqHq5U2kxJlMsQcJ wcF5GdLaWA+oDZN+mqo7Bxab2XAUBqIvn3c9Pnkss8+bYtw1LsSrZLryeq8m0ZKHhLXa 9JeCz0+pKdUfmMxPcJPp03EvYXhrzYkCWSwm97mY5sUL4+0fFmudS3jLRNxsRP5NE8s2 gBcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=0XWXmFCE; 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 e6si4654532pgl.471.2018.11.08.14.32.13; Thu, 08 Nov 2018 14:32:31 -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=0XWXmFCE; 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 S1730581AbeKIHiC (ORCPT + 99 others); Fri, 9 Nov 2018 02:38:02 -0500 Received: from mail.kernel.org ([198.145.29.99]:57012 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729635AbeKIHiB (ORCPT ); Fri, 9 Nov 2018 02:38:01 -0500 Received: from localhost (unknown [208.72.13.198]) (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 36D752147A; Thu, 8 Nov 2018 22:00:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1541714432; bh=8NMhd0OcougCFlvNC+uvwxloDmSLa8/Olkli2KBbsXQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=0XWXmFCEbBwI1BPnEYLTk/kjDrGLlQYMxSm2+O2w8BxmdXMmmwG5lvNCgXHGY8ZJ7 v58gpsJzGvmwZjfbmeUx/q1ml/1pKCxqs3kXmyTlhuqKNsvNT45sSzLvVHSfLlKigc SaP+Xh5i1+MBYc5vCNWDU/sw8h+Ia4tZ3Xebaf54= 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.4 089/114] net: bridge: remove ipv6 zero address check in mcast queries Date: Thu, 8 Nov 2018 13:51:44 -0800 Message-Id: <20181108215108.859338385@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181108215059.051093652@linuxfoundation.org> References: <20181108215059.051093652@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.4-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 @@ -1267,8 +1267,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); }