Re: Automount crashes due to thread-unsafe use of libldap

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 2013-07-26 at 14:46 -0300, Leonardo Chiquitto wrote:
> 
> Trying to find similar reports on the web, I found this email from an
> OpenLDAP developer (partial quote, emphasis mine) [1]:
> 
> "As far as I know, libldap is thread safe in the sense that multiple
> threads can use separate LDAP* handles without running into concurrency
> issues; *except for library initialization*, all accesses to common data
> (i.e. global variables) is read-only."
> 
> [1]http://www.openldap.org/cgi-bin/wilma_hiliter/openldap-software/200606/msg00252.html
> 
> AutoFS implements no locking around LDAP initialization libraries and
> it's quite common to see multiple threads executing ldap_initialize()
> or ldap_start_tls_s() at the same time.

Umm .. OK, that's likely the case but I'll check.

> 
> To avoid corruption inside SSL and LDAP libraries, I'd like to propose
> the following patch.

The patch looks straight forward and sensible.

Without having looked around or thought about it sufficiently I'd say
I'll apply this but give me some time to look around.

Thanks
Ian

--
To unsubscribe from this list: send the line "unsubscribe autofs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Filesystem Development]     [Linux Ext4]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux