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 06/08/2016 05:57 PM, Mike Frysinger wrote:
On 08 Jun 2016 12:37, Joseph Myers wrote:
On Wed, 8 Jun 2016, Florian Weimer wrote:
This patchset breaks various network emulation libraries because applications
use the new struct msghdr definition, yet dlsym (RTLD_NEXT, "recvmsg") picks
the compat implementation.

That seems like bug 14932.  I think dlsym should return the current
version.  See previous discussions Apr-Jun 2013.

agreed

Yes, it seems all of you are right.

So what's the short-term way forward here?

Remove the compat symbol and perform the additional zeroing unconditionally?

Even in the long temr, I'm not sure if we can fix RTLD_NEXT if there is just one unversioned symbol interposing multiple versioned symbols. I simply don't see a way it can be done. The interposing library would need more information about what's going on (data which should already be available to audit modules).

Thanks,
Florian



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