HEADS UP: breakage with linux emulation + SA-11:05.unix

Alexander Leidinger Alexander at Leidinger.net
Sat Oct 1 20:44:07 UTC 2011


On Fri, 30 Sep 2011 19:02:41 -0400 Jung-uk Kim <jkim at FreeBSD.org> wrote:

> On Friday 30 September 2011 06:02 pm, Jung-uk Kim wrote:
> > [Removed freebsd-security@]
> >
> > On Friday 30 September 2011 04:00 am, FreeBSD Security Officer 
> wrote:
> > > Hi all,
> > >
> > > It appears that the security fix in SA-11:05.unix exposed a bug
> > > in the linux emulation code: Linux has a different size of
> > > sockaddr_un than FreeBSD, and the linux emulation code was
> > > passing socket addresses through without doing any translation
> > > first.
> > >
> > > This appears to break all X-using Linux code -- both applications
> > > and plugins such as the widely-used flash plugin -- and probably
> > > other Linux applications too.
> > >
> > > I am working on a fix for this and will send an updated advisory
> > > out as soon as it's ready.
> >
> > For the impatient, I have written *unofficial* patch for this
> > Linuxulator regression.
> >
> > Please note that I am posting this patch to this ML only because I
> > wanted to point out Linuxulator is actually missing very important
> > feature, i.e., anonymous Unix domain socket.

Did you see
http://student.agh.edu.pl/~mjguzik/linux_sockaddr_un.patch
?

He has a AF_INET and a AF_LOCAL part in his patch. I haven't reviewed
it for correctness (emulation-sense), but maybe it's something to look
at and maybe to add.

Bye,
Alexander.

-- 
http://www.Leidinger.net    Alexander @ Leidinger.net: PGP ID = B0063FE7
http://www.FreeBSD.org       netchild @ FreeBSD.org  : PGP ID = 72077137


More information about the freebsd-emulation mailing list