From owner-freebsd-stable Sat Jun 30 4:59:57 2001 Delivered-To: freebsd-stable@freebsd.org Received: from dmz.harmonic.co.il (moon.harmonic.co.il [192.116.140.65]) by hub.freebsd.org (Postfix) with ESMTP id 4BBF337B406 for ; Sat, 30 Jun 2001 04:59:53 -0700 (PDT) (envelope-from roman@harmonic.co.il) Received: (from http@localhost) by dmz.harmonic.co.il (8.11.1/8.11.1) id f5UC12H10971; Sat, 30 Jun 2001 15:01:02 +0300 (IDT) (envelope-from roman@harmonic.co.il) To: Mikko Tyolajarvi Subject: Re: Unable to run linux unace Message-ID: <993902462.3b3dbf7ed0796@webmail.harmonic.co.il> Date: Sat, 30 Jun 2001 15:01:02 +0300 (IDT) From: Roman Shterenzon Cc: freebsd-stable@freebsd.org References: <993766542.3b3bac8e564d4@webmail.harmonic.co.il> <993772061.3b3bc21db3df0@webmail.harmonic.co.il> <200106291916.f5TJG3O14126@explorer.rsa.com> In-Reply-To: <200106291916.f5TJG3O14126@explorer.rsa.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: IMP/PHP IMAP webmail program 2.2.5 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Quoting Mikko Tyolajarvi : > In local.freebsd.stable you write: > > >Quoting Roman Shterenzon : > > >> Hello, > >> I wanted to use linux unace from www.winace.com > >> (http://praf.nirvanet.net/winace/linunace203.tgz), > >> but unfortunately it doesn't work. > >> When I used truss on it, I've seen this: > > [...] > > >> linux_mremap(0x28109000,0x61000,0x81000,0x1) ERR#12 'Cannot > allocate > >> memory' > > [...] > > >This is what I get when I run it on remote linux system: > > >mremap(0x40000000, 135168, 266240, MREMAP_MAYMOVE) = 0x40000000 > > [...] > > >It doesn't give me any hints :( > > From a Linux mremap() man page: > > void *mremap(void *old_address, size_t old_size, size_t new_size, > unsigned long flags); > > And from linux_mremap() in the linuxulator (linux_misc.c): > > if (args->new_len > args->old_len) { > p->p_retval[0] = 0; > return ENOMEM; > } > > To me it looks like extending a mmapped region with mremap() isn't > supported. > > $.02, > /Mikko > -- > Mikko > Työläjärvi_______________________________________mikko@rsasecurity.com > RSA Security > Hmm.. Is it possible to completely unmap and then remap this region? And if it is, how? The fd is not known to the mremap handler. :( --Roman Shterenzon, UNIX System Administrator and Consultant [ Xpert UNIX Systems Ltd., Herzlia, Israel. Tel: +972-9-9522361 ] To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message