From owner-freebsd-emulation@FreeBSD.ORG Sat Oct 1 20:44:07 2011 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CB805106566B; Sat, 1 Oct 2011 20:44:07 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from mail.ebusiness-leidinger.de (mail.ebusiness-leidinger.de [217.11.53.44]) by mx1.freebsd.org (Postfix) with ESMTP id 873D88FC08; Sat, 1 Oct 2011 20:44:07 +0000 (UTC) Received: from outgoing.leidinger.net (p4FC46F8B.dip.t-dialin.net [79.196.111.139]) by mail.ebusiness-leidinger.de (Postfix) with ESMTPSA id 8FC95844016; Sat, 1 Oct 2011 22:28:33 +0200 (CEST) Received: from unknown (IO.Leidinger.net [192.168.1.12]) by outgoing.leidinger.net (Postfix) with ESMTP id D0F1E15FE; Sat, 1 Oct 2011 22:28:30 +0200 (CEST) Date: Sat, 1 Oct 2011 22:28:31 +0200 From: Alexander Leidinger To: Jung-uk Kim Message-ID: <20111001222831.00003cdc@unknown> In-Reply-To: <201109301902.44281.jkim@FreeBSD.org> References: <4E857719.7060306@freebsd.org> <201109301803.01010.jkim@FreeBSD.org> <201109301902.44281.jkim@FreeBSD.org> X-Mailer: Claws Mail 3.7.10cvs7 (GTK+ 2.16.6; i586-pc-mingw32msvc) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-EBL-MailScanner-Information: Please contact the ISP for more information X-EBL-MailScanner-ID: 8FC95844016.AFFF5 X-EBL-MailScanner: Found to be clean X-EBL-MailScanner-SpamCheck: not spam, spamhaus-ZEN, SpamAssassin (not cached, score=-1, required 6, autolearn=disabled, ALL_TRUSTED -1.00) X-EBL-MailScanner-From: alexander@leidinger.net X-EBL-MailScanner-Watermark: 1318105715.54804@UJJ+zxITNeUSHWmXI/jsbQ X-EBL-Spam-Status: No Cc: freebsd-emulation@FreeBSD.org Subject: Re: HEADS UP: breakage with linux emulation + SA-11:05.unix X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Oct 2011 20:44:07 -0000 On Fri, 30 Sep 2011 19:02:41 -0400 Jung-uk Kim 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