packages (GRSECURITY_RAW): kernel/kernel-grsec_full.patch http://www.grsecu...

arekm arekm at pld-linux.org
Tue May 3 19:25:11 CEST 2011


Author: arekm                        Date: Tue May  3 17:25:11 2011 GMT
Module: packages                      Tag: GRSECURITY_RAW
---- Log message:
http://www.grsecurity.net/~spender/grsecurity-2.2.2-2.6.38.4-201105021909.patch

---- Files affected:
packages/kernel:
   kernel-grsec_full.patch (1.3.2.65 -> 1.3.2.66) 

---- Diffs:

================================================================
Index: packages/kernel/kernel-grsec_full.patch
diff -u packages/kernel/kernel-grsec_full.patch:1.3.2.65 packages/kernel/kernel-grsec_full.patch:1.3.2.66
--- packages/kernel/kernel-grsec_full.patch:1.3.2.65	Sat Apr 23 10:52:25 2011
+++ packages/kernel/kernel-grsec_full.patch	Tue May  3 19:24:47 2011
@@ -1,6 +1,6 @@
 diff -urNp linux-2.6.38.4/arch/alpha/include/asm/dma-mapping.h linux-2.6.38.4/arch/alpha/include/asm/dma-mapping.h
 --- linux-2.6.38.4/arch/alpha/include/asm/dma-mapping.h	2011-03-14 21:20:32.000000000 -0400
-+++ linux-2.6.38.4/arch/alpha/include/asm/dma-mapping.h	2011-04-17 15:57:32.000000000 -0400
++++ linux-2.6.38.4/arch/alpha/include/asm/dma-mapping.h	2011-04-28 19:34:14.000000000 -0400
 @@ -3,9 +3,9 @@
  
  #include <linux/dma-attrs.h>
@@ -15,7 +15,7 @@
  }
 diff -urNp linux-2.6.38.4/arch/alpha/include/asm/elf.h linux-2.6.38.4/arch/alpha/include/asm/elf.h
 --- linux-2.6.38.4/arch/alpha/include/asm/elf.h	2011-03-14 21:20:32.000000000 -0400
-+++ linux-2.6.38.4/arch/alpha/include/asm/elf.h	2011-04-17 15:57:32.000000000 -0400
++++ linux-2.6.38.4/arch/alpha/include/asm/elf.h	2011-04-28 19:34:14.000000000 -0400
 @@ -90,6 +90,13 @@ typedef elf_fpreg_t elf_fpregset_t[ELF_N
  
  #define ELF_ET_DYN_BASE		(TASK_UNMAPPED_BASE + 0x1000000)
@@ -32,7 +32,7 @@
     linker to call DT_FINI functions for shared libraries that have
 diff -urNp linux-2.6.38.4/arch/alpha/include/asm/pgtable.h linux-2.6.38.4/arch/alpha/include/asm/pgtable.h
 --- linux-2.6.38.4/arch/alpha/include/asm/pgtable.h	2011-03-14 21:20:32.000000000 -0400
-+++ linux-2.6.38.4/arch/alpha/include/asm/pgtable.h	2011-04-17 15:57:32.000000000 -0400
++++ linux-2.6.38.4/arch/alpha/include/asm/pgtable.h	2011-04-28 19:34:14.000000000 -0400
 @@ -101,6 +101,17 @@ struct vm_area_struct;
  #define PAGE_SHARED	__pgprot(_PAGE_VALID | __ACCESS_BITS)
  #define PAGE_COPY	__pgprot(_PAGE_VALID | __ACCESS_BITS | _PAGE_FOW)
@@ -53,7 +53,7 @@
  #define _PAGE_NORMAL(x) __pgprot(_PAGE_VALID | __ACCESS_BITS | (x))
 diff -urNp linux-2.6.38.4/arch/alpha/kernel/module.c linux-2.6.38.4/arch/alpha/kernel/module.c
 --- linux-2.6.38.4/arch/alpha/kernel/module.c	2011-03-14 21:20:32.000000000 -0400
-+++ linux-2.6.38.4/arch/alpha/kernel/module.c	2011-04-17 15:57:32.000000000 -0400
++++ linux-2.6.38.4/arch/alpha/kernel/module.c	2011-04-28 19:34:14.000000000 -0400
 @@ -182,7 +182,7 @@ apply_relocate_add(Elf64_Shdr *sechdrs, 
  
  	/* The small sections were sorted to the end of the segment.
@@ -65,7 +65,7 @@
  	for (i = 0; i < n; i++) {
 diff -urNp linux-2.6.38.4/arch/alpha/kernel/osf_sys.c linux-2.6.38.4/arch/alpha/kernel/osf_sys.c
 --- linux-2.6.38.4/arch/alpha/kernel/osf_sys.c	2011-03-14 21:20:32.000000000 -0400
-+++ linux-2.6.38.4/arch/alpha/kernel/osf_sys.c	2011-04-17 15:57:32.000000000 -0400
++++ linux-2.6.38.4/arch/alpha/kernel/osf_sys.c	2011-04-28 19:34:14.000000000 -0400
 @@ -1162,7 +1162,7 @@ arch_get_unmapped_area_1(unsigned long a
  		/* At this point:  (!vma || addr < vma->vm_end). */
  		if (limit - len < addr)
@@ -99,7 +99,7 @@
  
 diff -urNp linux-2.6.38.4/arch/alpha/kernel/pci_iommu.c linux-2.6.38.4/arch/alpha/kernel/pci_iommu.c
 --- linux-2.6.38.4/arch/alpha/kernel/pci_iommu.c	2011-03-14 21:20:32.000000000 -0400
-+++ linux-2.6.38.4/arch/alpha/kernel/pci_iommu.c	2011-04-17 15:57:32.000000000 -0400
++++ linux-2.6.38.4/arch/alpha/kernel/pci_iommu.c	2011-04-28 19:34:14.000000000 -0400
 @@ -950,7 +950,7 @@ static int alpha_pci_set_mask(struct dev
  	return 0;
  }
@@ -118,7 +118,7 @@
  EXPORT_SYMBOL(dma_ops);
 diff -urNp linux-2.6.38.4/arch/alpha/kernel/pci-noop.c linux-2.6.38.4/arch/alpha/kernel/pci-noop.c
 --- linux-2.6.38.4/arch/alpha/kernel/pci-noop.c	2011-03-14 21:20:32.000000000 -0400
-+++ linux-2.6.38.4/arch/alpha/kernel/pci-noop.c	2011-04-17 15:57:32.000000000 -0400
++++ linux-2.6.38.4/arch/alpha/kernel/pci-noop.c	2011-04-28 19:34:14.000000000 -0400
 @@ -173,7 +173,7 @@ static int alpha_noop_set_mask(struct de
  	return 0;
  }
@@ -139,7 +139,7 @@
  void __iomem *pci_iomap(struct pci_dev *dev, int bar, unsigned long maxlen)
 diff -urNp linux-2.6.38.4/arch/alpha/mm/fault.c linux-2.6.38.4/arch/alpha/mm/fault.c
 --- linux-2.6.38.4/arch/alpha/mm/fault.c	2011-03-14 21:20:32.000000000 -0400
-+++ linux-2.6.38.4/arch/alpha/mm/fault.c	2011-04-17 15:57:32.000000000 -0400
++++ linux-2.6.38.4/arch/alpha/mm/fault.c	2011-04-28 19:34:14.000000000 -0400
 @@ -54,6 +54,124 @@ __load_new_mm_context(struct mm_struct *
  	__reload_thread(pcb);
  }
@@ -298,7 +298,7 @@
  		if (!(vma->vm_flags & (VM_READ | VM_WRITE)))
 diff -urNp linux-2.6.38.4/arch/arm/include/asm/elf.h linux-2.6.38.4/arch/arm/include/asm/elf.h
 --- linux-2.6.38.4/arch/arm/include/asm/elf.h	2011-03-14 21:20:32.000000000 -0400
-+++ linux-2.6.38.4/arch/arm/include/asm/elf.h	2011-04-17 15:57:32.000000000 -0400
++++ linux-2.6.38.4/arch/arm/include/asm/elf.h	2011-04-28 19:34:14.000000000 -0400
 @@ -115,7 +115,14 @@ int dump_task_regs(struct task_struct *t
     the loader.  We need to make sure that it is out of the way of the program
     that it will "exec", and that there is sufficient room for the brk.  */
@@ -328,7 +328,7 @@
  #define ARCH_HAS_SETUP_ADDITIONAL_PAGES
 diff -urNp linux-2.6.38.4/arch/arm/include/asm/kmap_types.h linux-2.6.38.4/arch/arm/include/asm/kmap_types.h
 --- linux-2.6.38.4/arch/arm/include/asm/kmap_types.h	2011-03-14 21:20:32.000000000 -0400
-+++ linux-2.6.38.4/arch/arm/include/asm/kmap_types.h	2011-04-17 15:57:32.000000000 -0400
++++ linux-2.6.38.4/arch/arm/include/asm/kmap_types.h	2011-04-28 19:34:14.000000000 -0400
 @@ -21,6 +21,7 @@ enum km_type {
  	KM_L1_CACHE,
  	KM_L2_CACHE,
@@ -339,7 +339,7 @@
  
 diff -urNp linux-2.6.38.4/arch/arm/include/asm/uaccess.h linux-2.6.38.4/arch/arm/include/asm/uaccess.h
 --- linux-2.6.38.4/arch/arm/include/asm/uaccess.h	2011-03-14 21:20:32.000000000 -0400
-+++ linux-2.6.38.4/arch/arm/include/asm/uaccess.h	2011-04-17 15:57:32.000000000 -0400
++++ linux-2.6.38.4/arch/arm/include/asm/uaccess.h	2011-04-28 19:34:14.000000000 -0400
 @@ -403,6 +403,9 @@ extern unsigned long __must_check __strn
  
  static inline unsigned long __must_check copy_from_user(void *to, const void __user *from, unsigned long n)
@@ -362,7 +362,7 @@
  	return n;
 diff -urNp linux-2.6.38.4/arch/arm/kernel/kgdb.c linux-2.6.38.4/arch/arm/kernel/kgdb.c
 --- linux-2.6.38.4/arch/arm/kernel/kgdb.c	2011-03-14 21:20:32.000000000 -0400
-+++ linux-2.6.38.4/arch/arm/kernel/kgdb.c	2011-04-17 15:57:32.000000000 -0400
++++ linux-2.6.38.4/arch/arm/kernel/kgdb.c	2011-04-28 19:34:14.000000000 -0400
 @@ -246,7 +246,7 @@ void kgdb_arch_exit(void)
   * and we handle the normal undef case within the do_undefinstr
   * handler.
@@ -374,7 +374,7 @@
  #else /* ! __ARMEB__ */
 diff -urNp linux-2.6.38.4/arch/arm/kernel/process.c linux-2.6.38.4/arch/arm/kernel/process.c
 --- linux-2.6.38.4/arch/arm/kernel/process.c	2011-03-14 21:20:32.000000000 -0400
-+++ linux-2.6.38.4/arch/arm/kernel/process.c	2011-04-17 15:57:32.000000000 -0400
++++ linux-2.6.38.4/arch/arm/kernel/process.c	2011-04-28 19:34:14.000000000 -0400
 @@ -28,7 +28,6 @@
  #include <linux/tick.h>
  #include <linux/utsname.h>
@@ -398,7 +398,7 @@
   * The vectors page is always readable from user space for the
 diff -urNp linux-2.6.38.4/arch/arm/mach-msm/last_radio_log.c linux-2.6.38.4/arch/arm/mach-msm/last_radio_log.c
 --- linux-2.6.38.4/arch/arm/mach-msm/last_radio_log.c	2011-03-14 21:20:32.000000000 -0400
-+++ linux-2.6.38.4/arch/arm/mach-msm/last_radio_log.c	2011-04-17 15:57:32.000000000 -0400
++++ linux-2.6.38.4/arch/arm/mach-msm/last_radio_log.c	2011-04-28 19:34:14.000000000 -0400
 @@ -47,7 +47,7 @@ static ssize_t last_radio_log_read(struc
  	return count;
  }
@@ -410,7 +410,7 @@
  };
 diff -urNp linux-2.6.38.4/arch/arm/mach-ux500/mbox-db5500.c linux-2.6.38.4/arch/arm/mach-ux500/mbox-db5500.c
 --- linux-2.6.38.4/arch/arm/mach-ux500/mbox-db5500.c	2011-03-14 21:20:32.000000000 -0400
-+++ linux-2.6.38.4/arch/arm/mach-ux500/mbox-db5500.c	2011-04-17 15:57:32.000000000 -0400
++++ linux-2.6.38.4/arch/arm/mach-ux500/mbox-db5500.c	2011-04-28 19:34:14.000000000 -0400
 @@ -168,7 +168,7 @@ static ssize_t mbox_read_fifo(struct dev
  	return sprintf(buf, "0x%X\n", mbox_value);
  }
@@ -422,7 +422,7 @@
  {
 diff -urNp linux-2.6.38.4/arch/arm/mm/fault.c linux-2.6.38.4/arch/arm/mm/fault.c
 --- linux-2.6.38.4/arch/arm/mm/fault.c	2011-03-14 21:20:32.000000000 -0400
-+++ linux-2.6.38.4/arch/arm/mm/fault.c	2011-04-17 15:57:32.000000000 -0400
++++ linux-2.6.38.4/arch/arm/mm/fault.c	2011-04-28 19:34:14.000000000 -0400
 @@ -167,6 +167,13 @@ __do_user_fault(struct task_struct *tsk,
  	}
  #endif
@@ -473,7 +473,7 @@
   *
 diff -urNp linux-2.6.38.4/arch/arm/mm/mmap.c linux-2.6.38.4/arch/arm/mm/mmap.c
 --- linux-2.6.38.4/arch/arm/mm/mmap.c	2011-03-14 21:20:32.000000000 -0400
-+++ linux-2.6.38.4/arch/arm/mm/mmap.c	2011-04-17 15:57:32.000000000 -0400
++++ linux-2.6.38.4/arch/arm/mm/mmap.c	2011-04-28 19:34:14.000000000 -0400
 @@ -64,6 +64,10 @@ arch_get_unmapped_area(struct file *filp
  	if (len > TASK_SIZE)
  		return -ENOMEM;
@@ -525,7 +525,7 @@
  			 */
 diff -urNp linux-2.6.38.4/arch/avr32/include/asm/elf.h linux-2.6.38.4/arch/avr32/include/asm/elf.h
 --- linux-2.6.38.4/arch/avr32/include/asm/elf.h	2011-03-14 21:20:32.000000000 -0400
-+++ linux-2.6.38.4/arch/avr32/include/asm/elf.h	2011-04-17 15:57:32.000000000 -0400
++++ linux-2.6.38.4/arch/avr32/include/asm/elf.h	2011-04-28 19:34:14.000000000 -0400
 @@ -84,8 +84,14 @@ typedef struct user_fpu_struct elf_fpreg
     the loader.  We need to make sure that it is out of the way of the program
     that it will "exec", and that there is sufficient room for the brk.  */
@@ -544,7 +544,7 @@
     instruction set this CPU supports.  This could be done in user space,
 diff -urNp linux-2.6.38.4/arch/avr32/include/asm/kmap_types.h linux-2.6.38.4/arch/avr32/include/asm/kmap_types.h
 --- linux-2.6.38.4/arch/avr32/include/asm/kmap_types.h	2011-03-14 21:20:32.000000000 -0400
-+++ linux-2.6.38.4/arch/avr32/include/asm/kmap_types.h	2011-04-17 15:57:32.000000000 -0400
++++ linux-2.6.38.4/arch/avr32/include/asm/kmap_types.h	2011-04-28 19:34:14.000000000 -0400
 @@ -22,7 +22,8 @@ D(10)	KM_IRQ0,
  D(11)	KM_IRQ1,
  D(12)	KM_SOFTIRQ0,
@@ -557,7 +557,7 @@
  #undef D
 diff -urNp linux-2.6.38.4/arch/avr32/mm/fault.c linux-2.6.38.4/arch/avr32/mm/fault.c
 --- linux-2.6.38.4/arch/avr32/mm/fault.c	2011-03-14 21:20:32.000000000 -0400
-+++ linux-2.6.38.4/arch/avr32/mm/fault.c	2011-04-17 15:57:32.000000000 -0400
++++ linux-2.6.38.4/arch/avr32/mm/fault.c	2011-04-28 19:34:14.000000000 -0400
 @@ -41,6 +41,23 @@ static inline int notify_page_fault(stru
  
  int exception_trace = 1;
@@ -601,7 +601,7 @@
  			       "sp %08lx ecr %lu\n",
 diff -urNp linux-2.6.38.4/arch/blackfin/kernel/kgdb.c linux-2.6.38.4/arch/blackfin/kernel/kgdb.c
 --- linux-2.6.38.4/arch/blackfin/kernel/kgdb.c	2011-03-14 21:20:32.000000000 -0400
-+++ linux-2.6.38.4/arch/blackfin/kernel/kgdb.c	2011-04-17 15:57:32.000000000 -0400
++++ linux-2.6.38.4/arch/blackfin/kernel/kgdb.c	2011-04-28 19:34:14.000000000 -0400
 @@ -420,7 +420,7 @@ int kgdb_arch_handle_exception(int vecto
  	return -1;		/* this means that we do not want to exit from the handler */
  }
@@ -613,7 +613,7 @@
  	.flags = KGDB_HW_BREAKPOINT|KGDB_THR_PROC_SWAP,
 diff -urNp linux-2.6.38.4/arch/blackfin/mm/maccess.c linux-2.6.38.4/arch/blackfin/mm/maccess.c
 --- linux-2.6.38.4/arch/blackfin/mm/maccess.c	2011-03-14 21:20:32.000000000 -0400
-+++ linux-2.6.38.4/arch/blackfin/mm/maccess.c	2011-04-17 15:57:32.000000000 -0400
++++ linux-2.6.38.4/arch/blackfin/mm/maccess.c	2011-04-28 19:34:14.000000000 -0400
 @@ -16,7 +16,7 @@ static int validate_memory_access_addres
  	return bfin_mem_access_type(addr, size);
  }
@@ -634,7 +634,7 @@
  	int mem_type;
 diff -urNp linux-2.6.38.4/arch/frv/include/asm/kmap_types.h linux-2.6.38.4/arch/frv/include/asm/kmap_types.h
 --- linux-2.6.38.4/arch/frv/include/asm/kmap_types.h	2011-03-14 21:20:32.000000000 -0400
-+++ linux-2.6.38.4/arch/frv/include/asm/kmap_types.h	2011-04-17 15:57:32.000000000 -0400
++++ linux-2.6.38.4/arch/frv/include/asm/kmap_types.h	2011-04-28 19:34:14.000000000 -0400
 @@ -23,6 +23,7 @@ enum km_type {
  	KM_IRQ1,
  	KM_SOFTIRQ0,
@@ -645,7 +645,7 @@
  
 diff -urNp linux-2.6.38.4/arch/frv/mm/elf-fdpic.c linux-2.6.38.4/arch/frv/mm/elf-fdpic.c
 --- linux-2.6.38.4/arch/frv/mm/elf-fdpic.c	2011-03-14 21:20:32.000000000 -0400
-+++ linux-2.6.38.4/arch/frv/mm/elf-fdpic.c	2011-04-17 15:57:32.000000000 -0400
++++ linux-2.6.38.4/arch/frv/mm/elf-fdpic.c	2011-04-28 19:34:14.000000000 -0400
 @@ -73,8 +73,7 @@ unsigned long arch_get_unmapped_area(str
  	if (addr) {
  		addr = PAGE_ALIGN(addr);
@@ -676,7 +676,7 @@
  		}
 diff -urNp linux-2.6.38.4/arch/ia64/hp/common/hwsw_iommu.c linux-2.6.38.4/arch/ia64/hp/common/hwsw_iommu.c
 --- linux-2.6.38.4/arch/ia64/hp/common/hwsw_iommu.c	2011-03-14 21:20:32.000000000 -0400
-+++ linux-2.6.38.4/arch/ia64/hp/common/hwsw_iommu.c	2011-04-17 15:57:32.000000000 -0400
++++ linux-2.6.38.4/arch/ia64/hp/common/hwsw_iommu.c	2011-04-28 19:34:14.000000000 -0400
 @@ -17,7 +17,7 @@
  #include <linux/swiotlb.h>
  #include <asm/machvec.h>
@@ -697,7 +697,7 @@
  		return &swiotlb_dma_ops;
 diff -urNp linux-2.6.38.4/arch/ia64/hp/common/sba_iommu.c linux-2.6.38.4/arch/ia64/hp/common/sba_iommu.c
 --- linux-2.6.38.4/arch/ia64/hp/common/sba_iommu.c	2011-03-14 21:20:32.000000000 -0400
-+++ linux-2.6.38.4/arch/ia64/hp/common/sba_iommu.c	2011-04-17 15:57:32.000000000 -0400
++++ linux-2.6.38.4/arch/ia64/hp/common/sba_iommu.c	2011-04-28 19:34:14.000000000 -0400
 @@ -2097,7 +2097,7 @@ static struct acpi_driver acpi_sba_ioc_d
  	},
  };
@@ -718,7 +718,7 @@
  	.map_page		= sba_map_page,
 diff -urNp linux-2.6.38.4/arch/ia64/include/asm/dma-mapping.h linux-2.6.38.4/arch/ia64/include/asm/dma-mapping.h
 --- linux-2.6.38.4/arch/ia64/include/asm/dma-mapping.h	2011-03-14 21:20:32.000000000 -0400
-+++ linux-2.6.38.4/arch/ia64/include/asm/dma-mapping.h	2011-04-17 15:57:32.000000000 -0400
++++ linux-2.6.38.4/arch/ia64/include/asm/dma-mapping.h	2011-04-28 19:34:14.000000000 -0400
 @@ -12,7 +12,7 @@
  
  #define ARCH_HAS_DMA_GET_REQUIRED_MASK
@@ -764,7 +764,7 @@
  
 diff -urNp linux-2.6.38.4/arch/ia64/include/asm/elf.h linux-2.6.38.4/arch/ia64/include/asm/elf.h
 --- linux-2.6.38.4/arch/ia64/include/asm/elf.h	2011-03-14 21:20:32.000000000 -0400
-+++ linux-2.6.38.4/arch/ia64/include/asm/elf.h	2011-04-17 15:57:32.000000000 -0400
++++ linux-2.6.38.4/arch/ia64/include/asm/elf.h	2011-04-28 19:34:14.000000000 -0400
 @@ -42,6 +42,13 @@
   */
  #define ELF_ET_DYN_BASE		(TASK_UNMAPPED_BASE + 0x800000000UL)
@@ -781,7 +781,7 @@
  /* IA-64 relocations: */
 diff -urNp linux-2.6.38.4/arch/ia64/include/asm/machvec.h linux-2.6.38.4/arch/ia64/include/asm/machvec.h
 --- linux-2.6.38.4/arch/ia64/include/asm/machvec.h	2011-03-14 21:20:32.000000000 -0400
-+++ linux-2.6.38.4/arch/ia64/include/asm/machvec.h	2011-04-17 15:57:32.000000000 -0400
++++ linux-2.6.38.4/arch/ia64/include/asm/machvec.h	2011-04-28 19:34:14.000000000 -0400
 @@ -45,7 +45,7 @@ typedef void ia64_mv_kernel_launch_event
  /* DMA-mapping interface: */
  typedef void ia64_mv_dma_init (void);
@@ -802,7 +802,7 @@
   * Define default versions so we can extend machvec for new platforms without having
 diff -urNp linux-2.6.38.4/arch/ia64/include/asm/pgtable.h linux-2.6.38.4/arch/ia64/include/asm/pgtable.h
 --- linux-2.6.38.4/arch/ia64/include/asm/pgtable.h	2011-03-14 21:20:32.000000000 -0400
-+++ linux-2.6.38.4/arch/ia64/include/asm/pgtable.h	2011-04-17 15:57:32.000000000 -0400
++++ linux-2.6.38.4/arch/ia64/include/asm/pgtable.h	2011-04-28 19:34:14.000000000 -0400
 @@ -12,7 +12,7 @@
   *	David Mosberger-Tang <davidm at hpl.hp.com>
   */
@@ -832,7 +832,7 @@
  #define PAGE_KERNELRX	__pgprot(__ACCESS_BITS | _PAGE_PL_0 | _PAGE_AR_RX)
 diff -urNp linux-2.6.38.4/arch/ia64/include/asm/spinlock.h linux-2.6.38.4/arch/ia64/include/asm/spinlock.h
 --- linux-2.6.38.4/arch/ia64/include/asm/spinlock.h	2011-03-14 21:20:32.000000000 -0400
-+++ linux-2.6.38.4/arch/ia64/include/asm/spinlock.h	2011-04-17 15:57:32.000000000 -0400
++++ linux-2.6.38.4/arch/ia64/include/asm/spinlock.h	2011-04-28 19:34:14.000000000 -0400
 @@ -72,7 +72,7 @@ static __always_inline void __ticket_spi
  	unsigned short	*p = (unsigned short *)&lock->lock + 1, tmp;
  
@@ -844,7 +844,7 @@
  static __always_inline void __ticket_spin_unlock_wait(arch_spinlock_t *lock)
 diff -urNp linux-2.6.38.4/arch/ia64/include/asm/uaccess.h linux-2.6.38.4/arch/ia64/include/asm/uaccess.h
 --- linux-2.6.38.4/arch/ia64/include/asm/uaccess.h	2011-03-14 21:20:32.000000000 -0400
-+++ linux-2.6.38.4/arch/ia64/include/asm/uaccess.h	2011-04-17 15:57:32.000000000 -0400
++++ linux-2.6.38.4/arch/ia64/include/asm/uaccess.h	2011-04-28 19:34:14.000000000 -0400
 @@ -257,7 +257,7 @@ __copy_from_user (void *to, const void _
  	const void *__cu_from = (from);							\
  	long __cu_len = (n);								\
@@ -865,7 +865,7 @@
  })
 diff -urNp linux-2.6.38.4/arch/ia64/kernel/dma-mapping.c linux-2.6.38.4/arch/ia64/kernel/dma-mapping.c
 --- linux-2.6.38.4/arch/ia64/kernel/dma-mapping.c	2011-03-14 21:20:32.000000000 -0400
-+++ linux-2.6.38.4/arch/ia64/kernel/dma-mapping.c	2011-04-17 15:57:32.000000000 -0400
++++ linux-2.6.38.4/arch/ia64/kernel/dma-mapping.c	2011-04-28 19:34:14.000000000 -0400
 @@ -3,7 +3,7 @@
  /* Set this to 1 if there is a HW IOMMU in the system */
  int iommu_detected __read_mostly;
@@ -886,7 +886,7 @@
  }
 diff -urNp linux-2.6.38.4/arch/ia64/kernel/module.c linux-2.6.38.4/arch/ia64/kernel/module.c
 --- linux-2.6.38.4/arch/ia64/kernel/module.c	2011-03-14 21:20:32.000000000 -0400
-+++ linux-2.6.38.4/arch/ia64/kernel/module.c	2011-04-17 15:57:32.000000000 -0400
++++ linux-2.6.38.4/arch/ia64/kernel/module.c	2011-04-28 19:34:14.000000000 -0400
 @@ -315,8 +315,7 @@ module_alloc (unsigned long size)
  void
  module_free (struct module *mod, void *module_region)
@@ -977,7 +977,7 @@
  	}
 diff -urNp linux-2.6.38.4/arch/ia64/kernel/pci-dma.c linux-2.6.38.4/arch/ia64/kernel/pci-dma.c
 --- linux-2.6.38.4/arch/ia64/kernel/pci-dma.c	2011-03-14 21:20:32.000000000 -0400
-+++ linux-2.6.38.4/arch/ia64/kernel/pci-dma.c	2011-04-17 15:57:32.000000000 -0400
++++ linux-2.6.38.4/arch/ia64/kernel/pci-dma.c	2011-04-28 19:34:14.000000000 -0400
 @@ -43,7 +43,7 @@ struct device fallback_dev = {
  	.dma_mask = &fallback_dev.coherent_dma_mask,
  };
@@ -989,7 +989,7 @@
  {
 diff -urNp linux-2.6.38.4/arch/ia64/kernel/pci-swiotlb.c linux-2.6.38.4/arch/ia64/kernel/pci-swiotlb.c
 --- linux-2.6.38.4/arch/ia64/kernel/pci-swiotlb.c	2011-03-14 21:20:32.000000000 -0400
-+++ linux-2.6.38.4/arch/ia64/kernel/pci-swiotlb.c	2011-04-17 15:57:32.000000000 -0400
++++ linux-2.6.38.4/arch/ia64/kernel/pci-swiotlb.c	2011-04-28 19:34:14.000000000 -0400
 @@ -22,7 +22,7 @@ static void *ia64_swiotlb_alloc_coherent
  	return swiotlb_alloc_coherent(dev, size, dma_handle, gfp);
  }
@@ -1001,7 +1001,7 @@
  	.map_page = swiotlb_map_page,
 diff -urNp linux-2.6.38.4/arch/ia64/kernel/sys_ia64.c linux-2.6.38.4/arch/ia64/kernel/sys_ia64.c
 --- linux-2.6.38.4/arch/ia64/kernel/sys_ia64.c	2011-03-14 21:20:32.000000000 -0400
-+++ linux-2.6.38.4/arch/ia64/kernel/sys_ia64.c	2011-04-17 15:57:32.000000000 -0400
++++ linux-2.6.38.4/arch/ia64/kernel/sys_ia64.c	2011-04-28 19:34:14.000000000 -0400
 @@ -43,6 +43,13 @@ arch_get_unmapped_area (struct file *fil
  	if (REGION_NUMBER(addr) == RGN_HPAGE)
  		addr = 0;
@@ -1036,7 +1036,7 @@
  			return addr;
 diff -urNp linux-2.6.38.4/arch/ia64/kernel/vmlinux.lds.S linux-2.6.38.4/arch/ia64/kernel/vmlinux.lds.S
 --- linux-2.6.38.4/arch/ia64/kernel/vmlinux.lds.S	2011-03-14 21:20:32.000000000 -0400
-+++ linux-2.6.38.4/arch/ia64/kernel/vmlinux.lds.S	2011-04-17 15:57:32.000000000 -0400
++++ linux-2.6.38.4/arch/ia64/kernel/vmlinux.lds.S	2011-04-28 19:34:14.000000000 -0400
 @@ -199,7 +199,7 @@ SECTIONS {
  	/* Per-cpu data: */
  	. = ALIGN(PERCPU_PAGE_SIZE);
@@ -1048,7 +1048,7 @@
  	 * into percpu page size
 diff -urNp linux-2.6.38.4/arch/ia64/mm/fault.c linux-2.6.38.4/arch/ia64/mm/fault.c
 --- linux-2.6.38.4/arch/ia64/mm/fault.c	2011-03-14 21:20:32.000000000 -0400
-+++ linux-2.6.38.4/arch/ia64/mm/fault.c	2011-04-17 15:57:32.000000000 -0400
++++ linux-2.6.38.4/arch/ia64/mm/fault.c	2011-04-28 19:34:14.000000000 -0400
 @@ -72,6 +72,23 @@ mapped_kernel_page_is_present (unsigned 
  	return pte_present(pte);
  }
@@ -1100,7 +1100,7 @@
  	 * sure we exit gracefully rather than endlessly redo the
 diff -urNp linux-2.6.38.4/arch/ia64/mm/hugetlbpage.c linux-2.6.38.4/arch/ia64/mm/hugetlbpage.c
 --- linux-2.6.38.4/arch/ia64/mm/hugetlbpage.c	2011-03-14 21:20:32.000000000 -0400
-+++ linux-2.6.38.4/arch/ia64/mm/hugetlbpage.c	2011-04-17 15:57:32.000000000 -0400
++++ linux-2.6.38.4/arch/ia64/mm/hugetlbpage.c	2011-04-28 19:34:14.000000000 -0400
 @@ -171,7 +171,7 @@ unsigned long hugetlb_get_unmapped_area(
  		/* At this point:  (!vmm || addr < vmm->vm_end). */
  		if (REGION_OFFSET(addr) + len > RGN_MAP_LIMIT)
@@ -1112,7 +1112,7 @@
  	}
 diff -urNp linux-2.6.38.4/arch/ia64/mm/init.c linux-2.6.38.4/arch/ia64/mm/init.c
 --- linux-2.6.38.4/arch/ia64/mm/init.c	2011-03-14 21:20:32.000000000 -0400
-+++ linux-2.6.38.4/arch/ia64/mm/init.c	2011-04-17 15:57:32.000000000 -0400
++++ linux-2.6.38.4/arch/ia64/mm/init.c	2011-04-28 19:34:14.000000000 -0400
 @@ -122,6 +122,19 @@ ia64_init_addr_space (void)
  		vma->vm_start = current->thread.rbs_bot & PAGE_MASK;
  		vma->vm_end = vma->vm_start + PAGE_SIZE;
@@ -1135,7 +1135,7 @@
  		if (insert_vm_struct(current->mm, vma)) {
 diff -urNp linux-2.6.38.4/arch/ia64/sn/pci/pci_dma.c linux-2.6.38.4/arch/ia64/sn/pci/pci_dma.c
 --- linux-2.6.38.4/arch/ia64/sn/pci/pci_dma.c	2011-03-14 21:20:32.000000000 -0400
-+++ linux-2.6.38.4/arch/ia64/sn/pci/pci_dma.c	2011-04-17 15:57:32.000000000 -0400
++++ linux-2.6.38.4/arch/ia64/sn/pci/pci_dma.c	2011-04-28 19:34:14.000000000 -0400
 @@ -465,7 +465,7 @@ int sn_pci_legacy_write(struct pci_bus *
  	return ret;
  }
@@ -1147,7 +1147,7 @@
  	.map_page		= sn_dma_map_page,
 diff -urNp linux-2.6.38.4/arch/m32r/lib/usercopy.c linux-2.6.38.4/arch/m32r/lib/usercopy.c
 --- linux-2.6.38.4/arch/m32r/lib/usercopy.c	2011-03-14 21:20:32.000000000 -0400
-+++ linux-2.6.38.4/arch/m32r/lib/usercopy.c	2011-04-17 15:57:32.000000000 -0400
++++ linux-2.6.38.4/arch/m32r/lib/usercopy.c	2011-04-28 19:34:14.000000000 -0400
 @@ -14,6 +14,9 @@
  unsigned long
  __generic_copy_to_user(void __user *to, const void *from, unsigned long n)
@@ -1170,7 +1170,7 @@
  		__copy_user_zeroing(to,from,n);
 diff -urNp linux-2.6.38.4/arch/microblaze/include/asm/device.h linux-2.6.38.4/arch/microblaze/include/asm/device.h
 --- linux-2.6.38.4/arch/microblaze/include/asm/device.h	2011-03-14 21:20:32.000000000 -0400
-+++ linux-2.6.38.4/arch/microblaze/include/asm/device.h	2011-04-17 15:57:32.000000000 -0400
++++ linux-2.6.38.4/arch/microblaze/include/asm/device.h	2011-04-28 19:34:14.000000000 -0400
 @@ -13,7 +13,7 @@ struct device_node;
  
  struct dev_archdata {
@@ -1182,7 +1182,7 @@
  
 diff -urNp linux-2.6.38.4/arch/microblaze/include/asm/dma-mapping.h linux-2.6.38.4/arch/microblaze/include/asm/dma-mapping.h
 --- linux-2.6.38.4/arch/microblaze/include/asm/dma-mapping.h	2011-03-14 21:20:32.000000000 -0400
-+++ linux-2.6.38.4/arch/microblaze/include/asm/dma-mapping.h	2011-04-17 15:57:32.000000000 -0400
++++ linux-2.6.38.4/arch/microblaze/include/asm/dma-mapping.h	2011-04-28 19:34:14.000000000 -0400
 @@ -43,14 +43,14 @@ static inline unsigned long device_to_ma
  	return 0xfffffffful;
  }
@@ -1256,7 +1256,7 @@
  	debug_dma_free_coherent(dev, size, cpu_addr, dma_handle);
 diff -urNp linux-2.6.38.4/arch/microblaze/include/asm/pci.h linux-2.6.38.4/arch/microblaze/include/asm/pci.h
 --- linux-2.6.38.4/arch/microblaze/include/asm/pci.h	2011-03-14 21:20:32.000000000 -0400
-+++ linux-2.6.38.4/arch/microblaze/include/asm/pci.h	2011-04-17 15:57:32.000000000 -0400
++++ linux-2.6.38.4/arch/microblaze/include/asm/pci.h	2011-04-28 19:34:14.000000000 -0400
 @@ -54,8 +54,8 @@ static inline void pcibios_penalize_isa_
  }
  
@@ -1270,7 +1270,7 @@
  #define get_pci_dma_ops()	NULL
 diff -urNp linux-2.6.38.4/arch/microblaze/kernel/dma.c linux-2.6.38.4/arch/microblaze/kernel/dma.c
 --- linux-2.6.38.4/arch/microblaze/kernel/dma.c	2011-03-14 21:20:32.000000000 -0400
-+++ linux-2.6.38.4/arch/microblaze/kernel/dma.c	2011-04-17 15:57:32.000000000 -0400
++++ linux-2.6.38.4/arch/microblaze/kernel/dma.c	2011-04-28 19:34:14.000000000 -0400
 @@ -133,7 +133,7 @@ static inline void dma_direct_unmap_page
  	__dma_sync_page(dma_address, 0 , size, direction);
  }
@@ -1282,7 +1282,7 @@
  	.map_sg		= dma_direct_map_sg,
 diff -urNp linux-2.6.38.4/arch/microblaze/kernel/kgdb.c linux-2.6.38.4/arch/microblaze/kernel/kgdb.c
 --- linux-2.6.38.4/arch/microblaze/kernel/kgdb.c	2011-03-14 21:20:32.000000000 -0400
-+++ linux-2.6.38.4/arch/microblaze/kernel/kgdb.c	2011-04-17 15:57:32.000000000 -0400
++++ linux-2.6.38.4/arch/microblaze/kernel/kgdb.c	2011-04-28 19:34:14.000000000 -0400
 @@ -141,10 +141,11 @@ void kgdb_arch_exit(void)
  /*
   * Global data
@@ -1298,7 +1298,7 @@
  };
 diff -urNp linux-2.6.38.4/arch/microblaze/pci/pci-common.c linux-2.6.38.4/arch/microblaze/pci/pci-common.c
 --- linux-2.6.38.4/arch/microblaze/pci/pci-common.c	2011-03-14 21:20:32.000000000 -0400
-+++ linux-2.6.38.4/arch/microblaze/pci/pci-common.c	2011-04-17 15:57:32.000000000 -0400
++++ linux-2.6.38.4/arch/microblaze/pci/pci-common.c	2011-04-28 19:34:14.000000000 -0400
 @@ -47,14 +47,14 @@ resource_size_t isa_mem_base;
  /* Default PCI flags is 0 on ppc32, modified at boot on ppc64 */
  unsigned int pci_flags;
@@ -1319,7 +1319,7 @@
  }
 diff -urNp linux-2.6.38.4/arch/mips/cavium-octeon/dma-octeon.c linux-2.6.38.4/arch/mips/cavium-octeon/dma-octeon.c
 --- linux-2.6.38.4/arch/mips/cavium-octeon/dma-octeon.c	2011-03-14 21:20:32.000000000 -0400
-+++ linux-2.6.38.4/arch/mips/cavium-octeon/dma-octeon.c	2011-04-17 15:57:32.000000000 -0400
++++ linux-2.6.38.4/arch/mips/cavium-octeon/dma-octeon.c	2011-04-28 19:34:14.000000000 -0400
 @@ -202,7 +202,7 @@ static phys_addr_t octeon_unity_dma_to_p
  }
  
@@ -1340,7 +1340,7 @@
  {
 diff -urNp linux-2.6.38.4/arch/mips/include/asm/device.h linux-2.6.38.4/arch/mips/include/asm/device.h
 --- linux-2.6.38.4/arch/mips/include/asm/device.h	2011-03-14 21:20:32.000000000 -0400
-+++ linux-2.6.38.4/arch/mips/include/asm/device.h	2011-04-17 15:57:32.000000000 -0400
++++ linux-2.6.38.4/arch/mips/include/asm/device.h	2011-04-28 19:34:14.000000000 -0400
 @@ -10,7 +10,7 @@ struct dma_map_ops;
  
  struct dev_archdata {
@@ -1352,7 +1352,7 @@
  struct pdev_archdata {
 diff -urNp linux-2.6.38.4/arch/mips/include/asm/dma-mapping.h linux-2.6.38.4/arch/mips/include/asm/dma-mapping.h
 --- linux-2.6.38.4/arch/mips/include/asm/dma-mapping.h	2011-03-14 21:20:32.000000000 -0400
-+++ linux-2.6.38.4/arch/mips/include/asm/dma-mapping.h	2011-04-17 15:57:32.000000000 -0400
++++ linux-2.6.38.4/arch/mips/include/asm/dma-mapping.h	2011-04-28 19:34:14.000000000 -0400
 @@ -7,9 +7,9 @@
  
  #include <dma-coherence.h>
@@ -1401,16 +1401,16 @@
  
 diff -urNp linux-2.6.38.4/arch/mips/include/asm/elf.h linux-2.6.38.4/arch/mips/include/asm/elf.h
 --- linux-2.6.38.4/arch/mips/include/asm/elf.h	2011-03-14 21:20:32.000000000 -0400
-+++ linux-2.6.38.4/arch/mips/include/asm/elf.h	2011-04-17 15:57:32.000000000 -0400
++++ linux-2.6.38.4/arch/mips/include/asm/elf.h	2011-04-30 19:58:48.000000000 -0400
 @@ -372,13 +372,16 @@ extern const char *__elf_platform;
  #define ELF_ET_DYN_BASE         (TASK_SIZE / 3 * 2)
  #endif
  
 +#ifdef CONFIG_PAX_ASLR
-+#define PAX_ELF_ET_DYN_BASE	(test_thread_flag(TIF_32BIT_ADDR) ? 0x00400000UL : 0x00400000UL)
++#define PAX_ELF_ET_DYN_BASE	(TASK_IS_32BIT_ADDR ? 0x00400000UL : 0x00400000UL)
 +
-+#define PAX_DELTA_MMAP_LEN	(test_thread_flag(TIF_32BIT_ADDR) ? 27-PAGE_SHIFT : 36-PAGE_SHIFT)
-+#define PAX_DELTA_STACK_LEN	(test_thread_flag(TIF_32BIT_ADDR) ? 27-PAGE_SHIFT : 36-PAGE_SHIFT)
++#define PAX_DELTA_MMAP_LEN	(TASK_IS_32BIT_ADDR ? 27-PAGE_SHIFT : 36-PAGE_SHIFT)
++#define PAX_DELTA_STACK_LEN	(TASK_IS_32BIT_ADDR ? 27-PAGE_SHIFT : 36-PAGE_SHIFT)
 +#endif
 +
  #define ARCH_HAS_SETUP_ADDITIONAL_PAGES 1
@@ -1425,7 +1425,7 @@
  #endif /* _ASM_ELF_H */
 diff -urNp linux-2.6.38.4/arch/mips/include/asm/mach-cavium-octeon/dma-coherence.h linux-2.6.38.4/arch/mips/include/asm/mach-cavium-octeon/dma-coherence.h
 --- linux-2.6.38.4/arch/mips/include/asm/mach-cavium-octeon/dma-coherence.h	2011-03-14 21:20:32.000000000 -0400
-+++ linux-2.6.38.4/arch/mips/include/asm/mach-cavium-octeon/dma-coherence.h	2011-04-17 15:57:32.000000000 -0400
++++ linux-2.6.38.4/arch/mips/include/asm/mach-cavium-octeon/dma-coherence.h	2011-04-28 19:34:14.000000000 -0400
 @@ -66,7 +66,7 @@ dma_addr_t phys_to_dma(struct device *de
  phys_addr_t dma_to_phys(struct device *dev, dma_addr_t daddr);
  
@@ -1437,7 +1437,7 @@
  #endif /* __ASM_MACH_CAVIUM_OCTEON_DMA_COHERENCE_H */
 diff -urNp linux-2.6.38.4/arch/mips/include/asm/page.h linux-2.6.38.4/arch/mips/include/asm/page.h
 --- linux-2.6.38.4/arch/mips/include/asm/page.h	2011-03-14 21:20:32.000000000 -0400
-+++ linux-2.6.38.4/arch/mips/include/asm/page.h	2011-04-17 15:57:32.000000000 -0400
++++ linux-2.6.38.4/arch/mips/include/asm/page.h	2011-04-28 19:34:14.000000000 -0400
 @@ -93,7 +93,7 @@ extern void copy_user_highpage(struct pa
    #ifdef CONFIG_CPU_MIPS32
      typedef struct { unsigned long pte_low, pte_high; } pte_t;
@@ -1449,7 +1449,7 @@
       #define pte_val(x)	((x).pte)
 diff -urNp linux-2.6.38.4/arch/mips/include/asm/system.h linux-2.6.38.4/arch/mips/include/asm/system.h
 --- linux-2.6.38.4/arch/mips/include/asm/system.h	2011-03-14 21:20:32.000000000 -0400
-+++ linux-2.6.38.4/arch/mips/include/asm/system.h	2011-04-17 15:57:32.000000000 -0400
++++ linux-2.6.38.4/arch/mips/include/asm/system.h	2011-04-28 19:34:14.000000000 -0400
 @@ -230,6 +230,6 @@ extern void per_cpu_trap_init(void);
   */
  #define __ARCH_WANT_UNLOCKED_CTXSW
@@ -1460,16 +1460,16 @@
  #endif /* _ASM_SYSTEM_H */
 diff -urNp linux-2.6.38.4/arch/mips/kernel/binfmt_elfn32.c linux-2.6.38.4/arch/mips/kernel/binfmt_elfn32.c
 --- linux-2.6.38.4/arch/mips/kernel/binfmt_elfn32.c	2011-03-14 21:20:32.000000000 -0400
-+++ linux-2.6.38.4/arch/mips/kernel/binfmt_elfn32.c	2011-04-17 15:57:32.000000000 -0400
++++ linux-2.6.38.4/arch/mips/kernel/binfmt_elfn32.c	2011-04-30 19:58:48.000000000 -0400
 @@ -50,6 +50,13 @@ typedef elf_fpreg_t elf_fpregset_t[ELF_N
  #undef ELF_ET_DYN_BASE
  #define ELF_ET_DYN_BASE         (TASK32_SIZE / 3 * 2)
  
 +#ifdef CONFIG_PAX_ASLR
-+#define PAX_ELF_ET_DYN_BASE	(test_thread_flag(TIF_32BIT_ADDR) ? 0x00400000UL : 0x00400000UL)
++#define PAX_ELF_ET_DYN_BASE	(TASK_IS_32BIT_ADDR ? 0x00400000UL : 0x00400000UL)
 +
-+#define PAX_DELTA_MMAP_LEN	(test_thread_flag(TIF_32BIT_ADDR) ? 27-PAGE_SHIFT : 36-PAGE_SHIFT)
-+#define PAX_DELTA_STACK_LEN	(test_thread_flag(TIF_32BIT_ADDR) ? 27-PAGE_SHIFT : 36-PAGE_SHIFT)
++#define PAX_DELTA_MMAP_LEN	(TASK_IS_32BIT_ADDR ? 27-PAGE_SHIFT : 36-PAGE_SHIFT)
++#define PAX_DELTA_STACK_LEN	(TASK_IS_32BIT_ADDR ? 27-PAGE_SHIFT : 36-PAGE_SHIFT)
 +#endif
 +
  #include <asm/processor.h>
@@ -1477,16 +1477,16 @@
  #include <linux/elfcore.h>
 diff -urNp linux-2.6.38.4/arch/mips/kernel/binfmt_elfo32.c linux-2.6.38.4/arch/mips/kernel/binfmt_elfo32.c
 --- linux-2.6.38.4/arch/mips/kernel/binfmt_elfo32.c	2011-03-14 21:20:32.000000000 -0400
-+++ linux-2.6.38.4/arch/mips/kernel/binfmt_elfo32.c	2011-04-17 15:57:32.000000000 -0400
++++ linux-2.6.38.4/arch/mips/kernel/binfmt_elfo32.c	2011-04-30 19:58:48.000000000 -0400
 @@ -52,6 +52,13 @@ typedef elf_fpreg_t elf_fpregset_t[ELF_N
  #undef ELF_ET_DYN_BASE
  #define ELF_ET_DYN_BASE         (TASK32_SIZE / 3 * 2)
  
 +#ifdef CONFIG_PAX_ASLR
-+#define PAX_ELF_ET_DYN_BASE	(test_thread_flag(TIF_32BIT_ADDR) ? 0x00400000UL : 0x00400000UL)
++#define PAX_ELF_ET_DYN_BASE	(TASK_IS_32BIT_ADDR ? 0x00400000UL : 0x00400000UL)
 +
-+#define PAX_DELTA_MMAP_LEN	(test_thread_flag(TIF_32BIT_ADDR) ? 27-PAGE_SHIFT : 36-PAGE_SHIFT)
-+#define PAX_DELTA_STACK_LEN	(test_thread_flag(TIF_32BIT_ADDR) ? 27-PAGE_SHIFT : 36-PAGE_SHIFT)
++#define PAX_DELTA_MMAP_LEN	(TASK_IS_32BIT_ADDR ? 27-PAGE_SHIFT : 36-PAGE_SHIFT)
++#define PAX_DELTA_STACK_LEN	(TASK_IS_32BIT_ADDR ? 27-PAGE_SHIFT : 36-PAGE_SHIFT)
 +#endif
 +
  #include <asm/processor.h>
@@ -1494,7 +1494,7 @@
  /*
 diff -urNp linux-2.6.38.4/arch/mips/kernel/kgdb.c linux-2.6.38.4/arch/mips/kernel/kgdb.c
 --- linux-2.6.38.4/arch/mips/kernel/kgdb.c	2011-03-14 21:20:32.000000000 -0400
-+++ linux-2.6.38.4/arch/mips/kernel/kgdb.c	2011-04-17 15:57:32.000000000 -0400
++++ linux-2.6.38.4/arch/mips/kernel/kgdb.c	2011-04-28 19:34:14.000000000 -0400
 @@ -351,7 +351,7 @@ int kgdb_arch_handle_exception(int vecto
  	return -1;
  }
@@ -1506,7 +1506,7 @@
   * We use kgdb_early_setup so that functions we need to call now don't
 diff -urNp linux-2.6.38.4/arch/mips/kernel/process.c linux-2.6.38.4/arch/mips/kernel/process.c
 --- linux-2.6.38.4/arch/mips/kernel/process.c	2011-03-14 21:20:32.000000000 -0400
-+++ linux-2.6.38.4/arch/mips/kernel/process.c	2011-04-17 15:57:32.000000000 -0400
++++ linux-2.6.38.4/arch/mips/kernel/process.c	2011-04-28 19:34:14.000000000 -0400
 @@ -473,15 +473,3 @@ unsigned long get_wchan(struct task_stru
  out:
  	return pc;
@@ -1525,7 +1525,7 @@
 -}
 diff -urNp linux-2.6.38.4/arch/mips/kernel/syscall.c linux-2.6.38.4/arch/mips/kernel/syscall.c
 --- linux-2.6.38.4/arch/mips/kernel/syscall.c	2011-03-14 21:20:32.000000000 -0400
-+++ linux-2.6.38.4/arch/mips/kernel/syscall.c	2011-04-17 15:57:32.000000000 -0400
++++ linux-2.6.38.4/arch/mips/kernel/syscall.c	2011-04-30 19:58:48.000000000 -0400
 @@ -108,14 +108,18 @@ unsigned long arch_get_unmapped_area(str
  	do_color_align = 0;
  	if (filp || (flags & MAP_SHARED))
@@ -1556,10 +1556,24 @@
  			return addr;
  		addr = vmm->vm_end;
  		if (do_color_align)
-@@ -168,19 +172,6 @@ static inline unsigned long brk_rnd(void
- 	return rnd;
+@@ -154,33 +158,6 @@ void arch_pick_mmap_layout(struct mm_str
+ 	mm->unmap_area = arch_unmap_area;
<<Diff was trimmed, longer than 597 lines>>

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/kernel/kernel-grsec_full.patch?r1=1.3.2.65&r2=1.3.2.66&f=u



More information about the pld-cvs-commit mailing list