SOURCES (LINUX_2_6_20): pax-linux-2.6.20.patch - fix for fs/exec.c

mguevara mguevara at pld-linux.org
Fri Mar 2 01:23:52 CET 2007


Author: mguevara                     Date: Fri Mar  2 00:23:52 2007 GMT
Module: SOURCES                       Tag: LINUX_2_6_20
---- Log message:
- fix for fs/exec.c

---- Files affected:
SOURCES:
   pax-linux-2.6.20.patch (1.1.2.3 -> 1.1.2.4) 

---- Diffs:

================================================================
Index: SOURCES/pax-linux-2.6.20.patch
diff -u SOURCES/pax-linux-2.6.20.patch:1.1.2.3 SOURCES/pax-linux-2.6.20.patch:1.1.2.4
--- SOURCES/pax-linux-2.6.20.patch:1.1.2.3	Fri Mar  2 01:18:30 2007
+++ SOURCES/pax-linux-2.6.20.patch	Fri Mar  2 01:23:46 2007
@@ -11761,9 +11761,9 @@
 --- linux-2.6.20.1/fs/exec.c	2007-02-04 19:44:54.000000000 +0100
 +++ linux-2.6.20.1-pax/fs/exec.c	2007-02-08 22:47:56.000000000 +0100
 @@ -50,6 +50,7 @@
- #include <linux/tsacct_kern.h>
  #include <linux/cn_proc.h>
  #include <linux/audit.h>
+ #include <linux/vs_memory.h>
 +#include <linux/random.h>
  
  #include <asm/uaccess.h>
@@ -11850,7 +11850,7 @@
  
  	down_write(&mm->mmap_sem);
  	{
-@@ -431,13 +469,50 @@ int setup_arg_pages(struct linux_binprm 
+@@ -431,14 +469,51 @@ int setup_arg_pages(struct linux_binprm 
  		else
  			mpnt->vm_flags = VM_STACK_FLAGS;
  		mpnt->vm_flags |= mm->def_flags;
@@ -11874,7 +11874,8 @@
 +
  			return ret;
  		}
- 		mm->stack_vm = mm->total_vm = vma_pages(mpnt);
+ 		vx_vmpages_sub(mm, mm->total_vm - vma_pages(mpnt));
+ 		mm->stack_vm = mm->total_vm;
 +
 +#ifdef CONFIG_PAX_SEGMEXEC
 +		if (mpnt_m) {
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SOURCES/pax-linux-2.6.20.patch?r1=1.1.2.3&r2=1.1.2.4&f=u



More information about the pld-cvs-commit mailing list