Subject: Re: unregister_netdevice: waiting for DEV to become free (2)

From: Toke Høiland-Jørgensen <[email-masked]>
Date: Wed, 16 Oct 2019 12:34:45 +0200

Alexei Starovoitov <[email-masked]> writes:

> On Fri, Oct 11, 2019 at 3:15 AM Tetsuo Handa
> <[email-masked]> wrote:
>>
>> Hello.
>>
>> I noticed that syzbot is reporting that refcount incremented by bpf(BPF_MAP_UPDATE_ELEM)
>> syscall is not decremented when unregister_netdevice() is called. Is this a BPF bug?
>
> Jesper, Toke,
> please take a look.

Yeah, that unregister notification handler definitely looks broken for
hashmaps; I'll send a patch :)

-Toke