[Bugs] [Bug 1159221] io-stats may crash the brick when loc->path is NULL in some fops

bugzilla at redhat.com bugzilla at redhat.com
Thu Nov 6 05:30:34 UTC 2014


https://bugzilla.redhat.com/show_bug.cgi?id=1159221



--- Comment #2 from Anand Avati <aavati at redhat.com> ---
COMMIT: http://review.gluster.org/9029 committed in master by Vijay Bellur
(vbellur at redhat.com) 
------
commit 08109ed5a7e09ec14ecb3640cfcaf9b32d83499b
Author: Shyam <srangana at redhat.com>
Date:   Fri Oct 24 15:44:22 2014 -0400

    xlator/io-stat: Check and copy loc->path

    Cases where loc->path is NULL, the current code in create/open/mkdir
    would copy the same blindly and as a result coredump.

    This is a preventive fix for the coredump. The reason for loc->path
    to be NULL in certain cases is yet to be determined.

    One such case is when resolve_loc_touchup fails to get inode_path due
    to loops in the inode table.

    Change-Id: Ic2ddf2cc9f2acaf9b939afc11afd193b4402ee7c
    BUG: 1159221
    Signed-off-by: Shyam <srangana at redhat.com>
    Reviewed-on: http://review.gluster.org/9029
    Tested-by: Gluster Build System <jenkins at build.gluster.com>
    Reviewed-by: Vijay Bellur <vbellur at redhat.com>

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=gj4OLJdgXz&a=cc_unsubscribe


More information about the Bugs mailing list