summaryrefslogtreecommitdiffstats
path: root/xlators/performance/md-cache
diff options
context:
space:
mode:
authorRaghavendra Gowdappa <rgowdapp@redhat.com>2019-02-13 17:08:14 +0530
committerRaghavendra G <rgowdapp@redhat.com>2019-02-19 05:52:52 +0000
commit64cc4458918e8c8bfdeb114da0a6501b2b98491a (patch)
tree577fb295bb567e399b5aeb057ecdf9ee6fd9d849 /xlators/performance/md-cache
parenteacc48b96b818ab2d15ed9d3a9a21818feed2826 (diff)
performance/write-behind: fix use-after-free in readdirp
Two issues were found: 1. in wb_readdirp_cbk, inode should unrefed after wb_inode is unlocked. Otherwise, inode and hence the context wb_inode can be freed by the type we try to unlock wb_inode 2. wb_readdirp_mark_end iterates over a list of wb_inodes of children of a directory. But inodes could've been freed and hence the list might be corrupted. To fix take a reference on inode before adding it to invalidate_list of parent. Change-Id: I911b0e0b2060f7f41ded0b05db11af6f9b7c09c5 Signed-off-by: Raghavendra Gowdappa <rgowdapp@redhat.com> Updates: bz#1674406
Diffstat (limited to 'xlators/performance/md-cache')
0 files changed, 0 insertions, 0 deletions