Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2180290yba; Sat, 27 Apr 2019 16:54:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqxEcbrUljsyk56l3n+WBuuSxCTQvClypvpGvaBETeByzwTprx78mwgXDXHnrShvSJKUbi3C X-Received: by 2002:a17:902:a7:: with SMTP id a36mr53930567pla.111.1556409270657; Sat, 27 Apr 2019 16:54:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556409270; cv=none; d=google.com; s=arc-20160816; b=mC242l+6TJ4aVn8ZeOxqHqzdvbcoExDb/nL+RZIqAYd1TOi8RJFionRR8L368LGZsU GJIIhNrx1KrDgp9iuRfzW8u3bkEet2cr47pvvy2qMKptiY6a3ciTHsnKYgscnnXR/DPI +seolQL0zOB72+OAdOcxhXnlbESFFmVP93dkE6tRskkS2RBJ5qWcrLdJ+7kgs9C0Zxgu Z/bxOr9ZDyRc2CcsZT56CHQz9MRBLlScEw1NlXe9yAC+tewK5Gn1vcRvy8Jwo1TTFDnz cjJfgy+4dlmzVq2ovqj5EHOnSKRbBwf+ydqWQ4DrExIKcdcIzZ9nAVBTwVAz2NhwiGgW t8ng== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=kc5ZOqDYTaWLHCWQm/ywH7ZTUELxqFoRaRpFMKkK8po=; b=qnjxB8m2gdgCIcFB1ONW3trOBFOGD7TpKKicmI1ncUqeYAZBwVfZUA9WjSmZApI3/s siRrJcFKlnE094oQD7KznHQLYQR1A3nziul0QxNCAOBRFOlKYzaAfLGGoATAf/Nuu8KD YpEcrM7Oenb2g+zuLbhGKN4ZeqU45DAxNfL2qzZXdCIK07Xfd1xBATwovRjzImPwuOmY p80thJtrr8EuJbIm50smxQKLlj6C/2GOdw9dJCOtArTs1R5KFDsjF6CgKtc2Uu+oAH+5 GbHdfEYUH/ev9h3IWTqeA5wIsFizt5SOAnD+TWKlB2pcqSdKlfrySquEluK9iL4FRl4v UuJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ghyKR+jn; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d3si29988650pfc.278.2019.04.27.16.54.03; Sat, 27 Apr 2019 16:54:30 -0700 (PDT) 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=@gmail.com header.s=20161025 header.b=ghyKR+jn; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726280AbfD0Xwf (ORCPT + 99 others); Sat, 27 Apr 2019 19:52:35 -0400 Received: from mail-pl1-f194.google.com ([209.85.214.194]:36844 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726125AbfD0Xwe (ORCPT ); Sat, 27 Apr 2019 19:52:34 -0400 Received: by mail-pl1-f194.google.com with SMTP id w20so2657148plq.3; Sat, 27 Apr 2019 16:52:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=kc5ZOqDYTaWLHCWQm/ywH7ZTUELxqFoRaRpFMKkK8po=; b=ghyKR+jnS7+IWnBGrAW2c/z/NF8WGJ/VgD+oHIKPH7SW6PO1vbc2B+rKFYol+7AIEL 0DMZQPuVjbJX72O9AIIHhRLYhtC2sb8GX52RgM0KDE43+MzMn5wN+Z0TjUBt/es48E/L 2cVVR4KNtlgoz75kE9ZCSJIOvNahCC6yqSpZPqMXZyoCA6UPc2UajfLClp+QhQGtWGRa PFsLSORaNmjKZoa1TgrtM4qV7W3sr/xAW/SkA0+IMs9RBR0ljFTX5owU4Q4KjOjHNJYz ZDqjp/OexXCCANqLtPfoOu3SB7m5mFHMlH4dOJg4UAEFmZwVtXRYw+7IQGMFLbAYzlY5 XgzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=kc5ZOqDYTaWLHCWQm/ywH7ZTUELxqFoRaRpFMKkK8po=; b=NybA0mcyclksOFeGJGLtpp83CXllO9zTFPK06KH1ew1xlHXcA0v0babNb9tDJjCyxC PZTimiiYxXCxzZK7KR3JvpUHkRHB46/c+PVAxsugWrAwH91gnU6ELh4Q1xZwB+41BsL6 cQGpslRG6OeWJ6/wkDCJpn1R44iyfWI2o654D8pkqfxIkh+fg1dNPuU5SAI0KEJw08sT Jcimgx3g+CVnvahOAbNUYT7iq4PYNaTsOWcH4v4dhjC7hQqFrFqae1kalJ5Ctbb94EzD wval7V/ywNQ5yIlTVWhI2O64x2ljV8L8K2hUdMUm53l0yTgXqfNI875JtjxfTVEf3vBJ C20A== X-Gm-Message-State: APjAAAVMbGVe4lrB4f9m9xaMe+QURXdwZFDE/I7A5OhdYugEv3HZkXCs VNaS/wVWBTPjSK4CplB/ROw= X-Received: by 2002:a17:902:7d91:: with SMTP id a17mr53997399plm.338.1556409154295; Sat, 27 Apr 2019 16:52:34 -0700 (PDT) Received: from [192.168.86.235] (c-73-241-150-70.hsd1.ca.comcast.net. [73.241.150.70]) by smtp.gmail.com with ESMTPSA id i15sm43975343pfr.8.2019.04.27.16.52.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 27 Apr 2019 16:52:33 -0700 (PDT) Subject: Re: unregister_netdevice: waiting for DEV to become free (2) To: Tetsuo Handa , David Ahern , "David S. Miller" Cc: Julian Anastasov , Cong Wang , syzbot , ddstreet@ieee.org, dvyukov@google.com, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, syzkaller-bugs@googlegroups.com References: <0000000000007d22100573d66078@google.com> <4684eef5-ea50-2965-86a0-492b8b1e4f52@I-love.SAKURA.ne.jp> <9d430543-33c3-0d9b-dc77-3a179a8e3919@I-love.SAKURA.ne.jp> <920ebaf1-ee87-0dbb-6805-660c1cbce3d0@I-love.SAKURA.ne.jp> <15b353e9-49a2-f08b-dc45-2e9bad3abfe2@i-love.sakura.ne.jp> From: Eric Dumazet Message-ID: <057735f0-4475-7a7b-815f-034b1095fa6c@gmail.com> Date: Sat, 27 Apr 2019 16:52:31 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <15b353e9-49a2-f08b-dc45-2e9bad3abfe2@i-love.sakura.ne.jp> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/27/19 3:33 PM, Tetsuo Handa wrote: > > I'm waiting for davem why it is safe to move the dst entry from > "a device to unregister" to "a loopback device in that namespace". > I'm waiting for an explanation how the dst entry which was moved to > "a loopback device in that namespace" is released (i.e. what the > expected shutdown sequence is). The most probable explanation is that we make sure the loopback device is the last one to be dismantled at netns deletion, and this would obviously happen after all dst have been released.