Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp2483750imd; Fri, 2 Nov 2018 12:11:47 -0700 (PDT) X-Google-Smtp-Source: AJdET5dIghl5XcQnt9Y8iuWCHp8QN8fdeTswoo9jUs+qPlSVYVp/64M1J8g/u12tSPn4lP324UzP X-Received: by 2002:a17:902:144:: with SMTP id 62-v6mr12485826plb.142.1541185907163; Fri, 02 Nov 2018 12:11:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1541185907; cv=none; d=google.com; s=arc-20160816; b=yC2+zp6hahai36Mcfi1/WYlaZPfjSPt3cGdt/kg3Eep//FZEUqqRZmmjo5rD03hzc5 cNFOtMTl1UaR1/Xaurco3+QROxrl9ba43yBpy16gT2hwySINEpVwT1ajBJIW5CjotcmG EqtoEZk6FjoAT/RYhISe1yoeaqwKpUdmXh+TJn17RWAdslNy0QkDhHXzS+sCGWWz/+sX 0qzO37PVCigtCGvJD1VV8TSMnr2ul+HvNdBcKGJIxSfq5/PPMhWsSc0QcWAXoKWb9q/a pWDYgYVha/i7xFDs/tKIBPlX6LPvQLUWceGQqx5Z3pL27tQyhgIFf0ba6dZrUT19kSti pwPw== 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=NCVnewNxKyuKvp+jeJ16cSuxTf+vywtbbd7PbW1SA/M=; b=N+AnHe0qROUYGVZJwFTjG509URAMFh1veVOZoQYEgd2V55DcfjKpSZIZFJ1VCePzmR H+ZbsC2gPKhfT2Ts0m5pPkP5wLVADO+2S4R+MFvPI8bKVk1T0zJQwNknqfjblAlDkPCO yWcyJfw82oSvOHb6o/Su8cjQadNdtX9WVFzUIWaSElueDigJj/4c/Mu7jS/ahvsEAdVA eBldpcJuZnV30DPrbK5GTe0j33omhLSqIpzKQ6fpdyk2JiFRf8o/jycow3/R4kVEgIh1 PxNycGoK3TFSbEXE7Z4Epk0+F5TBtXJ16dUASBuy27iEfXiDeOdx0QHW+1ajtnHy3lFO QOWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=z31HB150; 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 t10si1272244pgn.551.2018.11.02.12.11.31; Fri, 02 Nov 2018 12:11:47 -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=z31HB150; 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 S1728712AbeKCDqJ (ORCPT + 99 others); Fri, 2 Nov 2018 23:46:09 -0400 Received: from mail.kernel.org ([198.145.29.99]:39854 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727556AbeKCDqJ (ORCPT ); Fri, 2 Nov 2018 23:46:09 -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 B2C242082D; Fri, 2 Nov 2018 18:37:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1541183878; bh=HZkTctM+H9Hp5XQmYCcOLf1ddZKVo0khKwEXez4+is4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=z31HB150Tt2sM6O5SqcsPA+XZDndxO3lt/q6/0vw8KyCyfgMym7I4WUiob6Y0DQX7 ZGmfT6QdVre87DEpv4o+NRxtbnwy6BVNgs5ADS40Wc/y72JlXtfgMya7ZKmLhRod7g EFFtmbl3XvU5nft/J6zWkg/dwJUBUc226VZAIl+8= 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.19 24/24] net: bridge: remove ipv6 zero address check in mcast queries Date: Fri, 2 Nov 2018 19:34:57 +0100 Message-Id: <20181102182843.476397147@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181102182839.725385066@linuxfoundation.org> References: <20181102182839.725385066@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.19-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); }