[PATCH v4 0/3] Fix {recv,send}{m}msg standard compliance (BZ#16919)

Florian Weimer fweimer@redhat.com
Wed Jun 8 20:27:00 GMT 2016


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



More information about the Libc-alpha mailing list