public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/12874] New: Wrong assumption in sysdeps/wordsize-64/tst-writev.c
@ 2011-06-10 17:25 hjl.tools at gmail dot com
  2011-06-24 19:00 ` [Bug libc/12874] " drepper.fsp at gmail dot com
  2014-06-24  8:36 ` fweimer at redhat dot com
  0 siblings, 2 replies; 3+ messages in thread
From: hjl.tools at gmail dot com @ 2011-06-10 17:25 UTC (permalink / raw)
  To: glibc-bugs

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

           Summary: Wrong assumption in sysdeps/wordsize-64/tst-writev.c
           Product: glibc
           Version: 2.14
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
        AssignedTo: drepper.fsp@gmail.com
        ReportedBy: hjl.tools@gmail.com


sysdeps/wordsize-64/tst-writev.c has

/* writev() should report that it has written EXPECTED number of bytes.  */
#define EXPECTED ((size_t) INT32_MAX + 1)
...
 /* Write junk to /dev/null with the writev syscall in order to get a return
     of INT32_MAX+1 bytes to verify that the INTERNAL_SYSCALL wrappers aren't
     mangling the result if the signbit of a 32-bit number is set.  */
  ssize_t ret = writev (fd, iv, IOV_MAX);

  free (iv[0].iov_base);
  close (fd);

  if (ret != (ssize_t) EXPECTED)
    {
      printf ("writev() return value: %zd != EXPECTED: %zd\n", ret, EXPECTED);
      return 1;
    }

But kernel 2.6.38 has imposed a limit of (currently) 2 GiB-one page
for an individual I/O in order to avoid certain classes of security
problems.

-- 
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] 3+ messages in thread

* [Bug libc/12874] Wrong assumption in sysdeps/wordsize-64/tst-writev.c
  2011-06-10 17:25 [Bug libc/12874] New: Wrong assumption in sysdeps/wordsize-64/tst-writev.c hjl.tools at gmail dot com
@ 2011-06-24 19:00 ` drepper.fsp at gmail dot com
  2014-06-24  8:36 ` fweimer at redhat dot com
  1 sibling, 0 replies; 3+ messages in thread
From: drepper.fsp at gmail dot com @ 2011-06-24 19:00 UTC (permalink / raw)
  To: glibc-bugs

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

Ulrich Drepper <drepper.fsp at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #1 from Ulrich Drepper <drepper.fsp at gmail dot com> 2011-06-24 19:00:03 UTC ---
I added a work-around.

-- 
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] 3+ messages in thread

* [Bug libc/12874] Wrong assumption in sysdeps/wordsize-64/tst-writev.c
  2011-06-10 17:25 [Bug libc/12874] New: Wrong assumption in sysdeps/wordsize-64/tst-writev.c hjl.tools at gmail dot com
  2011-06-24 19:00 ` [Bug libc/12874] " drepper.fsp at gmail dot com
@ 2014-06-24  8:36 ` fweimer at redhat dot com
  1 sibling, 0 replies; 3+ messages in thread
From: fweimer at redhat dot com @ 2014-06-24  8:36 UTC (permalink / raw)
  To: glibc-bugs

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

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] 3+ messages in thread

end of thread, other threads:[~2014-06-24  8:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-10 17:25 [Bug libc/12874] New: Wrong assumption in sysdeps/wordsize-64/tst-writev.c hjl.tools at gmail dot com
2011-06-24 19:00 ` [Bug libc/12874] " drepper.fsp at gmail dot com
2014-06-24  8:36 ` fweimer at redhat dot com

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).