Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752336AbdHJIme (ORCPT ); Thu, 10 Aug 2017 04:42:34 -0400 Received: from mx1.redhat.com ([209.132.183.28]:9777 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751771AbdHJIl1 (ORCPT ); Thu, 10 Aug 2017 04:41:27 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com C50671301CC Authentication-Results: ext-mx10.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx10.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=vkuznets@redhat.com From: Vitaly Kuznetsov To: Andrew Lunn Cc: ???????????? , network dev , Linux Kernel Mailing List , "David S. Miller" , Eric Dumazet , Stephen Hemminger Subject: Re: [PATCH RFC net-next] net: Allow name change of IFF_UP interfaces References: <20170809104202.30959-1-vkuznets@redhat.com> <87efskye74.fsf@vitty.brq.redhat.com> <20170809161027.GA28694@lunn.ch> Date: Thu, 10 Aug 2017 10:41:23 +0200 In-Reply-To: <20170809161027.GA28694@lunn.ch> (Andrew Lunn's message of "Wed, 9 Aug 2017 18:10:27 +0200") Message-ID: <871sojyfv0.fsf@vitty.brq.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Thu, 10 Aug 2017 08:41:27 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1334 Lines: 35 Andrew Lunn writes: >> I understand the 'legacy' concern but at the same time we don't want to >> have aftificial limitations too. Name change, in particular, doesn't >> happen 'under the hood' -- someone privileged enough needs to request >> the change. >> >> Can you think of any particular real world scenarios which are broken by >> the change? > > How about: > > man 8 dhclient-script > > The interface name is passed in $interface to the scripts. Do we get > the old name or the new name? I suspect scripts are going to break if > they are given the old name, which no longer exists. Yes but why would anyone change interface name while dhclient-script is running? Things will also go wrong if you try bringing interface down during the run or do some other configuration, right? Running multiple configuration tools at the same moment is a bad idea, you never know what you're gonna end up with. As I see it, checks in kernel we have are meant to protect kernel itself, not to disallow all user<->kernel interactions leading to imperfect result. (AFAIU) If we remove the check nothing is going to change: udev will still be renaming interfaces before bringing them up. In netvsc case users are not supposed to configure the VF interface at all, it just becomes a slave of netvsc interface. -- Vitaly