[Bugs] [Bug 1648687] New: Incorrect usage of local->fd in afr_open_ftruncate_cbk

bugzilla at redhat.com bugzilla at redhat.com
Sun Nov 11 17:30:46 UTC 2018


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

            Bug ID: 1648687
           Summary: Incorrect usage of local->fd in
                    afr_open_ftruncate_cbk
           Product: GlusterFS
           Version: mainline
         Component: replicate
          Severity: high
          Assignee: bugs at gluster.org
          Reporter: skoduri at redhat.com
                CC: bugs at gluster.org



Description of problem:

afr_open() stores fd reference in local->cont.open structure. But in the
callback function "afr_open_ftruncate_cbk" ( when openflags contain 'O_TRUNC'
set), we reference local->fd in AFR_STACK_UNWIND resulting in error or 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