mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-24 03:31:07 +00:00
78880cc185
After some discussion in libc-alpha about this POSIX compliance fix, I see that GLIBC should indeed revert back to previous definition of msghdr and cmsghdr and implementation of sendmsg, recvmsg, sendmmsg, recvmmsg due some reasons: * The possible issue where the syscalls wrapper add the compatibility layer is quite limited in scope and range. And kernel current also add some limits to the values on the internal msghdr and cmsghdr fields: - msghdr::msg_iovlen larger than UIO_MAXIOV (1024) returns EMSGSIZE. - msghdr::msg_controllen larger than INT_MAX returns ENOBUFS. * There is a small performance hit for recvmsg/sendmsg/recmmsg which is neglectable, but it is a big hit for sendmmsg since now instead of calling the syscall for the packed structure, GLIBC is calling multiple sendmsg. This defeat the very existence of the syscall. * It currently breaks libsanitizer build on GCC [1] (I fixed on compiler-rt). However the fix is incomplete because it does add any runtime check since libsanitizer currently does not have any facility to intercept symbols with multiple version [2]. This, along with incorret dlsym/dlvsym return for versioned symbol due another bug [3], makes hard to interpose versioned symbols. Also, current approach of fixing GCC PR#71445 leads to half-baked solutions without versioned symbol interposing. This patch basically reverts commits |
||
---|---|---|
.. | ||
a.out.h | ||
dirent.h | ||
epoll.h | ||
errno.h | ||
eventfd.h | ||
fcntl-linux.h | ||
fcntl.h | ||
in.h | ||
initspin.h | ||
inotify.h | ||
ioctl-types.h | ||
ioctls.h | ||
ipc.h | ||
local_lim.h | ||
mqueue.h | ||
msq.h | ||
param.h | ||
poll.h | ||
posix_opt.h | ||
resource.h | ||
sched.h | ||
sem.h | ||
shm.h | ||
sigaction.h | ||
sigcontext.h | ||
siginfo.h | ||
signalfd.h | ||
signum.h | ||
sigset.h | ||
sigstack.h | ||
socket_type.h | ||
socket.h | ||
stat.h | ||
statfs.h | ||
statvfs.h | ||
sys_errlist.h | ||
sysctl.h | ||
termios.h | ||
time.h | ||
timerfd.h | ||
timex.h | ||
uio.h | ||
utsname.h | ||
waitflags.h |