From: Ido Schimmel <idosch@nvidia.com>
To: Yu Junzhe <junzheyu1@gmail.com>
Cc: David Ahern <dsahern@kernel.org>,
netdev@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [BUG] ipv4: unregister_netdevice hang after flushing a DVMRP tunnel vif
Date: Tue, 1 Dec 2026 17:53:22 +0200 [thread overview]
Message-ID: <20261201155322.GA2192305@shredder> (raw)
In-Reply-To: <20261201115248.289-1-junzheyu1@gmail.com>
On Tue, Dec 01, 2026 at 11:52:48AM +0000, Yu Junzhe wrote:
> Hello,
>
> I am reporting a netdevice refcount hang in IPv4 multicast routing.
> MRT_ADD_VIF with VIFF_TUNNEL creates a dvmrp<vifi> IPIP device. MRT_FLUSH
> with MRT_FLUSH_VIFS_STATIC removes that vif and unregisters the device, and
> the unregister wait never finishes. The kernel prints:
>
> unregister_netdevice: waiting for dvmrp3 to become free. Usage count = 2
More useful when you enable CONFIG_NET_DEV_REFCNT_TRACKER:
unregister_netdevice: waiting for dvmrp3 to become free. Usage count = 2
ref_tracker: netdev@00000000ee16fe93 has 1/1 users at
netdev_get_by_index+0xb3/0xd0
fib6_nh_init+0x206/0xa00
ip6_route_info_create_nh+0x10d/0x2f0
ip6_route_add+0x5a/0x100
addrconf_prefix_route+0xf6/0x140
addrconf_add_linklocal+0xa6/0x150
addrconf_addr_gen+0x14f/0x160
addrconf_notify+0x460/0xa00
...
dev_open+0x36/0x90
ipmr_new_tunnel+0x140/0x200
[...]
> On Linux 7.3.0-rc4 (93f51579e, tag v7.3-rc4), net/ipv4/ipmr.c:
Please always test on the latest kernel. Bugs are being fixed all the
time. This one is probably fixed by commit a0fe1a3f390a ("ipv6: Flush
rt->from in rt6_uncached_list_flush_dev().") in 7.4-rc2.
next prev parent reply other threads:[~2026-12-01 15:53 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-01 11:52 [BUG] ipv4: unregister_netdevice hang after flushing a DVMRP tunnel vif Yu Junzhe
2026-12-01 15:53 ` Ido Schimmel [this message]
-- strict thread matches above, loose matches on Subject: below --
2026-12-02 7:05 Yu Junzhe
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261201155322.GA2192305@shredder \
--to=idosch@nvidia.com \
--cc=dsahern@kernel.org \
--cc=junzheyu1@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.