Re: [PATCH] net/802/mrp: disconnect on uninit
From: David Miller
Date: Mon Jan 27 2020 - 04:47:35 EST
From: Dan Carpenter <dan.carpenter@xxxxxxxxxx>
Date: Wed, 22 Jan 2020 10:26:04 +0300
> [ I was investigating this bug and I sort of got carried away and wrote
> a patch. I'm going to see if I can find a test system to start
> testing these patches then I will resend the patch. - dan ]
>
> Syzbot discovered that mrp_attr attr structs are being leaked. They're
> supposed to be freed by mrp_attr_destroy() which is called from
> mrp_attr_event().
>
> I think that when we close everything down, we're supposed to send one
> last disconnect event but the code for that wasn't fully implemented.
>
> Reported-by: syzbot+5cfab121b54dff775399@xxxxxxxxxxxxxxxxxxxxxxxxx
> Signed-off-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx>
> ---
> Not tested. Idea only.
Yes, please resend this when it is tested, somehow, by someone :-)