Openwall GNU/*/Linux - a small security-enhanced Linux distro for servers
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date: Sun, 1 Jul 2012 18:23:56 +0800
From: orc <orc@...server.ru>
To: musl@...ts.openwall.com
Subject: Re: openssh and sendmsg() problem

On Tue, 26 Jun 2012 17:13:19 -0400
Rich Felker <dalias@...ifal.cx> wrote:

> 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

As a temporary workaround, can I safely change the type until final fix?

Powered by blists - more mailing lists

Your e-mail address:

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