Andreas Schwab
746e16d2b9
- Update to glibc 2.17.90 85891acadf1b: * CVE-2013-2207 Incorrectly granting access to another user's pseudo-terminal has been fixed by disabling the use of pt_chown (Bugzilla #15755). Distributions can re-enable building and using pt_chown via the new configure option `--enable-pt_chown'. Enabling the use of pt_chown carries with it considerable security risks and should only be used if the distribution understands and accepts the risks. * CVE-2013-0242 Buffer overrun in regexp matcher has been fixed (Bugzilla #15078). * CVE-2013-1914 Stack overflow in getaddrinfo with many results has been fixed (Bugzilla #15330). * Add support for calling C++11 thread_local object destructors on thread and program exit. This needs compiler support for offloading C++11 destructor calls to glibc. * Improved worst case performance of libm functions with double inputs and output. * Support for priority inherited mutexes in pthread condition variables on non-x86 architectures. * Optimized string functions for AArch64. Implemented by Marcus Shawcroft. * Optimized string functions for ARM. Implemented by Will Newton and Richard Henderson. * Added a benchmark framework to track performance of functions in glibc. * New <math.h> macro named issignaling to check for a signaling NaN (sNaN). It is based on draft TS 18661 and currently enabled as a GNU extension. * On Linux, the clock function now uses the clock_gettime system call for improved precision, rather than old times system call. * Added new API functions pthread_getattr_default_np and pthread_setattr_default_np to get and set the default pthread attributes of a process. * Added support for TSX lock elision for pthread mutexes on i386 and x86-64. OBS-URL: https://build.opensuse.org/request/show/186119 OBS-URL: https://build.opensuse.org/package/show/Base:System/glibc?expand=0&rev=304
82 lines
2.2 KiB
Diff
82 lines
2.2 KiB
Diff
For details see:
|
|
http://sourceware.org/bugzilla/show_bug.cgi?id=5379
|
|
|
|
|
|
Index: glibc-2.17.90/sunrpc/clnt_udp.c
|
|
===================================================================
|
|
--- glibc-2.17.90.orig/sunrpc/clnt_udp.c
|
|
+++ glibc-2.17.90/sunrpc/clnt_udp.c
|
|
@@ -308,6 +308,7 @@ clntudp_call (cl, proc, xargs, argsp, xr
|
|
XDR *xdrs;
|
|
int outlen = 0;
|
|
int inlen;
|
|
+ int pollresult;
|
|
socklen_t fromlen;
|
|
struct pollfd fd;
|
|
int milliseconds = (cu->cu_wait.tv_sec * 1000) +
|
|
@@ -378,37 +379,36 @@ send_again:
|
|
anyup = 0;
|
|
for (;;)
|
|
{
|
|
- switch (__poll (&fd, 1, milliseconds))
|
|
+ switch (pollresult = __poll (&fd, 1, milliseconds))
|
|
{
|
|
-
|
|
case 0:
|
|
- if (anyup == 0)
|
|
- {
|
|
- anyup = is_network_up (cu->cu_sock);
|
|
- if (!anyup)
|
|
- return (cu->cu_error.re_status = RPC_CANTRECV);
|
|
- }
|
|
-
|
|
- time_waited.tv_sec += cu->cu_wait.tv_sec;
|
|
- time_waited.tv_usec += cu->cu_wait.tv_usec;
|
|
- while (time_waited.tv_usec >= 1000000)
|
|
- {
|
|
- time_waited.tv_sec++;
|
|
- time_waited.tv_usec -= 1000000;
|
|
- }
|
|
- if ((time_waited.tv_sec < timeout.tv_sec) ||
|
|
- ((time_waited.tv_sec == timeout.tv_sec) &&
|
|
- (time_waited.tv_usec < timeout.tv_usec)))
|
|
- goto send_again;
|
|
- return (cu->cu_error.re_status = RPC_TIMEDOUT);
|
|
-
|
|
- /*
|
|
- * buggy in other cases because time_waited is not being
|
|
- * updated.
|
|
- */
|
|
case -1:
|
|
- if (errno == EINTR)
|
|
- continue;
|
|
+ if (pollresult == 0 || errno == EINTR) {
|
|
+ if (anyup == 0)
|
|
+ {
|
|
+ anyup = is_network_up (cu->cu_sock);
|
|
+ if (!anyup)
|
|
+ return (cu->cu_error.re_status = RPC_CANTRECV);
|
|
+ }
|
|
+
|
|
+ time_waited.tv_sec += cu->cu_wait.tv_sec;
|
|
+ time_waited.tv_usec += cu->cu_wait.tv_usec;
|
|
+ while (time_waited.tv_usec >= 1000000)
|
|
+ {
|
|
+ time_waited.tv_sec++;
|
|
+ time_waited.tv_usec -= 1000000;
|
|
+ }
|
|
+ if ((time_waited.tv_sec < timeout.tv_sec) ||
|
|
+ ((time_waited.tv_sec == timeout.tv_sec) &&
|
|
+ (time_waited.tv_usec < timeout.tv_usec)))
|
|
+ if (pollresult == 0)
|
|
+ goto send_again;
|
|
+ else
|
|
+ continue;
|
|
+ return (cu->cu_error.re_status = RPC_TIMEDOUT);
|
|
+ }
|
|
+
|
|
+ /* errno != EINTR */
|
|
cu->cu_error.re_errno = errno;
|
|
return (cu->cu_error.re_status = RPC_CANTRECV);
|
|
}
|