This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH v4 0/3] Fix {recv,send}{m}msg standard compliance (BZ#16919)
- From: Florian Weimer <fweimer at redhat dot com>
- To: Adhemerval Zanella <adhemerval dot zanella at linaro dot org>, Joseph Myers <joseph at codesourcery dot com>, libc-alpha at sourceware dot org
- Date: Wed, 8 Jun 2016 22:27:42 +0200
- Subject: Re: [PATCH v4 0/3] Fix {recv,send}{m}msg standard compliance (BZ#16919)
- Authentication-results: sourceware.org; auth=none
- References: <1459175641-12520-1-git-send-email-adhemerval dot zanella at linaro dot org> <9df3c0d2-6c5b-5394-7b03-cfdfec13026c at redhat dot com> <alpine dot DEB dot 2 dot 20 dot 1606081234260 dot 12640 at digraph dot polyomino dot org dot uk> <20160608155708 dot GJ5431 at vapier dot lan> <bc9c5b23-7fb0-e191-5bec-cc65642fbbeb at redhat dot com> <57587DAF dot 4050001 at linaro dot org>
On 06/08/2016 10:18 PM, Adhemerval Zanella wrote:
This is the same issue in GCC BZ#71445 [1] comments and currently we can either
remove the compat symbol or make the interposition using symbol versions.
Ugh.
If we decide to to remove the compat symbol I believe the only change in
libsanitizer or any interpose library would to be just assume recvmsg to
follow POSIX struct definition (in libsanitizer case to check the internal
structure accesses using socklen_t instead of size_t).
Let me repeat that I think we should revert the changes to struct msghdr
and struct cmsghdr. There is growing evidence that they are just too
risky, and we seem to be past the threshold where we can ignore it.
Florian