Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp479168ybl; Tue, 28 Jan 2020 06:35:57 -0800 (PST) X-Google-Smtp-Source: APXvYqzQ8j58TGiwUzxjblgK4urS8fI4y4yLhZlySLrBJ/4h6exNzuUw1NCyExOlFLmHzS49XTSy X-Received: by 2002:a9d:6513:: with SMTP id i19mr17024281otl.103.1580222156741; Tue, 28 Jan 2020 06:35:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580222156; cv=none; d=google.com; s=arc-20160816; b=nilolRfJLw6ej0qcx2eeZuClfAu/KlJxzavUVB+n0fIJQ70rt/OztTfKyBiMkQ306a dpKmRWh1P9INl8ocgxCfVM5xf+NETbrFF/PC3Lbc6t55tA3156UtbwC12c75WsdWNIhv ZffonHG7vRXGlKCyllZEwoexwpVlslttpmcJX2ANNYnpSYFgjMvBpt9NTGfbl/YPJq7k u9LaAsxO+JZxlaRdbolTEPwN0Yst84b9WKAXfO8gowDn6mZKkHP25LTJ+5Kw7YyXyRzk EjVrjW4+aP2miwOQzKPXrPXyB62h1gZFgV/KP1KxxYNf5VwARsf06R9Tf6BFvUymfKcp hLXw== 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=ZJWJGAqQZCPi0qrlqRY9PTB9gBKrQzBBQ71iHBiMAwY=; b=a/NANd2AsOZ79EUwas744IdeFhcWtr4t8rFwi+DDt7+ffXW+5Hp3NtwTe46wIYUzC9 a+eBO4q7t/zdT+l/oVNZuY7ujZ5MQS4Mo3nnYh8DKmgMtW5VrIyJR0jBlHPQVTk4Dc3l LTTRLeXOaM7gegMdFRryXiBjaBjVZz+zTuhTJuYvx8HPSW0mlrbM7KtOSCUKJT7j62+l jr1H+gIF+tYl8WPBEXif0eHNvKLpZYJuet7MOkev3o2gW9yrs4DFFlySroC1eItqkDVn LGPZu09TuqX0QlfPZnUK7IZ6UfyzT8y+OuJhTOXbPwNerz4GCaiErf49/x+LGf1IRyyI lNLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=hBesTrBV; 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 s6si3777787otq.115.2020.01.28.06.35.44; Tue, 28 Jan 2020 06:35:56 -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=hBesTrBV; 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 S1730811AbgA1OeK (ORCPT + 99 others); Tue, 28 Jan 2020 09:34:10 -0500 Received: from mail.kernel.org ([198.145.29.99]:51238 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730770AbgA1OYa (ORCPT ); Tue, 28 Jan 2020 09:24: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 BA5EA2071E; Tue, 28 Jan 2020 14:24:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1580221470; bh=cVPb9uNZQ2z9mi5VKTB6bUSUPdMKJ5FBKUzdMMvQVeY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hBesTrBVICrYJsIj5WXCPx2fMcCnnoZaMn8xfVMEgPkGaRs31Ahmez3gHL8Gh0scy Mly1GSm1Wysws/m2Dzpfx8wo/OXqK23LfEvS2J9uyBqK03DHkHqbwq91WlH++fA/xJ QyXurX0eDio/mpDZQctjkt8c+JJw/WltI16C4gDs= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, William Dauchy , Nicolas Dichtel , "David S. Miller" Subject: [PATCH 4.9 238/271] net, ip_tunnel: fix namespaces move Date: Tue, 28 Jan 2020 15:06:27 +0100 Message-Id: <20200128135910.263079055@linuxfoundation.org> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200128135852.449088278@linuxfoundation.org> References: <20200128135852.449088278@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: William Dauchy [ Upstream commit d0f418516022c32ecceaf4275423e5bd3f8743a9 ] in the same manner as commit 690afc165bb3 ("net: ip6_gre: fix moving ip6gre between namespaces"), fix namespace moving as it was broken since commit 2e15ea390e6f ("ip_gre: Add support to collect tunnel metadata."). Indeed, the ip6_gre commit removed the local flag for collect_md condition, so there is no reason to keep it for ip_gre/ip_tunnel. this patch will fix both ip_tunnel and ip_gre modules. Fixes: 2e15ea390e6f ("ip_gre: Add support to collect tunnel metadata.") Signed-off-by: William Dauchy Acked-by: Nicolas Dichtel Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- net/ipv4/ip_tunnel.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) --- a/net/ipv4/ip_tunnel.c +++ b/net/ipv4/ip_tunnel.c @@ -1184,10 +1184,8 @@ int ip_tunnel_init(struct net_device *de iph->version = 4; iph->ihl = 5; - if (tunnel->collect_md) { - dev->features |= NETIF_F_NETNS_LOCAL; + if (tunnel->collect_md) netif_keep_dst(dev); - } return 0; } EXPORT_SYMBOL_GPL(ip_tunnel_init);