Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Tue, 26 Jun 2012 17:13:19 -0400
From: Rich Felker <dalias@...ifal.cx>
To: musl@...ts.openwall.com
Subject: Re: openssh and sendmsg() problem

On Tue, Jun 26, 2012 at 10:40:16PM +0200, Szabolcs Nagy wrote:
> > And kernel too.
> > 
> > Both they define incompatible msghdr and cmsghdr structs.
> > The problem sits in cmsghdr struct, changing it's first member type to
> > 'size_t' solves openssh issue.
> 
> so the issue is that the kernel and glibc uses size_t for socklen_t
> in struct msghdr and struct cmsghdr as well
> 
> musl fixes msghdr but not cmsghdr
> (by using int + padding)
> 
> where is it specified in posix that socklen_t should be unsigned int?
> it seems using size_t would make things easier..

Yes it would be easier, but unfortunately it's part of the LSB types
ABI and presumably the Linux kernel ABI...

Rich

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.