File descriptor may leak in all libnl versions if pthreads are used.

Марк Коренберг socketpair at gmail.com
Thu Jun 16 01:49:32 EDT 2011


2011/6/15 Thomas Graf <tgraf at infradead.org>:
> On Wed, Jun 15, 2011 at 09:12:22PM +0600, Марк Коренберг wrote:
>> Yes, but note, that on old kernels, SOCK_CLOEXEC may be ignored, as
>> was with O_CLOEXEC in open(). In that case, good libraries should use
>> fcntl().
>> I think that fcntl() will bloat your code, so your patch is sufficient.
>
> I agree. libnl exposes the fd so applications caring about ancient
> kernels and threading can take care of this themselves.
>
> Fixed in ca0fc75580512ccb5931fe1e05092c6c52a4e99c
>

Huge thanks.
Is that fixed in libnl  and libnl2?
Note, RHEL6 has only libnl1 ....



-- 
Segmentation fault



More information about the libnl mailing list