From owner-freebsd-emulation@FreeBSD.ORG Mon Sep 8 19:38:50 2008 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 896BF1065672 for ; Mon, 8 Sep 2008 19:38:50 +0000 (UTC) (envelope-from mita@ee.t.u-tokyo.ac.jp) Received: from mx.ee.t.u-tokyo.ac.jp (bell.fi.k.u-tokyo.ac.jp [157.82.13.244]) by mx1.freebsd.org (Postfix) with ESMTP id 59D6B8FC12 for ; Mon, 8 Sep 2008 19:38:50 +0000 (UTC) (envelope-from mita@ee.t.u-tokyo.ac.jp) Received: from micro.if.t.u-tokyo.ac.jp (bell.ee.t.u-tokyo.ac.jp [157.82.13.244]) by mx.ee.t.u-tokyo.ac.jp (Postfix) with ESMTP id 80CA75798F; Tue, 9 Sep 2008 04:38:47 +0900 (JST) Date: Mon, 08 Sep 2008 21:38:16 +0200 Message-ID: <7o4p4q4edz.wl%mita@ee.t.u-tokyo.ac.jp> From: MITA Yoshio To: Chagin Dmitry , freebsd-emulation@freebsd.org In-Reply-To: <20080907211228.GA51816@dchagin.dialup.corbina.ru> References: <200809072030.m87KU44I064646@freefall.freebsd.org> <20080907211228.GA51816@dchagin.dialup.corbina.ru> User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (=?ISO-8859-4?Q?Shij=F2?=) APEL/10.7 Emacs/22.2 (i386-pc-freebsd) MULE/5.0 (SAKAKI) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Cc: Subject: Re: kern/117010: [linux] linux_getdents() get something like buffer overflow or else 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: Mon, 08 Sep 2008 19:38:50 -0000 Hello, > Please, try a patch bellow: > > diff --git a/src/sys/compat/linux/linux_file.c b/src/sys/compat/linux/linux_file.c > index 303bc3f..413e597 100644 > --- a/src/sys/compat/linux/linux_file.c > +++ b/src/sys/compat/linux/linux_file.c [Snip] >Roman, I think that this patch can be commited (if testing passes :)) >thnx! Yes, this works also nicely! Tested both on multi-core machine (Core2Duo 6550 2.33GHz) and single-core notebook (Pentium M 1.30GHz) under 7.0-RELEASE(-p4) >-- >Have fun! chd Thank you very much! --- MITA Yoshio