public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/13567] New: overflow in emulated timer_settime() on Linux/HPPA at least
@ 2012-01-05 21:32 P at draigBrady dot com
  2012-01-05 23:39 ` [Bug ports/13567] " schwab@linux-m68k.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: P at draigBrady dot com @ 2012-01-05 21:32 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=13567

             Bug #: 13567
           Summary: overflow in emulated timer_settime() on Linux/HPPA at
                    least
           Product: glibc
           Version: 2.4
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
        AssignedTo: drepper.fsp@gmail.com
        ReportedBy: P@draigBrady.com
    Classification: Unclassified


Created attachment 6150
  --> http://sourceware.org/bugzilla/attachment.cgi?id=6150
An strace of the problematic timeout run

When testing recent coreutils releases on parisc linux, it was noticed
that timer_settime($large_num) would cause the timer
to immediately fire when $large_num spanned the 2038 boundary.
This function is used by the `timeout` utility.

Seems to me that time_t is overflowing,
and being interpreted as a negative number.
Note time_t is signed 32-bit on this platform.

$ uname -srm
Linux 2.6.22.19 parisc

$ /lib/libc.so.6 GNU C Library stable release version 2.7, by Roland McGrath et
al.
Copyright (C) 2007 Free Software Foundation, Inc.
...
Compiled by GNU CC version 4.3.2.
Compiled on a Linux >>2.6.32-5-parisc<< system on 2011-01-07.
Available extensions:
        crypt add-on version 2.1 by Michael Glad and others
        GNU Libidn by Simon Josefsson
        linuxthreads-0.10 by Xavier Leroy
        libthread_db work sponsored by Alpha Processor Inc
        Support for some architectures added on, not maintained in glibc core.
        BIND-8.2.3-T5B

$ grep HAVE_TIMER_SETTIME ../lib/config.h
#define HAVE_TIMER_SETTIME 1

$ nm timeout|grep ' U timer'
         U timer_create@@GLIBC_2.2
         U timer_delete@@GLIBC_2.2
         U timer_settime@@GLIBC_2.2

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug ports/13567] overflow in emulated timer_settime() on Linux/HPPA at least
  2012-01-05 21:32 [Bug libc/13567] New: overflow in emulated timer_settime() on Linux/HPPA at least P at draigBrady dot com
@ 2012-01-05 23:39 ` schwab@linux-m68k.org
  2012-02-15 22:34 ` jsm28 at gcc dot gnu.org
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: schwab@linux-m68k.org @ 2012-01-05 23:39 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=13567

Andreas Schwab <schwab@linux-m68k.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|libc                        |ports

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug ports/13567] overflow in emulated timer_settime() on Linux/HPPA at least
  2012-01-05 21:32 [Bug libc/13567] New: overflow in emulated timer_settime() on Linux/HPPA at least P at draigBrady dot com
  2012-01-05 23:39 ` [Bug ports/13567] " schwab@linux-m68k.org
@ 2012-02-15 22:34 ` jsm28 at gcc dot gnu.org
  2012-02-16  1:17 ` carlos at systemhalted dot org
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: jsm28 at gcc dot gnu.org @ 2012-02-15 22:34 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=13567

Joseph Myers <jsm28 at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |carlos at systemhalted dot
                   |                            |org
         AssignedTo|drepper.fsp at gmail dot    |unassigned at sourceware
                   |com                         |dot org

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug ports/13567] overflow in emulated timer_settime() on Linux/HPPA at least
  2012-01-05 21:32 [Bug libc/13567] New: overflow in emulated timer_settime() on Linux/HPPA at least P at draigBrady dot com
  2012-01-05 23:39 ` [Bug ports/13567] " schwab@linux-m68k.org
  2012-02-15 22:34 ` jsm28 at gcc dot gnu.org
@ 2012-02-16  1:17 ` carlos at systemhalted dot org
  2012-02-19  2:11 ` jsm28 at gcc dot gnu.org
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: carlos at systemhalted dot org @ 2012-02-16  1:17 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=13567

Carlos O'Donell <carlos at systemhalted dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|carlos at systemhalted dot  |
                   |org                         |
         AssignedTo|unassigned at sourceware    |carlos at systemhalted dot
                   |dot org                     |org

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug ports/13567] overflow in emulated timer_settime() on Linux/HPPA at least
  2012-01-05 21:32 [Bug libc/13567] New: overflow in emulated timer_settime() on Linux/HPPA at least P at draigBrady dot com
                   ` (2 preceding siblings ...)
  2012-02-16  1:17 ` carlos at systemhalted dot org
@ 2012-02-19  2:11 ` jsm28 at gcc dot gnu.org
  2014-05-14 17:03 ` [Bug libc/13567] [hppa] " jsm28 at gcc dot gnu.org
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: jsm28 at gcc dot gnu.org @ 2012-02-19  2:11 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=13567

--- Comment #1 from Joseph Myers <jsm28 at gcc dot gnu.org> 2012-02-19 02:11:32 UTC ---
Carlos, you should probably look at this, though

        linuxthreads-0.10 by Xavier Leroy
        libthread_db work sponsored by Alpha Processor Inc

in the report suggests it may be specific to Linuxthreads, which is no longer a
supported configuration.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug libc/13567] [hppa] overflow in emulated timer_settime() on Linux/HPPA at least
  2012-01-05 21:32 [Bug libc/13567] New: overflow in emulated timer_settime() on Linux/HPPA at least P at draigBrady dot com
                   ` (3 preceding siblings ...)
  2012-02-19  2:11 ` jsm28 at gcc dot gnu.org
@ 2014-05-14 17:03 ` jsm28 at gcc dot gnu.org
  2014-06-27 11:15 ` fweimer at redhat dot com
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: jsm28 at gcc dot gnu.org @ 2014-05-14 17:03 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=13567

Joseph Myers <jsm28 at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |drepper.fsp at gmail dot com
          Component|ports                       |libc
               Host|                            |hppa*-*-linux*
            Summary|overflow in emulated        |[hppa] overflow in emulated
                   |timer_settime() on          |timer_settime() on
                   |Linux/HPPA at least         |Linux/HPPA at least

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug libc/13567] [hppa] overflow in emulated timer_settime() on Linux/HPPA at least
  2012-01-05 21:32 [Bug libc/13567] New: overflow in emulated timer_settime() on Linux/HPPA at least P at draigBrady dot com
                   ` (4 preceding siblings ...)
  2014-05-14 17:03 ` [Bug libc/13567] [hppa] " jsm28 at gcc dot gnu.org
@ 2014-06-27 11:15 ` fweimer at redhat dot com
  2015-08-27 22:07 ` [Bug librt/13567] " jsm28 at gcc dot gnu.org
  2022-06-10  0:45 ` sam at gentoo dot org
  7 siblings, 0 replies; 9+ messages in thread
From: fweimer at redhat dot com @ 2014-06-27 11:15 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=13567

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
              Flags|                            |security-

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug librt/13567] [hppa] overflow in emulated timer_settime() on Linux/HPPA at least
  2012-01-05 21:32 [Bug libc/13567] New: overflow in emulated timer_settime() on Linux/HPPA at least P at draigBrady dot com
                   ` (5 preceding siblings ...)
  2014-06-27 11:15 ` fweimer at redhat dot com
@ 2015-08-27 22:07 ` jsm28 at gcc dot gnu.org
  2022-06-10  0:45 ` sam at gentoo dot org
  7 siblings, 0 replies; 9+ messages in thread
From: jsm28 at gcc dot gnu.org @ 2015-08-27 22:07 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=13567

Joseph Myers <jsm28 at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|libc                        |librt

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug librt/13567] [hppa] overflow in emulated timer_settime() on Linux/HPPA at least
  2012-01-05 21:32 [Bug libc/13567] New: overflow in emulated timer_settime() on Linux/HPPA at least P at draigBrady dot com
                   ` (6 preceding siblings ...)
  2015-08-27 22:07 ` [Bug librt/13567] " jsm28 at gcc dot gnu.org
@ 2022-06-10  0:45 ` sam at gentoo dot org
  7 siblings, 0 replies; 9+ messages in thread
From: sam at gentoo dot org @ 2022-06-10  0:45 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=13567

Sam James <sam at gentoo dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sam at gentoo dot org

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2022-06-10  0:45 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-05 21:32 [Bug libc/13567] New: overflow in emulated timer_settime() on Linux/HPPA at least P at draigBrady dot com
2012-01-05 23:39 ` [Bug ports/13567] " schwab@linux-m68k.org
2012-02-15 22:34 ` jsm28 at gcc dot gnu.org
2012-02-16  1:17 ` carlos at systemhalted dot org
2012-02-19  2:11 ` jsm28 at gcc dot gnu.org
2014-05-14 17:03 ` [Bug libc/13567] [hppa] " jsm28 at gcc dot gnu.org
2014-06-27 11:15 ` fweimer at redhat dot com
2015-08-27 22:07 ` [Bug librt/13567] " jsm28 at gcc dot gnu.org
2022-06-10  0:45 ` sam at gentoo dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).