[Bugs] [Bug 1243768] New: GlusterD crashes when management encryption is enabled

bugzilla at redhat.com bugzilla at redhat.com
Thu Jul 16 09:29:04 UTC 2015


            Bug ID: 1243768
           Summary: GlusterD crashes when management encryption is enabled
           Product: GlusterFS
           Version: 3.6.4
         Component: rpc
          Assignee: bugs at gluster.org
          Reporter: vbellur at redhat.com
                CC: bugs at gluster.org, gluster-bugs at redhat.com,
                    kaushal at redhat.com
        Depends On: 1242570
            Blocks: 1242367, 1242734, 1243700

+++ This bug was initially created as a clone of Bug #1242570 +++

Two issues in socket_poller, the polling function used by SSL own-thread,
caused GlusterD to crash when management encryption is enabled.

Issue 1
socket_poller calls functions which require THIS to be set. But, THIS
was being set conditionally. Because of this, functions could sometimes
be called without THIS being set. For example, rpc_transport_notify
could be called for an accepted client socket without THIS being set, as
THIS was only set it the transport wasn't yet connected. This would
cause the process to crash when THIS was accessed by the called

Issue 2
DISCONNECT notify was being sent on the listener transport instead of
the client transport. The DISCONNECT event was converted to a
LISTENER_DEAD event in rpcsvc_handle_disconnect, as it could not find
the listener socket of the listener socket. GlusterD was notified of a
LISTENER_DEAD event instead of a DISCONNECT and failed to remove the
client transport from its xprt_list. The transport would subsequently
be freed, leaving the xprt_list with a corrupted/invalid entry. Later,
when GlusterD would iterate over the xprt_list to send notifications, it
would crash when the invalid entry was accessed.

Referenced Bugs:

[Bug 1242367] with Management SSL on, 'gluster volume create' crashes
[Bug 1242570] GlusterD crashes when management encryption is enabled
[Bug 1242734] GlusterD crashes when management encryption is enabled
[Bug 1243700] GlusterD crashes when management encryption is enabled
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