Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp6203077yba; Wed, 1 May 2019 07:54:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqw/eKktxIf+IoydARTzqRYezzOMjIOTBhVLTmngB4GYrAW0NQs8bMTEWguhmTKhFx+EYMZV X-Received: by 2002:a17:902:8f82:: with SMTP id z2mr25033516plo.51.1556722440866; Wed, 01 May 2019 07:54:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556722440; cv=none; d=google.com; s=arc-20160816; b=Iycy+JjNaqqbMyPhxvgKRBzQqGgHx7ieomYh6RRng5l6oQqZY4cudyzTrg+nvgVJEG Oy4B3lk7Nq8Nd4mhfJZq2S7QugNwwqnwCC3tCrE3CruUhppcskkE/IjlYc7mNIN0yl7P mJ3xZWahlhcSB3M1z3dJp4JLFbF1KdQJigiIjfXNaLRVOrzC0oLMwu7yha28jRwOF7f7 hLL+wRogxn1uRE+nC8i0c4OBA79veat1+WCV1+gB8Tlo09yyDhnE57Iz5CIfeOuOn1RY 3OJC31KbtdcLubZ10Q86aNjRAgKaK5tlnqrokE6HsmZLVOKxbEo2k8zB0kuG0rcn8bkL MFMw== 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=oWROtRdPBWTf7HTlcFeLvHN8moYEACZeaHhy/xJiSv0=; b=zdIAeh+Aj4ysHmkmd0CuX7wpO7ObAgoBihjSh1BXdPUL7vU/uhbR/R72ymHxdIjvrH Tg6qPKcvslNvIJ4m6mQ6v8aWsZD2Y2SCl36tGh71SY8bu2xDOx/ouvjzDnomOxCRxYGs eoL3bjQd+IhTyOO6qdW+JHQfU3XfikbTs5b79hLgGb6C9GJKekVxBim9wrJCz785gcoY YsuyupaRzy/cgsXSqUVuOpOnZaRlTivkvdDqWlkWrH/zVEUwcNqvToQPA/z4pR3P85OS IdKODxLwcUoh38uaGgsUIIMIdDYfvl0jNLVAOwjzcig4RkOHyYkc+yoMQkP1/3L9ln9h cerA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=L1aBWvxy; 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 70si42588724plc.88.2019.05.01.07.53.45; Wed, 01 May 2019 07:54:00 -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=L1aBWvxy; 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 S1726890AbfEAOwp (ORCPT + 99 others); Wed, 1 May 2019 10:52:45 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:33044 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726506AbfEAOwn (ORCPT ); Wed, 1 May 2019 10:52:43 -0400 Received: by mail-pf1-f194.google.com with SMTP id z28so3405102pfk.0; Wed, 01 May 2019 07:52:42 -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=oWROtRdPBWTf7HTlcFeLvHN8moYEACZeaHhy/xJiSv0=; b=L1aBWvxy2K+R3sMxmTz7GhC3sns+1WyTpaeuGZ0wjKCrk9xzgtACf0ijI5RHnG5F7T K4gxPCeVPvHbm/PC6gaehD3NSEyogbDn4a6cAEYc0F4z5hQSJu60LnDdVC1H2v3Zlubt isIxmGloKem4FUOw5j15O2ZPoDDB1FpzqL5+bWsFZwK0pFHXBGS2SJgR51jwdHUdNK8S fqfBnbldFbG7qXj0oElml4Sz7dMWlX4HQ4Cf7vwNsravbptRTh+0DJzAR6NNacj01r1W m+R7kJO2OIIso1c8XYcCgCMxzn+3bCznvYOmkqd61vkIU2mfgPsMyxyI8rwdYfiQf1+Z Y8cQ== 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=oWROtRdPBWTf7HTlcFeLvHN8moYEACZeaHhy/xJiSv0=; b=Zlt74aulX6xvwSeTdLnaTwq7eElWZNzlxxiHhsCb4z4zuPYYO6fD7mWbO4PX+25oBh PXjahoyANZ5x5SszvmyudlyW+8K2i32RKaEOt+gFNttAPhHVYZYQuWa+6AF9Pal+is3H ubTJQLWI63wVu8LUxUUQ9ArGjn8/RvbG9zosSio52NMEmHLryybTWRl4/VE1YLv+zi9W /mRoGjcqkLJ1LFMBnZ+lpzV9yoL278MNdenhXc14KLKg2OoEzFvPmkH7Xwgc7myZQalG UIL4f9m3hOjcIAr44LRb8qNfYEtUX+vraf7qsx3gdQ/WYpYgW0+OgzxfexF6McrordqV YKwg== X-Gm-Message-State: APjAAAVJcpAmPWGo5xrdNr5tJwj1Q08oZ5T2bfpyQ2IUvoXz7A/Sb2j5 agnPnys2tVzIp2aFQSYxulE= X-Received: by 2002:aa7:99c7:: with SMTP id v7mr19874361pfi.103.1556722362514; Wed, 01 May 2019 07:52:42 -0700 (PDT) Received: from ?IPv6:2601:282:800:fd80:950d:299e:8124:b280? ([2601:282:800:fd80:950d:299e:8124:b280]) by smtp.googlemail.com with ESMTPSA id m131sm984427pfc.25.2019.05.01.07.52.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 01 May 2019 07:52:41 -0700 (PDT) Subject: Re: unregister_netdevice: waiting for DEV to become free (2) To: Tetsuo Handa , Eric Dumazet , "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> <057735f0-4475-7a7b-815f-034b1095fa6c@gmail.com> <6e57bc11-1603-0898-dfd4-0f091901b422@i-love.sakura.ne.jp> <117fcc49-d389-c389-918f-86ccaef82e51@i-love.sakura.ne.jp> From: David Ahern Message-ID: <70be7d61-a6fe-e703-978a-d17f544efb44@gmail.com> Date: Wed, 1 May 2019 08:52:37 -0600 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <117fcc49-d389-c389-918f-86ccaef82e51@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 5/1/19 7:38 AM, Tetsuo Handa wrote: > On 2019/04/30 3:43, David Ahern wrote: >>> The attached patch adds a tracepoint to notifier_call_chain. If you have >>> KALLSYMS enabled it will show the order of the function handlers: >>> >>> perf record -e notifier:* -a -g & >>> >>> ip netns del >>> >>> >>> fg >>> >>> >>> perf script >>> >> >> with the header file this time. >> > > What is the intent of your patch? I can see that many notifiers are called. But > how does this help identify which event is responsible for dropping the refcount? > In a previous response you stated: "Since I'm not a netdev person, I appreciate if you can explain that shutdown sequence using a flow chart." The notifier sequence tells you the order of cleanup handlers and what happens when a namespace is destroyed. The dev_hold / dev_put tracepoint helps find the refcnt leak but requires some time analyzing the output to match up hold / put stack traces.