[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAPSr9jHCVCHNK+AmKkUBgs4dPC0UC5KdYKqMinkauyL3OL6qrQ@mail.gmail.com>
Date: Sun, 28 Apr 2019 22:49:42 +0800
From: Muchun Song <smuchun@...il.com>
To: gregkh@...uxfoundation.org, rafael@...nel.org
Cc: Benjamin Herrenschmidt <benh@...nel.crashing.org>,
linux-kernel <linux-kernel@...r.kernel.org>,
zhaowuyun@...gtech.com
Subject: Re: [PATCH] driver core: Fix use-after-free and double free on glue directory
Hi Greg and Rafael:
Benjamin Herrenschmidt <benh@...nel.crashing.org> 于2019年4月28日周日 下午6:10写道:
>
> The basic idea yes, the whole bool *locked is horrid though. Wouldn't it
> work to have a get_device_parent_locked that always returns with the mutex held,
> or just move the mutex to the caller or something simpler like this ?
>
Greg and Rafael, do you have any suggestions for this? Or you also
agree with Ben?
Yours,
Muchun
Powered by blists - more mailing lists