Summary: | Unnecessary failure case in sysdeps/posix/writev.c, etc. | ||
---|---|---|---|
Product: | glibc | Reporter: | Rich Felker <bugdal> |
Component: | libc | Assignee: | Not yet assigned to anyone <unassigned> |
Status: | REOPENED --- | ||
Severity: | minor | CC: | drepper.fsp, fweimer |
Priority: | P2 | Flags: | fweimer:
security-
|
Version: | unspecified | ||
Target Milestone: | --- | ||
Host: | Target: | ||
Build: | Last reconfirmed: |
Description
Rich Felker
2012-09-09 19:05:17 UTC
FWIW: /* Pessimistically assume that 2.6.18 introduced real handling of large numbers of requests to readv and writev and that we don't need a fallback. It likely worked for much longer. */ #if __LINUX_KERNEL_VERSION >= 0x020612 # define __ASSUME_COMPLETE_READV_WRITEV 1 #endif It would be nice if someone figured out just when this went into the kernel - if it was actually 2.6.16 or before, then this replacement code isn't actually needed for Linux any more. This has been addressed indirectly by requiring a minimum kernel version of 2.6.16, starting with glibc 2.17. This is still an issue with the fallback code present in the glibc source tree (maybe used on Hurd?), although the problem code won't be used on Linux. (The relevant Linux kernel support was actually added between 2.0 and 2.2.) |