[PATCH 2/4] bdi: Fix use-after-free in wb_congested_put()

2017-03-09 Thread Jan Kara
bdi_writeback_congested structures get created for each blkcg and bdi regardless whether bdi is registered or not. When they are created in unregistered bdi and the request queue (and thus bdi) is then destroyed while blkg still holds reference to bdi_writeback_congested structure, this structure

Re: [PATCH 2/4] bdi: Fix use-after-free in wb_congested_put()

2017-03-08 Thread Tejun Heo
On Wed, Mar 08, 2017 at 05:48:32PM +0100, Jan Kara wrote: > bdi_writeback_congested structures get created for each blkcg and bdi > regardless whether bdi is registered or not. When they are created in > unregistered bdi and the request queue (and thus bdi) is then destroyed > while blkg still

[PATCH 2/4] bdi: Fix use-after-free in wb_congested_put()

2017-03-08 Thread Jan Kara
bdi_writeback_congested structures get created for each blkcg and bdi regardless whether bdi is registered or not. When they are created in unregistered bdi and the request queue (and thus bdi) is then destroyed while blkg still holds reference to bdi_writeback_congested structure, this structure