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

[nmav@gnutls.org: Bug#760476: gnutls28 3.3.8-3]



Looks like this needs to be fixed in cups. See
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=760476#90 ff.

----- Forwarded message from Nikos Mavrogiannopoulos <nmav@gnutls.org> -----
Date: Tue, 21 Oct 2014 22:50:00 +0200
From: Nikos Mavrogiannopoulos <nmav@gnutls.org>
To: 760476@bugs.debian.org
Subject: Bug#760476: gnutls28 3.3.8-3
Message-ID: <1413924600.15293.2.camel@nomad.lan>

On Tue, 21 Oct 2014 11:58:21 +0200 =?UTF-8?B?Q2hyaXN0b3BoZSBTw6lndWk=?=

> read(3, 0x7fff63334f20, 16)             = -1 EINVAL (Invalid argument)
> write(2, "gnutls[2]: Failed to read /dev/u"..., 57) = 57
> write(2, "gnutls[3]: ASSERT: rnd.c:142\n", 29) = 29
> write(2, "gnutls[3]: ASSERT: rnd.c:329\n", 29) = 29

Thank you. The log shows that indeed reading from /dev/urandom fails.
Unfortunately the strace does not start from an early stage, so I cannot
see what happens with file descriptor 3 which is supposed to be
/dev/urandom. What I see though is that fd 3 is also used in epoll_ctl(),
and I suspect that cups has some code that closes all open descriptors.
If that's the case it will disrupt gnutls' usage of /dev/urandom the
way we see here.

regards,
Nikos

----- End forwarded message -----
----- Forwarded message from Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com> -----
Date: Wed, 22 Oct 2014 10:39:40 +0200
From: Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
[...]

Thanks, it seems I am correct. Cups closes all open descriptors. I
don't know what I can do in gnutls to fix that. That looks like that
should be addressed in cups.
[...]

----- End forwarded message -----
----- Forwarded message from Nikos Mavrogiannopoulos <nmav@gnutls.org> -----

Date: Wed, 22 Oct 2014 12:22:59 +0200
From: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Message-ID: <CAJU7zaJ-qmomA6EqBPMYZkhiHNJaRrgCdB7W2XAv3WmpqbTGaQ@mail.gmail.com>

[....]
The best that I can think of is having a function to check whether a
particular fd is in use by gnutls (and that could be ported to 3.3.10
if it is to be used by cups). I don't see how that can be solved
transparently to an application.
https://gitorious.org/gnutls/gnutls/commit/2c12530bacc89485e807ec18ae455f4e190b383f
----- End forwarded message -----


Reply to: