public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/16852] New: recvmmsg clobbers const argument
@ 2014-04-18  1:01 bugdal at aerifal dot cx
  2014-06-12 19:39 ` [Bug libc/16852] " fweimer at redhat dot com
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: bugdal at aerifal dot cx @ 2014-04-18  1:01 UTC (permalink / raw)
  To: glibc-bugs

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

            Bug ID: 16852
           Summary: recvmmsg clobbers const argument
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
          Assignee: unassigned at sourceware dot org
          Reporter: bugdal at aerifal dot cx
                CC: drepper.fsp at gmail dot com

In sysdeps/unix/sysv/linux/recvmmsg.c, the const struct timespec *tmo argument
is passed directly to the Linux syscall recvmmsg which overwrites the
pointed-to struct with the remaining time. If this behavior is desired, the
argument needs to be changed to be a pointer-to-non-const, but the policy
elsewhere (in other analogous interfaces) seems to be to suppress the kernel
behavior by using a temp copy of the timeout to pass to the kernel.

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


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

* [Bug libc/16852] recvmmsg clobbers const argument
  2014-04-18  1:01 [Bug libc/16852] New: recvmmsg clobbers const argument bugdal at aerifal dot cx
@ 2014-06-12 19:39 ` fweimer at redhat dot com
  2014-06-12 19:40 ` fweimer at redhat dot com
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: fweimer at redhat dot com @ 2014-06-12 19:39 UTC (permalink / raw)
  To: glibc-bugs

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

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fweimer at redhat dot com

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


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

* [Bug libc/16852] recvmmsg clobbers const argument
  2014-04-18  1:01 [Bug libc/16852] New: recvmmsg clobbers const argument bugdal at aerifal dot cx
  2014-06-12 19:39 ` [Bug libc/16852] " fweimer at redhat dot com
@ 2014-06-12 19:40 ` fweimer at redhat dot com
  2015-02-18 14:43 ` fweimer at redhat dot com
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: fweimer at redhat dot com @ 2014-06-12 19:40 UTC (permalink / raw)
  To: glibc-bugs

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

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|fweimer at redhat dot com          |

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


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

* [Bug libc/16852] recvmmsg clobbers const argument
  2014-04-18  1:01 [Bug libc/16852] New: recvmmsg clobbers const argument bugdal at aerifal dot cx
  2014-06-12 19:39 ` [Bug libc/16852] " fweimer at redhat dot com
  2014-06-12 19:40 ` fweimer at redhat dot com
@ 2015-02-18 14:43 ` fweimer at redhat dot com
  2015-02-18 18:54 ` bugdal at aerifal dot cx
  2015-08-27 22:21 ` [Bug network/16852] " jsm28 at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: fweimer at redhat dot com @ 2015-02-18 14:43 UTC (permalink / raw)
  To: glibc-bugs

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

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fweimer at redhat dot com

--- Comment #1 from Florian Weimer <fweimer at redhat dot com> ---
Shouldn't the prototype be changed instead because the interface is specific to
Linux?

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


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

* [Bug libc/16852] recvmmsg clobbers const argument
  2014-04-18  1:01 [Bug libc/16852] New: recvmmsg clobbers const argument bugdal at aerifal dot cx
                   ` (2 preceding siblings ...)
  2015-02-18 14:43 ` fweimer at redhat dot com
@ 2015-02-18 18:54 ` bugdal at aerifal dot cx
  2015-08-27 22:21 ` [Bug network/16852] " jsm28 at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: bugdal at aerifal dot cx @ 2015-02-18 18:54 UTC (permalink / raw)
  To: glibc-bugs

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

--- Comment #2 from Rich Felker <bugdal at aerifal dot cx> ---
This issue was discussed somewhere else -- I don't recall exactly but it was
probably the man pages list or something kernel-related -- and the feeling was
that the const in glibc is wrong since this is a Linux-specific interface. I'm
okay with removing const and updating documentation to reflect Linux behavior
if that's what you prefer. That's what we did in musl.

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


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

* [Bug network/16852] recvmmsg clobbers const argument
  2014-04-18  1:01 [Bug libc/16852] New: recvmmsg clobbers const argument bugdal at aerifal dot cx
                   ` (3 preceding siblings ...)
  2015-02-18 18:54 ` bugdal at aerifal dot cx
@ 2015-08-27 22:21 ` jsm28 at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: jsm28 at gcc dot gnu.org @ 2015-08-27 22:21 UTC (permalink / raw)
  To: glibc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|libc                        |network

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


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

end of thread, other threads:[~2015-08-27 22:21 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-18  1:01 [Bug libc/16852] New: recvmmsg clobbers const argument bugdal at aerifal dot cx
2014-06-12 19:39 ` [Bug libc/16852] " fweimer at redhat dot com
2014-06-12 19:40 ` fweimer at redhat dot com
2015-02-18 14:43 ` fweimer at redhat dot com
2015-02-18 18:54 ` bugdal at aerifal dot cx
2015-08-27 22:21 ` [Bug network/16852] " jsm28 at gcc dot gnu.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).