About this list Date view Thread view Subject view Author view Attachment view

From: Herbert Poetzl (herbert_at_13thfloor.at)
Date: Fri 08 Jul 2005 - 18:21:18 BST


On Fri, Jul 08, 2005 at 11:32:03AM +0200, Enrico Scholz wrote:
> enrico.scholz_at_sigma-chemnitz.de (Enrico Scholz) writes:
>
> > | $ diet gcc x.c
> > | $ strace ./a.out
> > | execve("./a.out", ["./a.out"], [/* 41 vars */]) = 0
> > | old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x97f47000
> > | mremap(0x97f47000, 4096, 8192, MREMAP_MAYMOVE) = -1 ENOMEM (Cannot allocate memory)
> > ~~~~~~~~~
>
> Is the
>
> | @@ -351,8 +352,13 @@ unsigned long do_mremap(unsigned long ad
> | ...
> | }
> | - if (!may_expand_vm(current->mm, (new_len - old_len) >> PAGE_SHIFT)) {
> | + if (!may_expand_vm(current->mm, (new_len - old_len) >> PAGE_SHIFT) ||
> | + vx_vmpages_avail(current->mm, (new_len - old_len) >> PAGE_SHIFT)) {
> | ret = -ENOMEM;
>
> hunk really correct, or is there missing a '!' before 'vx_vmpages_avail'?

well, that looks fishy, but a simple ! won't fix it ...
looking into it right now ...

thanks,
Herbert

> Enrico

> _______________________________________________
> Vserver mailing list
> Vserver_at_list.linux-vserver.org
> http://list.linux-vserver.org/mailman/listinfo/vserver

_______________________________________________
Vserver mailing list
Vserver_at_list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


About this list Date view Thread view Subject view Author view Attachment view
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Fri 08 Jul 2005 - 18:21:38 BST by hypermail 2.1.3