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

bugzilla at redhat.com bugzilla at redhat.com
Mon Jul 13 15:33:43 UTC 2015


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

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

More information about the Bugs mailing list