Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1333694imm; Thu, 23 Aug 2018 01:00:29 -0700 (PDT) X-Google-Smtp-Source: AA+uWPyfc7KL3eB9vEVg35d5O/K+hrIrkginNIFNr+lRsGLedqKaQP8NJa1iBUbV7CWs+KZNtBEA X-Received: by 2002:a62:938e:: with SMTP id r14-v6mr37607437pfk.55.1535011229028; Thu, 23 Aug 2018 01:00:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535011228; cv=none; d=google.com; s=arc-20160816; b=qnK5dF9LW4wkW0rMW5By/gAxbmnhOmgxu0YiUqbXkRcFAZcCJ/VCSmN+M6VvyX3leN p9RSXrX6Qtq4YLisy7EaA7aEl96MZkuDuk1JtbzdIIHjA4s0k39JuA3qFsnyPWkdW22y 7KfwVvuuYBQEvLd8OcObdDYygdcozoWO3LOFCnnJk+LYjWRAjQYOR8LG53bIKQ37asUi V3UBmMZtFh30jIVL1jhaxKCDsMnsHvnDgeFDIG2IxVkxeuciqHRRR3I+VZYwrnwquHtU hTQeDG3IGwLrCpSpuCx1Ehkphr4pUdSeOxLo9L0MeSKfk4ceEnMIgY756adbeTsuotZD gfTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=wP+Wfs/Yq6B8t+xobr9BMbQFSFsjjMFj39h+0WwR/6c=; b=BRV15ZtuXumiXpvCSUgMbaFI3k4Vygwb0xbkXPt+E9avzLJJcCH9aJ0WhB/GK+amDz WWCbxD8gy0onyKnGgILyfhr5OEYhHN6ad4Vdz1ZzyzejUpxmQPb4dWOI5YQ5dnkxDyjl lpbSoyj4lWxzydhBWf3c4wQn2qunn8lsNf+6mHsiBWrYM7+Lca9vpVWjaaDRBxjukyUB URLfE0yQ7cGFMRgIGFlW2RLR9Fkx1VyoJc/gEMHLSF3J33GrjQEQXvPngPwUNe5RvC8I LjzW4xPWPhdM3CfEQbH+0Qw9HDQ1pxM8TkVNuSlEXpEY+g4TMta0LVhGpEjYimyofx5J TIwA== ARC-Authentication-Results: i=1; mx.google.com; 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 b1-v6si3671639pld.108.2018.08.23.01.00.14; Thu, 23 Aug 2018 01:00:28 -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; 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 S1728163AbeHWL1B (ORCPT + 99 others); Thu, 23 Aug 2018 07:27:01 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:41846 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726898AbeHWL1A (ORCPT ); Thu, 23 Aug 2018 07:27:00 -0400 Received: from localhost (5355525A.cm-6-6b.dynamic.ziggo.nl [83.85.82.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id B7E8CBB6; Thu, 23 Aug 2018 07:58:37 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hangbin Liu , "David S. Miller" , Sasha Levin Subject: [PATCH 4.4 21/79] ipv6: mcast: fix unsolicited report interval after receiving querys Date: Thu, 23 Aug 2018 09:52:57 +0200 Message-Id: <20180823074920.091360210@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180823074918.641878835@linuxfoundation.org> References: <20180823074918.641878835@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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: Hangbin Liu [ Upstream commit 6c6da92808442908287fae8ebb0ca041a52469f4 ] After recieving MLD querys, we update idev->mc_maxdelay with max_delay from query header. This make the later unsolicited reports have the same interval with mc_maxdelay, which means we may send unsolicited reports with long interval time instead of default configured interval time. Also as we will not call ipv6_mc_reset() after device up. This issue will be there even after leave the group and join other groups. Fixes: fc4eba58b4c14 ("ipv6: make unsolicited report intervals configurable for mld") Signed-off-by: Hangbin Liu Signed-off-by: David S. Miller Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- net/ipv6/mcast.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) --- a/net/ipv6/mcast.c +++ b/net/ipv6/mcast.c @@ -2061,7 +2061,8 @@ void ipv6_mc_dad_complete(struct inet6_d mld_send_initial_cr(idev); idev->mc_dad_count--; if (idev->mc_dad_count) - mld_dad_start_timer(idev, idev->mc_maxdelay); + mld_dad_start_timer(idev, + unsolicited_report_interval(idev)); } } @@ -2073,7 +2074,8 @@ static void mld_dad_timer_expire(unsigne if (idev->mc_dad_count) { idev->mc_dad_count--; if (idev->mc_dad_count) - mld_dad_start_timer(idev, idev->mc_maxdelay); + mld_dad_start_timer(idev, + unsolicited_report_interval(idev)); } in6_dev_put(idev); } @@ -2431,7 +2433,8 @@ static void mld_ifc_timer_expire(unsigne if (idev->mc_ifc_count) { idev->mc_ifc_count--; if (idev->mc_ifc_count) - mld_ifc_start_timer(idev, idev->mc_maxdelay); + mld_ifc_start_timer(idev, + unsolicited_report_interval(idev)); } in6_dev_put(idev); }