From owner-freebsd-emulation@FreeBSD.ORG Tue Jun 27 09:11:25 2006 Return-Path: X-Original-To: freebsd-emulation@freebsd.org Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2675316A616 for ; Tue, 27 Jun 2006 09:11:25 +0000 (UTC) (envelope-from xdivac02@stud.fit.vutbr.cz) Received: from eva.fit.vutbr.cz (eva.fit.vutbr.cz [147.229.10.14]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7A62043D46 for ; Tue, 27 Jun 2006 09:11:23 +0000 (GMT) (envelope-from xdivac02@stud.fit.vutbr.cz) Received: from eva.fit.vutbr.cz (localhost [127.0.0.1]) by eva.fit.vutbr.cz (envelope-from xdivac02@eva.fit.vutbr.cz) (8.13.7/8.13.7) with ESMTP id k5R9BDDK023791 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Tue, 27 Jun 2006 11:11:13 +0200 (CEST) Received: (from xdivac02@localhost) by eva.fit.vutbr.cz (8.13.7/8.13.3/Submit) id k5R9BDEr023790; Tue, 27 Jun 2006 11:11:13 +0200 (CEST) Date: Tue, 27 Jun 2006 11:11:13 +0200 From: Divacky Roman To: Dmitry Ganenko Message-ID: <20060627091113.GA23700@stud.fit.vutbr.cz> References: <885310187.20060623143520@apk-inform.com> <20060624110951.GA21539@stud.fit.vutbr.cz> <1269796593.20060626133451@apk-inform.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1269796593.20060626133451@apk-inform.com> User-Agent: Mutt/1.4.2i X-Scanned-By: MIMEDefang 2.54 on 147.229.10.14 Cc: freebsd-emulation@freebsd.org Subject: Re: Installation of Oracle10g Express Edition on FreeBSD 5.4-RELEASE 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: Tue, 27 Jun 2006 09:11:25 -0000 On Mon, Jun 26, 2006 at 01:34:51PM +0300, Dmitry Ganenko wrote: > Saturday, June 24, 2006, 2:09:51 PM, you wrote: > > DR> pls, can you explain how this manifest in the oracle? I agree that this is a > DR> bug but I am not sure why noone noticed this. the fact is that most people use > DR> "cat /proc/x/y" and cat reads 1024 bytes in this case so this doesnt manifest > > Oracle XE does not start without this patch. I see in trace file that oracle > process enumerates all running processes (/compat/linux/proc//cmdline) > with call of read(fd, buf, 8) and read() returns it 7 bytes, and > oracle do it while file descriptors available. After reaching maxfilesperproc, > oracle exit with "single instance violation error". ok, fair enough > DR> Index: pseudofs_vnops.c > DR> =================================================================== > DR> RCS file: /home/ncvs/src/sys/fs/pseudofs/pseudofs_vnops.c,v > DR> retrieving revision 1.59 > DR> diff -u -r1.59 pseudofs_vnops.c > DR> --- pseudofs_vnops.c 22 Feb 2006 18:57:49 -0000 1.59 > DR> +++ pseudofs_vnops.c 24 Jun 2006 11:08:59 -0000 > DR> @@ -515,7 +515,7 @@ > DR> if (uio->uio_offset < 0 || uio->uio_resid < 0 || > DR> (offset = uio->uio_offset) != uio->uio_offset || > DR> (resid = uio->uio_resid) != uio->uio_resid || > DR> - (buflen = offset + resid) < offset || buflen > INT_MAX) { > DR> + (buflen = offset + resid + 1) < offset || buflen > INT_MAX) { > DR> if (proc != NULL) > DR> PRELE(proc); > DR> PFS_RETURN (EINVAL); > > Thanks for correction. I'm from beginning said that may be I'm not > right. :) pls, can you test this one?