Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 30 Jun 2001 15:01:02 +0300 (IDT)
From:      Roman Shterenzon <roman@harmonic.co.il>
To:        Mikko Tyolajarvi <mikko@dynas.se>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: Unable to run linux unace
Message-ID:  <993902462.3b3dbf7ed0796@webmail.harmonic.co.il>
In-Reply-To: <200106291916.f5TJG3O14126@explorer.rsa.com>
References:  <993766542.3b3bac8e564d4@webmail.harmonic.co.il> <993772061.3b3bc21db3df0@webmail.harmonic.co.il> <200106291916.f5TJG3O14126@explorer.rsa.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Quoting Mikko Tyolajarvi <mikko@dynas.se>:

> In local.freebsd.stable you write:
> 
> >Quoting Roman Shterenzon <roman@harmonic.co.il>:
> 
> >> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?993902462.3b3dbf7ed0796>