vserver 1.9.5.x5
[linux-2.6.git] / fs / binfmt_elf_fdpic.c
index 745e9b8..1b0c17c 100644 (file)
@@ -299,7 +299,8 @@ static int load_elf_fdpic_binary(struct linux_binprm *bprm, struct pt_regs *regs
        /* do this so that we can load the interpreter, if need be
         * - we will change some of these later
         */
-       current->mm->rss = 0;
+       // current->mm->rss = 0;
+       vx_rsspages_sub(current->mm, current->mm->rss);
 
 #ifdef CONFIG_MMU
        retval = setup_arg_pages(bprm, current->mm->start_stack, executable_stack);