From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24578 invoked by alias); 18 Apr 2014 01:01:52 -0000 Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org Received: (qmail 24532 invoked by uid 48); 18 Apr 2014 01:01:48 -0000 From: "bugdal at aerifal dot cx" To: glibc-bugs@sourceware.org Subject: [Bug libc/16852] New: recvmmsg clobbers const argument Date: Fri, 18 Apr 2014 01:01:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: libc X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: bugdal at aerifal dot cx X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-04/txt/msg00106.txt.bz2 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.