Received: by 10.223.176.5 with SMTP id f5csp2474294wra; Thu, 8 Feb 2018 14:57:57 -0800 (PST) X-Google-Smtp-Source: AH8x227e9KWyuf7SZ9Ck4TGt+Bcz7L5JNYLjg++1IINIjWzZ4H5daB+8gSZynPTL3Vn8PFVsVjiR X-Received: by 10.99.121.76 with SMTP id u73mr614986pgc.154.1518130677250; Thu, 08 Feb 2018 14:57:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518130677; cv=none; d=google.com; s=arc-20160816; b=DTN30FRzvnefR/B5c7W7Q0nFAmumAG3ezbcQ0OJAxWM0Yog1Q3NCnMTfaGbhALOe/s R1CSgjTW1hqtj38DsyeMqM1X7bW3k6eGCYXIzj+kmWKm3XZmWLXAFdhFWTsGNUsZoReS lIGyfd2TjBbT7QsTfUsYTG2bBahPQhgwQ3JdB0jM90NtEvYUvv4YfA6m7MW3WakDDsoH hvxDVeC6TvO1yr50WXVk+bztywuHmlCLFHYxAlPFZiPAw7b5yJDzqSRBW13o4JdK+Zps Yjb4U0SklrHg4emgZZXD1/phB1paScI4PUrT9ylKdNgKpuGyUn1xwg9mHUPHYDGoeVO2 iAnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:arc-authentication-results; bh=E6Wu4rFc8qFsP5uhQmS5wyoZBV77AvZyTC+tbsVNLIU=; b=MMn4YjLoJtpDaHt/DgXadtCKmLYX00WvaUjQb69d65ucoczNDkFbqTtpXQhsAmdxWv wLvkzE0hJjx9KLjF4OalOO6qkoWv1l9asfjKMFm8+hPAy4to/xfXJeqorCW16DPXTzPH dwL81UxokeyM7+CuXCQFxOOFl4BUuawk0vYjTh1Y6wjmQ2Egl1fldCxzDe3e0UanAMMY eVJMiFqRWvWz931AAli+OcqIqEVI2ii5tNjb3s9f/csVh0wegmcXyEK3Wu7HuBT32zTa TjVVDlrXG3ZHiyHGILAZXQt5sbLtzk6SricZR9ADQsl9kiYUfxEgg6p2WfR1mHUJ6msY mTYQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f4si533820pgp.421.2018.02.08.14.57.41; Thu, 08 Feb 2018 14:57:57 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752240AbeBHWzr (ORCPT + 99 others); Thu, 8 Feb 2018 17:55:47 -0500 Received: from youngberry.canonical.com ([91.189.89.112]:51301 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751756AbeBHWzp (ORCPT ); Thu, 8 Feb 2018 17:55:45 -0500 Received: from mail-wr0-f200.google.com ([209.85.128.200]) by youngberry.canonical.com with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.76) (envelope-from ) id 1ejv6W-0001Wy-PA for linux-kernel@vger.kernel.org; Thu, 08 Feb 2018 22:55:44 +0000 Received: by mail-wr0-f200.google.com with SMTP id 17so3423831wrm.10 for ; Thu, 08 Feb 2018 14:55:44 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=E6Wu4rFc8qFsP5uhQmS5wyoZBV77AvZyTC+tbsVNLIU=; b=VxStwz9szkKZ1BDEKPOhYlph7i2FNhzWcagHoMJYU2dkyC7fNevE+QHIP0dwX/W7Cm aMOqUTSQ6JhzEwK8a1ADbq2wWhF8gvyqmrtFT1GYv7IokKURzSYlRn2knngLmMLTbMGx X5Lnr4N5po6dnPAMEv1IjJXaRjI21BQO0unM1MRDaC3dRc+bWO3EGrBRj6wwKFC+L4mp P2MSNdlehpJO/6dV9RHmk6w9T/3Z4EOzmbRROjkrbvCkCUHCjRNEZNK9PaBpEQaxP0ZD tQTkX/3cg1Xf81Kf/+cUO/oqanIgG80pg87+FyGHF7wewqLfJMXQ5TOkUpIKeUJ3etYl YozA== X-Gm-Message-State: APf1xPCqAskX/tTn3987g9Ky+nyBSxn0ZxjXt8lKbpybB6/zcODtkBxo eDSbSck3Ggh32b2bNa/4lyMnFp2zXtux/jnqGzmjOh7hiEIBZc4VWJrvWSVFcYMSuHURr5I0EDF dwMJace+bOrjGUdiJdbD+Jw9RmeOybO8Y/Dp+jvMxcsK2ZZJyKFr8lojtRA== X-Received: by 10.223.175.85 with SMTP id z79mr660426wrc.9.1518130544368; Thu, 08 Feb 2018 14:55:44 -0800 (PST) X-Received: by 10.223.175.85 with SMTP id z79mr660413wrc.9.1518130544175; Thu, 08 Feb 2018 14:55:44 -0800 (PST) MIME-Version: 1.0 Received: by 10.28.197.204 with HTTP; Thu, 8 Feb 2018 14:55:43 -0800 (PST) In-Reply-To: <20180208.143356.2044831753683027153.davem@davemloft.net> References: <20180207125320.9103-1-christian.brauner@ubuntu.com> <20180207125320.9103-2-christian.brauner@ubuntu.com> <20180208.143356.2044831753683027153.davem@davemloft.net> From: Christian Brauner Date: Thu, 8 Feb 2018 23:55:43 +0100 Message-ID: Subject: Re: [PATCH net 1/1 v4] rtnetlink: require unique netns identifier To: David Miller Cc: Christian Brauner , Netdev , Kirill Tkhai , Stephen Hemminger , w.bumiller@proxmox.com, "Eric W. Biederman" , Jiri Benc , Nicolas Dichtel , Linux Kernel Mailing List , David Ahern 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 On Thu, Feb 8, 2018 at 8:33 PM, David Miller wrote: > From: Christian Brauner > Date: Wed, 7 Feb 2018 13:53:20 +0100 > >> Since we've added support for IFLA_IF_NETNSID for RTM_{DEL,GET,SET,NEW}LINK >> it is possible for userspace to send us requests with three different >> properties to identify a target network namespace. This affects at least >> RTM_{NEW,SET}LINK. Each of them could potentially refer to a different >> network namespace which is confusing. For legacy reasons the kernel will >> pick the IFLA_NET_NS_PID property first and then look for the >> IFLA_NET_NS_FD property but there is no reason to extend this type of >> behavior to network namespace ids. The regression potential is quite >> minimal since the rtnetlink requests in question either won't allow >> IFLA_IF_NETNSID requests before 4.16 is out (RTM_{NEW,SET}LINK) or don't >> support IFLA_NET_NS_{PID,FD} (RTM_{DEL,GET}LINK) in the first place. >> >> Signed-off-by: Christian Brauner > > Applied, thanks Christian. Thanks for applying, David.