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

2019-07-30 Thread Greg KH
On Sat, Jul 27, 2019 at 11:21:22AM +0800, Muchun Song wrote: > There is a race condition between removing glue directory and adding a new > device under the glue dir. It can be reproduced in following test: > > CPU1: CPU2: > > device_add() > get_device_pa

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

2019-07-28 Thread Prateek Sood
On 7/27/19 8:51 AM, Muchun Song wrote: > There is a race condition between removing glue directory and adding a new > device under the glue dir. It can be reproduced in following test: > > CPU1: CPU2: > > device_add() > get_device_parent() > class_dir

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

2019-07-26 Thread Muchun Song
There is a race condition between removing glue directory and adding a new device under the glue dir. It can be reproduced in following test: CPU1: CPU2: device_add() get_device_parent() class_dir_create_and_add() kobject_add_internal()