[Date Prev][Date Next] [Chronological] [Thread] [Top]

(ITS#7314) [PATCH 3/5] MozNSS: lock whole init and clenaup process

Full_Name: Jan Vcelak
Version: git master
OS: Linux
URL: http://jvcelak.fedorapeople.org/openldap-patches/jvcelak-120622-0003-MozNSS-lock-whole-init-and-clenaup-process.patch
Submission from: (NULL) (

This patch changes the mutex locking during Mozilla NSS context initialization
and shutdown.

When multiple TLS contexts are created in multi-threaded application (like slapd
with syncrepl), certificate, private key, or slot lookup errors appeared from
time to time when other thread was loading the certificates. This patch makes
the process safe as much as possible by protecting the whole context
initialization and shutdown. Unfortunatelly, identifying the unsafe operations
can be tricky with MozNSS. This patch should not cause any performance drawback,
because the initialization is run just once per context.

Patch could not upload to OpenLDAP FTP server due to "No space left on device.
Therefore I have uploaded the patch to fedorapeople.org. The patch is also
available in 'moznss' branch of git://github.com/fcelda/openldap.git

The attached file is derived from OpenLDAP Software. All of the modifications
OpenLDAP Software represented in the following patch(es) were developed by Red
Hat. Red Hat has not assigned rights and/or interest in this work to any party.
I, Jan Vcelak am authorized by Red Hat, my employer, to release this work under
the following terms.

Red Hat hereby place the following modifications to OpenLDAP Software (and only
these modifications) into the public domain. Hence, these modifications may be
freely used and/or redistributed for any purpose with or without attribution
and/or other notice.