[Bugs] [Bug 1240920] libgfapi: Segfault seen when glfs_*() methods are invoked with invalid glfd

bugzilla at redhat.com bugzilla at redhat.com
Wed Aug 26 16:17:27 UTC 2015


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



--- Comment #6 from Anand Avati <aavati at redhat.com> ---
COMMIT: http://review.gluster.org/11571 committed in release-3.7 by Niels de
Vos (ndevos at redhat.com) 
------
commit 6c4096f5e6a6d0f2b21cb4b2bea098b6f4eebbed
Author: Prashanth Pai <ppai at redhat.com>
Date:   Tue May 12 16:36:55 2015 +0530

    libgfapi: Gracefully exit when glfd is invalid

    This is a backport of: http://review.gluster.org/10759

    When glfs_* methods operating on glfd are invoked after calling
    glfs_close(), the program segfaults inside __GLFS_ENTRY_VALIDATE_FD
    trying to deference glfd->fd->inode which is invalid.

    Also, returning EBADF seemed more specific than EINVAL.

    BUG: 1240920
    Change-Id: I13a92dca52da9a300252b69e026581b3a9e931fd
    Signed-off-by: Prashanth Pai <ppai at redhat.com>
    Reviewed-on-master: http://review.gluster.org/10759
    Tested-by: Gluster Build System <jenkins at build.gluster.com>
    Reviewed-by: Shyamsundar Ranganathan <srangana at redhat.com>
    Reviewed-on: http://review.gluster.org/11571
    Reviewed-by: Niels de Vos <ndevos at redhat.com>
    Reviewed-by: Humble Devassy Chirammal <humble.devassy at gmail.com>
    Reviewed-by: bipin kunal <bkunal at redhat.com>
    Tested-by: NetBSD Build System <jenkins at build.gluster.org>

-- 
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=ATlI6qCZJx&a=cc_unsubscribe


More information about the Bugs mailing list