[Bugs] [Bug 1497122] Crash in dht_check_and_open_fd_on_subvol_task()

bugzilla at redhat.com bugzilla at redhat.com
Mon Oct 2 12:34:19 UTC 2017


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



--- Comment #2 from Worker Ant <bugzilla-bot at gluster.org> ---
COMMIT: https://review.gluster.org/18411 committed in release-3.10 by
Shyamsundar Ranganathan (srangana at redhat.com) 
------
commit 5eab919dee035b9cf1b7f060bcf2d9eaa1e92eb3
Author: Ravishankar N <ravishankar at redhat.com>
Date:   Tue Sep 5 15:18:58 2017 +0530

    dht: add FOP check to dht_file_setattr_cbk

    Problem:
    bug-797171.7 loaded error-gen xlator on the brick which sent EBADF for a
    non fd-based fop, namely setattr. This caused
    dht_check_and_open_fd_on_subvol_task() to crash as local->fd was NULL.

    Fix:
    Call dht_check_and_open_fd_on_subvol_task() from dht_file_setattr_cbk
    only for dht_fsetattr and not dht_setattr or dht_setattr2

    > Reviewed-on: https://review.gluster.org/18208
    > Smoke: Gluster Build System <jenkins at build.gluster.org>
    > Reviewed-by: Susant Palai <spalai at redhat.com>
    > Reviewed-by: Amar Tumballi <amarts at redhat.com>
    > Reviewed-by: Raghavendra G <rgowdapp at redhat.com>
    > Reviewed-by: N Balachandran <nbalacha at redhat.com>
    > CentOS-regression: Gluster Build System <jenkins at build.gluster.org>
    (cherry picked from commit 47188e9eac59de416a5c86c7ec7540ed6aaa1c98)


    Signed-off-by: Ravishankar N <ravishankar at redhat.com>
    Change-Id: Iab4999e213bf2065804f3f8237e470ad454e3c99
    BUG: 1497122

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


More information about the Bugs mailing list