Re: [PATCH AUTOSEL 4.19 31/68] driver core: Fix use-after-free and double free on glue directory

2019-08-14 Thread Greg Kroah-Hartman
On Tue, Aug 13, 2019 at 10:15:09PM -0400, Sasha Levin wrote: > From: Muchun Song > > [ Upstream commit ac43432cb1f5c2950408534987e57c2071e24d8f ] > > 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: >

[PATCH AUTOSEL 4.19 31/68] driver core: Fix use-after-free and double free on glue directory

2019-08-13 Thread Sasha Levin
From: Muchun Song [ Upstream commit ac43432cb1f5c2950408534987e57c2071e24d8f ] 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()