diff options
author | Pranith Kumar K <pkarampu@redhat.com> | 2018-03-19 12:09:18 +0530 |
---|---|---|
committer | Pranith Kumar Karampuri <pkarampu@redhat.com> | 2018-03-20 08:57:37 +0000 |
commit | 2a326ad32ecb3f90379ef8f3c14c8d14dc64a3b7 (patch) | |
tree | e6a778f25fa27b0a7be5bc1ea4b6b3c843d5ce78 /xlators/storage/posix | |
parent | ccd7825334f294918f895768fbebf825084f2e5d (diff) |
features/shard: Do list_del_init() while list memory is valid
Problem:
shard_post_lookup_fsync_handler() goes over the list of inode-ctx that need to
be fsynced and in cbk it removes each of the inode-ctx from the list. When the
first member of list is removed it tries to modifies list head's memory with
the latest next/prev and when this happens, there is no guarantee that the
list-head which is from stack memory of shard_post_lookup_fsync_handler() is
valid.
Fix:
Do list_del_init() in the loop before winding fsync.
BUG: 1557876
Change-Id: If429d3634219e1a435bd0da0ed985c646c59c2ca
Signed-off-by: Pranith Kumar K <pkarampu@redhat.com>
Diffstat (limited to 'xlators/storage/posix')
0 files changed, 0 insertions, 0 deletions