Re: [PATCH] Btrfs: fix use-after-free during inode eviction

2018-10-19 Thread David Sterba
On Fri, Oct 12, 2018 at 01:02:48PM +0100, fdman...@kernel.org wrote: > From: Filipe Manana > > At inode.c:evict_inode_truncate_pages(), when we iterate over the inode's > extent states, we access an extent state record's "state" field after we > unlocked the inode's io tree lock. This can lead to

Re: [PATCH] Btrfs: fix use-after-free during inode eviction

2018-10-12 Thread Qu Wenruo
On 2018/10/12 下午8:02, fdman...@kernel.org wrote: > From: Filipe Manana > > At inode.c:evict_inode_truncate_pages(), when we iterate over the inode's > extent states, we access an extent state record's "state" field after we > unlocked the inode's io tree lock. This can lead to a use-after-free

[PATCH] Btrfs: fix use-after-free during inode eviction

2018-10-12 Thread fdmanana
From: Filipe Manana At inode.c:evict_inode_truncate_pages(), when we iterate over the inode's extent states, we access an extent state record's "state" field after we unlocked the inode's io tree lock. This can lead to a use-after-free issue because after we unlock the io tree that extent state r