This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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



On 08/06/2016 17:27, Florian Weimer wrote:
> 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

I discussed briefly at IRC with Joseph and Carlos that indeed this change
might generate some localized incompatibilities, but the general idea is
this tooling issues should not prevent us to fix issues in GLIBC.

Also, I do fell a compelling way to just revert fixes only because highly
coupled tooling shows internal issues. For libsanitizer example, it already
required a lot of knowledge of GLIBC internal implementation and it also
adds a lot of hacking to circumvent some issues.  Ideally I would see
this symbol interposing to have some help of libc itself. 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]