Re: [PATCH] Btrfs: fix use-after-free due to wrong order of destroying work queues

2017-02-08 Thread Liu Bo
On Tue, Feb 07, 2017 at 05:02:53PM +, fdman...@kernel.org wrote: > From: Filipe Manana > > Before we destroy all work queues (and wait for their tasks to complete) > we were destroying the work queues used for metadata I/O operations, which > can result in a use-after-free

[PATCH] Btrfs: fix use-after-free due to wrong order of destroying work queues

2017-02-07 Thread fdmanana
From: Filipe Manana Before we destroy all work queues (and wait for their tasks to complete) we were destroying the work queues used for metadata I/O operations, which can result in a use-after-free problem because most tasks from all work queues do metadata I/O operations.