Re: [PATCH] Btrfs: fix use-after-free when dumping free space

2018-10-22 Thread David Sterba
On Mon, Oct 22, 2018 at 10:43:06AM +0100, fdman...@kernel.org wrote: > From: Filipe Manana ... > Reported-by: Nikolay Borisov > Signed-off-by: Filipe Manana Added to misc-next, thanks.

Re: [PATCH] Btrfs: fix use-after-free when dumping free space

2018-10-22 Thread Josef Bacik
On Mon, Oct 22, 2018 at 10:43:06AM +0100, fdman...@kernel.org wrote: > From: Filipe Manana > > We were iterating a block group's free space cache rbtree without locking > first the lock that protects it (the free_space_ctl->free_space_offset > rbtree is protected by the free_space_ctl->tree_lock