diff options
author | Atin Mukherjee <amukherj@redhat.com> | 2014-02-03 17:49:51 +0530 |
---|---|---|
committer | Vijay Bellur <vbellur@redhat.com> | 2014-02-05 21:44:26 -0800 |
commit | d0574d040b3d7f54ddafa0b768ddfc1e7f247536 (patch) | |
tree | 9b29b33d10e1e31150b362afbcc5d76d91470d4e /rpc | |
parent | b187d3b5231406b524bf73b45f76e001692e282e (diff) |
Problem : getfattr fails and mount point becomes inaccessible while
fetching glusterfs.ancestry.path key value for a gfid from aux-gfid-mount
based mount point.
Analysis : The caller of posix_make_ancestryfromgfid() function i.e.
posix_get_ancestry_non_directory() is sending an incorrect type value as
an argument leading to a crash in posix_make_ancestral_node() (head
dirent pointer is NULL and an attempt to dereference causes seg fault).
For a non directory operation this piece of code should not have been
executed but due to incorrect type value this happened.
Solution : In posix_make_ancestryfromgfid() call type is passed as
logical or of type and POSIX_ANCESTRY_PATH instead of logical or of
POSIX_ANCESTRY_PATH and POSX_ANCESTRY_DENTRY.
Change-Id: Iaf844bea91396c5e2ee295d5a082998fda66f0a9
BUG: 1060104
Signed-off-by: Atin Mukherjee <amukherj@redhat.com>
Reviewed-on: http://review.gluster.org/6892
Reviewed-by: Raghavendra G <rgowdapp@redhat.com>
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'rpc')
0 files changed, 0 insertions, 0 deletions