Re: net/core: BUG in unregister_netdevice_many

From: Cong Wang
Date: Fri Apr 21 2017 - 14:55:37 EST


On Fri, Apr 21, 2017 at 10:25 AM, Linus Torvalds
<torvalds@xxxxxxxxxxxxxxxxxxxx> wrote:
> On Fri, Apr 21, 2017 at 5:48 AM, Andrey Konovalov <andreyknvl@xxxxxxxxxx> wrote:
>>
>> I've got the following error report while fuzzing the kernel with syzkaller.
>>
>> ------------[ cut here ]------------
>> kernel BUG at net/core/dev.c:6813!
>
> Another useless BUG_ON() that

I think we are double-unregister'ing the pim6reg device,
we probably need something like:

commit 7dc00c82cbb0119cf4663f65bbaa2cc55f961db2
Author: Wang Chen <wangchen@xxxxxxxxxxxxxx>
Date: Mon Jul 14 20:56:34 2008 -0700

ipv4: Fix ipmr unregister device oops

An oops happens during device unregister.