Received: by 2002:a17:90a:9103:0:0:0:0 with SMTP id k3csp11794792pjo; Thu, 2 Jan 2020 14:24:19 -0800 (PST) X-Google-Smtp-Source: APXvYqzAZ4XrBXBYghH+CgpxZbNZWGnkeSBOABh1DdQAJ+Wnti881NHfm7EVgwPUlk9V2i7AWyTL X-Received: by 2002:a9d:65cf:: with SMTP id z15mr97629006oth.238.1578003859194; Thu, 02 Jan 2020 14:24:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578003859; cv=none; d=google.com; s=arc-20160816; b=wY3g2///yKTzuPCAKQSITgFx/Bm4WUOCPbJHGwfJ/rJZ+hApWsHmxleOYNlFMk8Uby xEvRJMMksqQ8tVp/90DQqosUlf0fIEcXivYKcCgoLi8VBIREPlWj2z5kUElFUllJPn/i FbGiSaEP4Su7oQXcWBotrGWrqciKBzlOn5lEOkDJgnVGyIbwn+WB7Rif7XYBAzc0v5eD npkX7Ndswmz6WM8dwYWvhdqqLvOXg9iUS5n6iyLVneTPuhQkt1MbdwqI5w384Xk7612R kVf5IeQ3RCknqAgkYGYKbXhK/QI/6cD1LnOkyBVoWWig0zdnyglItOgCaMD1+uY3VUv1 NdzA== 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=wkygSvwHvcLmBsNbUAcE60+9xELm7NxMKHqQq2HjZP8=; b=nrUaoqZJDXgKhgp/zDhgtye0SmLTyD07mV9y06KeXdoOvTZQi/jN2LKXNID9tWwmV4 e42zx1SFo4osVJ/XkJTiNxcTAW38clB20dcMFjHN4lm5T4tuOubqrgY9K8nmfYcEbBoR oP8TKkJ7b+wyebPeLWfg7wlP9F49MS5vsWU7pxoGuMIJbQorV4asEMzFv+Cxt6cMlI+H GY89ejHgPufCQ4NhfCL/asQm1qnnCshG+VdXUYolgdYtVnbuBcvBKUnM0ulrOsZAL5MS Ld79p+kEAvslI/eFgDDr0445cHciZTjPDbQt3i1m7RUk29k5KwHigO2NLR0SBp7hINDa 4dNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=xJuH2NOW; 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 l14si26976895oii.37.2020.01.02.14.24.06; Thu, 02 Jan 2020 14:24:19 -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=xJuH2NOW; 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 S1729000AbgABWWc (ORCPT + 99 others); Thu, 2 Jan 2020 17:22:32 -0500 Received: from mail.kernel.org ([198.145.29.99]:43112 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728798AbgABWWa (ORCPT ); Thu, 2 Jan 2020 17:22:30 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.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 56D3F227BF; Thu, 2 Jan 2020 22:22:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1578003749; bh=OgM9MrVpmk2MQlLVEKOHu21cL5Jv8U4SBPAvaoSO6Fc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=xJuH2NOWH7CnASC7Ou0xzBgu8ao2ihg2E4O1HwJSnPkCpr5Hd9VJ52kDZo7CpO661 I6pnJGS6TgjyddlMOGBXVDdwxVo3bmM8MNpkR7zNF+5jGr5pusQcESkVDhm4jfLdIa p6gGEE82ItPeDx/217R4Oj/yGoh4rXtnRTRhLz9Y= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jianlin Shi , Guillaume Nault , David Ahern , Hangbin Liu , "David S. Miller" Subject: [PATCH 4.19 098/114] ip6_gre: do not confirm neighbor when do pmtu update Date: Thu, 2 Jan 2020 23:07:50 +0100 Message-Id: <20200102220039.090563518@linuxfoundation.org> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200102220029.183913184@linuxfoundation.org> References: <20200102220029.183913184@linuxfoundation.org> User-Agent: quilt/0.66 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 From: Hangbin Liu [ Upstream commit 675d76ad0ad5bf41c9a129772ef0aba8f57ea9a7 ] When we do ipv6 gre pmtu update, we will also do neigh confirm currently. This will cause the neigh cache be refreshed and set to REACHABLE before xmit. But if the remote mac address changed, e.g. device is deleted and recreated, we will not able to notice this and still use the old mac address as the neigh cache is REACHABLE. Fix this by disable neigh confirm when do pmtu update v5: No change. v4: No change. v3: Do not remove dst_confirm_neigh, but add a new bool parameter in dst_ops.update_pmtu to control whether we should do neighbor confirm. Also split the big patch to small ones for each area. v2: Remove dst_confirm_neigh in __ip6_rt_update_pmtu. Reported-by: Jianlin Shi Reviewed-by: Guillaume Nault Acked-by: David Ahern Signed-off-by: Hangbin Liu Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- net/ipv6/ip6_gre.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/net/ipv6/ip6_gre.c +++ b/net/ipv6/ip6_gre.c @@ -1060,7 +1060,7 @@ static netdev_tx_t ip6erspan_tunnel_xmit /* TooBig packet may have updated dst->dev's mtu */ if (!t->parms.collect_md && dst && dst_mtu(dst) > dst->dev->mtu) - dst->ops->update_pmtu(dst, NULL, skb, dst->dev->mtu, true); + dst->ops->update_pmtu(dst, NULL, skb, dst->dev->mtu, false); err = ip6_tnl_xmit(skb, dev, dsfield, &fl6, encap_limit, &mtu, NEXTHDR_GRE);