Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp455070ybl; Tue, 28 Jan 2020 06:14:59 -0800 (PST) X-Google-Smtp-Source: APXvYqwtP4QyOvuXHqrXTaQOBKVW0k2GTm0KarzN3fH8e/eIqCjfqj7lgqkLInFOLbTZB/uAVt58 X-Received: by 2002:a9d:2028:: with SMTP id n37mr17120951ota.127.1580220899328; Tue, 28 Jan 2020 06:14:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580220899; cv=none; d=google.com; s=arc-20160816; b=Cdnrkpy+gyyj1rIjoQTwOBuGCL6uV3SzIIuA7QF9f0M/6WqrahYVjh8k6Cn2ZMQR0L UcNtDWS44DDOurc2Eeix2iQCVrtSV+LWJlZWR4YU5wsHak2jYeQxmS1Df0PkfbilVeko CXNALzV98pGxuY08dm3XGuIMLrX4dpmZh5IBgU9GN6WuQjktxHndWfxhSUCd2wX7Pt3/ YaYpjkryze2Oj3OBkv/T2kHj47Q73ZJnX58a+Ua138C8fVir4LL8QL5G+SbQUzZv1AP8 3ROg78ed5Hrd9VkB9sf+Odr/To5a4O9fzu2opD240q/yj3LZ/145OJHZNVv50QOEODjz tOJQ== 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=9g0aqeA0GLPWPRKy1vJWG4MVfNCmTb7cj5uHhIJwUdc=; b=A23ejHpVgbUZZ3ABT2OZoz5vpPsQBLFPDQscpRX2458CIaJWSOkIoCi8xBU64wrnMU ACafDtboV1nYiwx30MivUemjS/4EPWEzGDCwdjYZCV7q5oxtmChdyIjM6OiBxd2kS/OR z/uMivRaj/2G8mxvTm7sJORXibKVuqh8dbNTGzb08Xc4yYPt5gB0kp030JyrOajIH1o8 5zkonk0/FHNrHCjirjPLR4smXKNJUzvVLjEquOA9oCbwcsp1ce5y8cpMwHK9q+GVfAHe L+K2RXAEUhzg5CpSTav/WfbzMJ0UUczUguOhasMcQu0RyH8kRzKnG/aOUwNLkD/o4HnL JHPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=hiG01dcc; 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 t184si5393589oig.184.2020.01.28.06.14.47; Tue, 28 Jan 2020 06:14:59 -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=hiG01dcc; 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 S1729475AbgA1ON5 (ORCPT + 99 others); Tue, 28 Jan 2020 09:13:57 -0500 Received: from mail.kernel.org ([198.145.29.99]:35526 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728705AbgA1ONq (ORCPT ); Tue, 28 Jan 2020 09:13:46 -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 8332E24681; Tue, 28 Jan 2020 14:13:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1580220826; bh=bI+YX3F4RpGHqTM/qhSCvQe0qssAc/6yfpKq0uNSWqk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hiG01dcct5bvS9xDxjffVt2h6kin3UZbxRnggsUTMr2G1vTGJ2NMRjQ47hOBhzdUj /TD97RAdjAr5VoOn4OSI+0/qtdDVNY4unUN96d0fBF2h2d1SorSkRjBdvtSVWSq8ik +zWvE1HFjxC6rX+KV+PuYUJ2KhXYCdAUu4H48sKM= 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.4 163/183] net, ip_tunnel: fix namespaces move Date: Tue, 28 Jan 2020 15:06:22 +0100 Message-Id: <20200128135845.981001729@linuxfoundation.org> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200128135829.486060649@linuxfoundation.org> References: <20200128135829.486060649@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 @@ -1151,10 +1151,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);