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

2019-07-24 Thread Mukesh Ojha
On 7/24/2019 7:11 PM, Mukesh Ojha wrote: On 7/18/2019 4:49 PM, Muchun Song wrote: There is a race condition between removing glue directory and adding a new device under the glue directory. It can be reproduced in following test: path 1: Add the child device under glue dir device_add()

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

2019-07-24 Thread Mukesh Ojha
On 7/18/2019 4:49 PM, Muchun Song wrote: There is a race condition between removing glue directory and adding a new device under the glue directory. It can be reproduced in following test: path 1: Add the child device under glue dir device_add() get_device_parent() mutex_lock(&gd

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

2019-07-18 Thread Muchun Song
There is a race condition between removing glue directory and adding a new device under the glue directory. It can be reproduced in following test: path 1: Add the child device under glue dir device_add() get_device_parent() mutex_lock(&gdp_mutex); /*find parent fr