[Bugs] [Bug 1602070] New: [SNAPSHOT] snapshot daemon crashes if a fd from a deleted snapshot is accessed

bugzilla at redhat.com bugzilla at redhat.com
Tue Jul 17 18:34:56 UTC 2018


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

            Bug ID: 1602070
           Summary: [SNAPSHOT] snapshot daemon crashes if a fd from a
                    deleted snapshot is accessed
           Product: GlusterFS
           Version: mainline
         Component: snapshot
          Assignee: bugs at gluster.org
          Reporter: rabhat at redhat.com
                CC: bugs at gluster.org



Description of problem:

The following test causes the snapshot daemon to crash.

1) Create a gluster volume
2) mount the volume and create few files
3) Take snapshot(s)
4) open a file and keep the fd open for a file from one of the snapshots via
uss
5) delete the snapshot to which the file opened belongs to
6) perform some operation on the fd

This is because, when the snapshot is deleted, the glfs_t instance for that
snapshot is also destroyed. And later when the operation on the fd is received
by the snapshot daemon, it tries to access the glfs_t instance for the deleted
snapshot. But since the glfs_t instance is destroyed, the pointer access causes
a crash.


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.


More information about the Bugs mailing list