Re: [PATCH v4] driver core: Fix use-after-free and double free on glue directory

From: Muchun Song
Date: Tue Jun 18 2019 - 12:14:55 EST


Greg KH <gregkh@xxxxxxxxxxxxxxxxxxx> ä2019å6æ18æåä äå11:29åéï
>
> On Tue, Jun 18, 2019 at 09:40:13PM +0800, Muchun Song wrote:
> > Ping guys ? I think this is worth fixing.
>
> That's great (no context here), but I need people to actually agree on
> what the correct fix should be. I had two different patches that were
> saying they fixed the same issue, and that feels really wrong.

Another patch:
Subject: [PATCH v3] drivers: core: Remove glue dirs early only
when refcount is 1

My first v1 patch:
Subject: [PATCH] driver core: Fix use-after-free and double free
on glue directory

The above two patches are almost the same that fix is based on the refcount.
But why we change the solution from v1 to v4? Some discussion can
refer to the mail:

Subject: [PATCH] driver core: Fix use-after-free and double free
on glue directory

Thanks.

Yours,
Muchun