packages: kernel/kernel.spec, kernel/kernel-grsec_full.patch - grsec test p...

arekm arekm at pld-linux.org
Fri Mar 25 13:36:21 CET 2011


Author: arekm                        Date: Fri Mar 25 12:36:21 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- grsec test patch

---- Files affected:
packages/kernel:
   kernel.spec (1.895 -> 1.896) , kernel-grsec_full.patch (1.61 -> 1.62) 

---- Diffs:

================================================================
Index: packages/kernel/kernel.spec
diff -u packages/kernel/kernel.spec:1.895 packages/kernel/kernel.spec:1.896
--- packages/kernel/kernel.spec:1.895	Thu Mar 24 13:46:56 2011
+++ packages/kernel/kernel.spec	Fri Mar 25 13:36:14 2011
@@ -289,7 +289,7 @@
 # based on ftp://ftp.leg.uct.ac.za/pub/linux/rip/tmpfs_root-2.6.30.diff.gz
 Patch7000:	kernel-inittmpfs.patch
 
-# based on http://grsecurity.net/~spender/grsecurity-2.2.1-2.6.37.2-201102271552.patch
+# based on http://grsecurity.net/~spender/grsec-2.2.1-2.6.38.1-test2.patch
 # NOTE: put raw upstream patches on kernel-grsec_full.patch:GRSECURITY_RAW for reference
 #       (since upstream deletes older patches)
 Patch9999:	kernel-grsec_full.patch
@@ -1525,6 +1525,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.896  2011/03/25 12:36:14  arekm
+- grsec test patch
+
 Revision 1.895  2011/03/24 12:46:56  arekm
 - up to 2.6.38.1; add xfs anti-oom fix for mounts with quota and many inodes
 

================================================================
Index: packages/kernel/kernel-grsec_full.patch
diff -u packages/kernel/kernel-grsec_full.patch:1.61 packages/kernel/kernel-grsec_full.patch:1.62
--- packages/kernel/kernel-grsec_full.patch:1.61	Tue Mar  8 21:38:28 2011
+++ packages/kernel/kernel-grsec_full.patch	Fri Mar 25 13:36:14 2011
@@ -1,6 +1,6 @@
-diff -urNp linux-2.6.37.2/arch/alpha/include/asm/dma-mapping.h linux-2.6.37.2/arch/alpha/include/asm/dma-mapping.h
---- linux-2.6.37.2/arch/alpha/include/asm/dma-mapping.h	2011-01-04 19:50:19.000000000 -0500
-+++ linux-2.6.37.2/arch/alpha/include/asm/dma-mapping.h	2011-01-17 02:41:00.000000000 -0500
+diff -urNp linux-2.6.38.1/arch/alpha/include/asm/dma-mapping.h linux-2.6.38.1-new/arch/alpha/include/asm/dma-mapping.h
+--- linux-2.6.38.1/arch/alpha/include/asm/dma-mapping.h	2011-03-14 21:20:32.000000000 -0400
++++ linux-2.6.38.1-new/arch/alpha/include/asm/dma-mapping.h	2011-03-21 18:31:35.000000000 -0400
 @@ -3,9 +3,9 @@
  
  #include <linux/dma-attrs.h>
@@ -13,9 +13,9 @@
  {
  	return dma_ops;
  }
-diff -urNp linux-2.6.37.2/arch/alpha/include/asm/elf.h linux-2.6.37.2/arch/alpha/include/asm/elf.h
---- linux-2.6.37.2/arch/alpha/include/asm/elf.h	2011-01-04 19:50:19.000000000 -0500
-+++ linux-2.6.37.2/arch/alpha/include/asm/elf.h	2011-01-17 02:41:00.000000000 -0500
+diff -urNp linux-2.6.38.1/arch/alpha/include/asm/elf.h linux-2.6.38.1-new/arch/alpha/include/asm/elf.h
+--- linux-2.6.38.1/arch/alpha/include/asm/elf.h	2011-03-14 21:20:32.000000000 -0400
++++ linux-2.6.38.1-new/arch/alpha/include/asm/elf.h	2011-03-21 18:31:35.000000000 -0400
 @@ -90,6 +90,13 @@ typedef elf_fpreg_t elf_fpregset_t[ELF_N
  
  #define ELF_ET_DYN_BASE		(TASK_UNMAPPED_BASE + 0x1000000)
@@ -30,9 +30,9 @@
  /* $0 is set by ld.so to a pointer to a function which might be 
     registered using atexit.  This provides a mean for the dynamic
     linker to call DT_FINI functions for shared libraries that have
-diff -urNp linux-2.6.37.2/arch/alpha/include/asm/pgtable.h linux-2.6.37.2/arch/alpha/include/asm/pgtable.h
---- linux-2.6.37.2/arch/alpha/include/asm/pgtable.h	2011-01-04 19:50:19.000000000 -0500
-+++ linux-2.6.37.2/arch/alpha/include/asm/pgtable.h	2011-01-17 02:41:00.000000000 -0500
+diff -urNp linux-2.6.38.1/arch/alpha/include/asm/pgtable.h linux-2.6.38.1-new/arch/alpha/include/asm/pgtable.h
+--- linux-2.6.38.1/arch/alpha/include/asm/pgtable.h	2011-03-14 21:20:32.000000000 -0400
++++ linux-2.6.38.1-new/arch/alpha/include/asm/pgtable.h	2011-03-21 18:31:35.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)
@@ -51,9 +51,9 @@
  #define PAGE_KERNEL	__pgprot(_PAGE_VALID | _PAGE_ASM | _PAGE_KRE | _PAGE_KWE)
  
  #define _PAGE_NORMAL(x) __pgprot(_PAGE_VALID | __ACCESS_BITS | (x))
-diff -urNp linux-2.6.37.2/arch/alpha/kernel/module.c linux-2.6.37.2/arch/alpha/kernel/module.c
---- linux-2.6.37.2/arch/alpha/kernel/module.c	2011-01-04 19:50:19.000000000 -0500
-+++ linux-2.6.37.2/arch/alpha/kernel/module.c	2011-01-17 02:41:00.000000000 -0500
+diff -urNp linux-2.6.38.1/arch/alpha/kernel/module.c linux-2.6.38.1-new/arch/alpha/kernel/module.c
+--- linux-2.6.38.1/arch/alpha/kernel/module.c	2011-03-14 21:20:32.000000000 -0400
++++ linux-2.6.38.1-new/arch/alpha/kernel/module.c	2011-03-21 18:31:35.000000000 -0400
 @@ -182,7 +182,7 @@ apply_relocate_add(Elf64_Shdr *sechdrs, 
  
  	/* The small sections were sorted to the end of the segment.
@@ -63,10 +63,10 @@
  	got = sechdrs[me->arch.gotsecindex].sh_addr;
  
  	for (i = 0; i < n; i++) {
-diff -urNp linux-2.6.37.2/arch/alpha/kernel/osf_sys.c linux-2.6.37.2/arch/alpha/kernel/osf_sys.c
---- linux-2.6.37.2/arch/alpha/kernel/osf_sys.c	2011-01-04 19:50:19.000000000 -0500
-+++ linux-2.6.37.2/arch/alpha/kernel/osf_sys.c	2011-01-17 02:41:00.000000000 -0500
-@@ -1165,7 +1165,7 @@ arch_get_unmapped_area_1(unsigned long a
+diff -urNp linux-2.6.38.1/arch/alpha/kernel/osf_sys.c linux-2.6.38.1-new/arch/alpha/kernel/osf_sys.c
+--- linux-2.6.38.1/arch/alpha/kernel/osf_sys.c	2011-03-14 21:20:32.000000000 -0400
++++ linux-2.6.38.1-new/arch/alpha/kernel/osf_sys.c	2011-03-21 18:31:35.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)
  			return -ENOMEM;
@@ -75,7 +75,7 @@
  			return addr;
  		addr = vma->vm_end;
  		vma = vma->vm_next;
-@@ -1201,6 +1201,10 @@ arch_get_unmapped_area(struct file *filp
+@@ -1198,6 +1198,10 @@ arch_get_unmapped_area(struct file *filp
  	   merely specific addresses, but regions of memory -- perhaps
  	   this feature should be incorporated into all ports?  */
  
@@ -86,7 +86,7 @@
  	if (addr) {
  		addr = arch_get_unmapped_area_1 (PAGE_ALIGN(addr), len, limit);
  		if (addr != (unsigned long) -ENOMEM)
-@@ -1208,8 +1212,8 @@ arch_get_unmapped_area(struct file *filp
+@@ -1205,8 +1209,8 @@ arch_get_unmapped_area(struct file *filp
  	}
  
  	/* Next, try allocating at TASK_UNMAPPED_BASE.  */
@@ -97,9 +97,9 @@
  	if (addr != (unsigned long) -ENOMEM)
  		return addr;
  
-diff -urNp linux-2.6.37.2/arch/alpha/kernel/pci_iommu.c linux-2.6.37.2/arch/alpha/kernel/pci_iommu.c
---- linux-2.6.37.2/arch/alpha/kernel/pci_iommu.c	2011-01-04 19:50:19.000000000 -0500
-+++ linux-2.6.37.2/arch/alpha/kernel/pci_iommu.c	2011-01-17 02:41:00.000000000 -0500
+diff -urNp linux-2.6.38.1/arch/alpha/kernel/pci_iommu.c linux-2.6.38.1-new/arch/alpha/kernel/pci_iommu.c
+--- linux-2.6.38.1/arch/alpha/kernel/pci_iommu.c	2011-03-14 21:20:32.000000000 -0400
++++ linux-2.6.38.1-new/arch/alpha/kernel/pci_iommu.c	2011-03-21 18:31:35.000000000 -0400
 @@ -950,7 +950,7 @@ static int alpha_pci_set_mask(struct dev
  	return 0;
  }
@@ -116,9 +116,9 @@
 -struct dma_map_ops *dma_ops = &alpha_pci_ops;
 +const struct dma_map_ops *dma_ops = &alpha_pci_ops;
  EXPORT_SYMBOL(dma_ops);
-diff -urNp linux-2.6.37.2/arch/alpha/kernel/pci-noop.c linux-2.6.37.2/arch/alpha/kernel/pci-noop.c
---- linux-2.6.37.2/arch/alpha/kernel/pci-noop.c	2011-01-04 19:50:19.000000000 -0500
-+++ linux-2.6.37.2/arch/alpha/kernel/pci-noop.c	2011-01-17 02:41:00.000000000 -0500
+diff -urNp linux-2.6.38.1/arch/alpha/kernel/pci-noop.c linux-2.6.38.1-new/arch/alpha/kernel/pci-noop.c
+--- linux-2.6.38.1/arch/alpha/kernel/pci-noop.c	2011-03-14 21:20:32.000000000 -0400
++++ linux-2.6.38.1-new/arch/alpha/kernel/pci-noop.c	2011-03-21 18:31:35.000000000 -0400
 @@ -173,7 +173,7 @@ static int alpha_noop_set_mask(struct de
  	return 0;
  }
@@ -137,9 +137,9 @@
  EXPORT_SYMBOL(dma_ops);
  
  void __iomem *pci_iomap(struct pci_dev *dev, int bar, unsigned long maxlen)
-diff -urNp linux-2.6.37.2/arch/alpha/mm/fault.c linux-2.6.37.2/arch/alpha/mm/fault.c
---- linux-2.6.37.2/arch/alpha/mm/fault.c	2011-01-04 19:50:19.000000000 -0500
-+++ linux-2.6.37.2/arch/alpha/mm/fault.c	2011-01-17 02:41:00.000000000 -0500
+diff -urNp linux-2.6.38.1/arch/alpha/mm/fault.c linux-2.6.38.1-new/arch/alpha/mm/fault.c
+--- linux-2.6.38.1/arch/alpha/mm/fault.c	2011-03-14 21:20:32.000000000 -0400
++++ linux-2.6.38.1-new/arch/alpha/mm/fault.c	2011-03-21 18:31:35.000000000 -0400
 @@ -54,6 +54,124 @@ __load_new_mm_context(struct mm_struct *
  	__reload_thread(pcb);
  }
@@ -296,10 +296,10 @@
  	} else if (!cause) {
  		/* Allow reads even for write-only mappings */
  		if (!(vma->vm_flags & (VM_READ | VM_WRITE)))
-diff -urNp linux-2.6.37.2/arch/arm/include/asm/elf.h linux-2.6.37.2/arch/arm/include/asm/elf.h
---- linux-2.6.37.2/arch/arm/include/asm/elf.h	2011-01-04 19:50:19.000000000 -0500
-+++ linux-2.6.37.2/arch/arm/include/asm/elf.h	2011-01-17 02:41:00.000000000 -0500
-@@ -113,7 +113,14 @@ int dump_task_regs(struct task_struct *t
+diff -urNp linux-2.6.38.1/arch/arm/include/asm/elf.h linux-2.6.38.1-new/arch/arm/include/asm/elf.h
+--- linux-2.6.38.1/arch/arm/include/asm/elf.h	2011-03-14 21:20:32.000000000 -0400
++++ linux-2.6.38.1-new/arch/arm/include/asm/elf.h	2011-03-21 18:31:35.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.  */
  
@@ -315,7 +315,7 @@
  
  /* When the program starts, a1 contains a pointer to a function to be 
     registered with atexit, as per the SVR4 ABI.  A value of 0 means we 
-@@ -123,10 +130,6 @@ int dump_task_regs(struct task_struct *t
+@@ -125,10 +132,6 @@ int dump_task_regs(struct task_struct *t
  extern void elf_set_personality(const struct elf32_hdr *);
  #define SET_PERSONALITY(ex)	elf_set_personality(&(ex))
  
@@ -326,9 +326,9 @@
  extern int vectors_user_mapping(void);
  #define arch_setup_additional_pages(bprm, uses_interp) vectors_user_mapping()
  #define ARCH_HAS_SETUP_ADDITIONAL_PAGES
-diff -urNp linux-2.6.37.2/arch/arm/include/asm/kmap_types.h linux-2.6.37.2/arch/arm/include/asm/kmap_types.h
---- linux-2.6.37.2/arch/arm/include/asm/kmap_types.h	2011-01-04 19:50:19.000000000 -0500
-+++ linux-2.6.37.2/arch/arm/include/asm/kmap_types.h	2011-01-17 02:41:00.000000000 -0500
+diff -urNp linux-2.6.38.1/arch/arm/include/asm/kmap_types.h linux-2.6.38.1-new/arch/arm/include/asm/kmap_types.h
+--- linux-2.6.38.1/arch/arm/include/asm/kmap_types.h	2011-03-14 21:20:32.000000000 -0400
++++ linux-2.6.38.1-new/arch/arm/include/asm/kmap_types.h	2011-03-21 18:31:35.000000000 -0400
 @@ -21,6 +21,7 @@ enum km_type {
  	KM_L1_CACHE,
  	KM_L2_CACHE,
@@ -337,9 +337,9 @@
  	KM_TYPE_NR
  };
  
-diff -urNp linux-2.6.37.2/arch/arm/include/asm/uaccess.h linux-2.6.37.2/arch/arm/include/asm/uaccess.h
---- linux-2.6.37.2/arch/arm/include/asm/uaccess.h	2011-01-04 19:50:19.000000000 -0500
-+++ linux-2.6.37.2/arch/arm/include/asm/uaccess.h	2011-01-17 02:41:00.000000000 -0500
+diff -urNp linux-2.6.38.1/arch/arm/include/asm/uaccess.h linux-2.6.38.1-new/arch/arm/include/asm/uaccess.h
+--- linux-2.6.38.1/arch/arm/include/asm/uaccess.h	2011-03-14 21:20:32.000000000 -0400
++++ linux-2.6.38.1-new/arch/arm/include/asm/uaccess.h	2011-03-21 18:31:35.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)
@@ -360,9 +360,9 @@
  	if (access_ok(VERIFY_WRITE, to, n))
  		n = __copy_to_user(to, from, n);
  	return n;
-diff -urNp linux-2.6.37.2/arch/arm/kernel/kgdb.c linux-2.6.37.2/arch/arm/kernel/kgdb.c
---- linux-2.6.37.2/arch/arm/kernel/kgdb.c	2011-01-04 19:50:19.000000000 -0500
-+++ linux-2.6.37.2/arch/arm/kernel/kgdb.c	2011-01-17 02:41:00.000000000 -0500
+diff -urNp linux-2.6.38.1/arch/arm/kernel/kgdb.c linux-2.6.38.1-new/arch/arm/kernel/kgdb.c
+--- linux-2.6.38.1/arch/arm/kernel/kgdb.c	2011-03-14 21:20:32.000000000 -0400
++++ linux-2.6.38.1-new/arch/arm/kernel/kgdb.c	2011-03-21 18:31:35.000000000 -0400
 @@ -246,7 +246,7 @@ void kgdb_arch_exit(void)
   * and we handle the normal undef case within the do_undefinstr
   * handler.
@@ -372,9 +372,9 @@
  #ifndef __ARMEB__
  	.gdb_bpt_instr		= {0xfe, 0xde, 0xff, 0xe7}
  #else /* ! __ARMEB__ */
-diff -urNp linux-2.6.37.2/arch/arm/kernel/process.c linux-2.6.37.2/arch/arm/kernel/process.c
---- linux-2.6.37.2/arch/arm/kernel/process.c	2011-01-04 19:50:19.000000000 -0500
-+++ linux-2.6.37.2/arch/arm/kernel/process.c	2011-01-17 02:41:00.000000000 -0500
+diff -urNp linux-2.6.38.1/arch/arm/kernel/process.c linux-2.6.38.1-new/arch/arm/kernel/process.c
+--- linux-2.6.38.1/arch/arm/kernel/process.c	2011-03-14 21:20:32.000000000 -0400
++++ linux-2.6.38.1-new/arch/arm/kernel/process.c	2011-03-21 18:31:35.000000000 -0400
 @@ -28,7 +28,6 @@
  #include <linux/tick.h>
  #include <linux/utsname.h>
@@ -393,201 +393,24 @@
 -	return randomize_range(mm->brk, range_end, 0) ? : mm->brk;
 -}
 -
+ #ifdef CONFIG_MMU
  /*
   * The vectors page is always readable from user space for the
-  * atomic helpers and the signal restart code.  Let's declare a mapping
-diff -urNp linux-2.6.37.2/arch/arm/mach-at91/pm.c linux-2.6.37.2/arch/arm/mach-at91/pm.c
---- linux-2.6.37.2/arch/arm/mach-at91/pm.c	2011-01-04 19:50:19.000000000 -0500
-+++ linux-2.6.37.2/arch/arm/mach-at91/pm.c	2011-01-17 02:41:00.000000000 -0500
-@@ -301,7 +301,7 @@ static void at91_pm_end(void)
- }
- 
- 
--static struct platform_suspend_ops at91_pm_ops ={
-+static const struct platform_suspend_ops at91_pm_ops ={
- 	.valid	= at91_pm_valid_state,
- 	.begin	= at91_pm_begin,
- 	.enter	= at91_pm_enter,
-diff -urNp linux-2.6.37.2/arch/arm/mach-davinci/pm.c linux-2.6.37.2/arch/arm/mach-davinci/pm.c
---- linux-2.6.37.2/arch/arm/mach-davinci/pm.c	2011-01-04 19:50:19.000000000 -0500
-+++ linux-2.6.37.2/arch/arm/mach-davinci/pm.c	2011-01-17 02:41:00.000000000 -0500
-@@ -110,7 +110,7 @@ static int davinci_pm_enter(suspend_stat
- 	return ret;
- }
- 
--static struct platform_suspend_ops davinci_pm_ops = {
-+static const struct platform_suspend_ops davinci_pm_ops = {
- 	.enter		= davinci_pm_enter,
- 	.valid		= suspend_valid_only_mem,
- };
-diff -urNp linux-2.6.37.2/arch/arm/mach-imx/pm-imx27.c linux-2.6.37.2/arch/arm/mach-imx/pm-imx27.c
---- linux-2.6.37.2/arch/arm/mach-imx/pm-imx27.c	2011-01-04 19:50:19.000000000 -0500
-+++ linux-2.6.37.2/arch/arm/mach-imx/pm-imx27.c	2011-01-17 02:41:00.000000000 -0500
-@@ -32,7 +32,7 @@ static int mx27_suspend_enter(suspend_st
- 	return 0;
- }
- 
--static struct platform_suspend_ops mx27_suspend_ops = {
-+static const struct platform_suspend_ops mx27_suspend_ops = {
- 	.enter = mx27_suspend_enter,
- 	.valid = suspend_valid_only_mem,
- };
-diff -urNp linux-2.6.37.2/arch/arm/mach-lpc32xx/pm.c linux-2.6.37.2/arch/arm/mach-lpc32xx/pm.c
---- linux-2.6.37.2/arch/arm/mach-lpc32xx/pm.c	2011-01-04 19:50:19.000000000 -0500
-+++ linux-2.6.37.2/arch/arm/mach-lpc32xx/pm.c	2011-01-17 02:41:00.000000000 -0500
-@@ -123,7 +123,7 @@ static int lpc32xx_pm_enter(suspend_stat
- 	return 0;
- }
- 
--static struct platform_suspend_ops lpc32xx_pm_ops = {
-+static const struct platform_suspend_ops lpc32xx_pm_ops = {
- 	.valid	= suspend_valid_only_mem,
- 	.enter	= lpc32xx_pm_enter,
- };
-diff -urNp linux-2.6.37.2/arch/arm/mach-msm/last_radio_log.c linux-2.6.37.2/arch/arm/mach-msm/last_radio_log.c
---- linux-2.6.37.2/arch/arm/mach-msm/last_radio_log.c	2011-01-04 19:50:19.000000000 -0500
-+++ linux-2.6.37.2/arch/arm/mach-msm/last_radio_log.c	2011-01-17 02:41:00.000000000 -0500
-@@ -47,6 +47,7 @@ static ssize_t last_radio_log_read(struc
+diff -urNp linux-2.6.38.1/arch/arm/mach-msm/last_radio_log.c linux-2.6.38.1-new/arch/arm/mach-msm/last_radio_log.c
+--- linux-2.6.38.1/arch/arm/mach-msm/last_radio_log.c	2011-03-14 21:20:32.000000000 -0400
++++ linux-2.6.38.1-new/arch/arm/mach-msm/last_radio_log.c	2011-03-21 18:31:35.000000000 -0400
+@@ -47,7 +47,7 @@ static ssize_t last_radio_log_read(struc
  	return count;
  }
  
-+/* cannot be const, see msm_init_last_radio_log */
- static struct file_operations last_radio_log_fops = {
+-static struct file_operations last_radio_log_fops = {
++static struct file_operations last_radio_log_fops = {	/* cannot be const, see msm_init_last_radio_log */
  	.read = last_radio_log_read,
  	.llseek = default_llseek,
-diff -urNp linux-2.6.37.2/arch/arm/mach-omap1/pm.c linux-2.6.37.2/arch/arm/mach-omap1/pm.c
---- linux-2.6.37.2/arch/arm/mach-omap1/pm.c	2011-01-04 19:50:19.000000000 -0500
-+++ linux-2.6.37.2/arch/arm/mach-omap1/pm.c	2011-01-17 02:41:00.000000000 -0500
-@@ -647,7 +647,7 @@ static struct irqaction omap_wakeup_irq 
- 
- 
- 
--static struct platform_suspend_ops omap_pm_ops ={
-+static const struct platform_suspend_ops omap_pm_ops ={
- 	.prepare	= omap_pm_prepare,
- 	.enter		= omap_pm_enter,
- 	.finish		= omap_pm_finish,
-diff -urNp linux-2.6.37.2/arch/arm/mach-omap2/mux.c linux-2.6.37.2/arch/arm/mach-omap2/mux.c
---- linux-2.6.37.2/arch/arm/mach-omap2/mux.c	2011-01-04 19:50:19.000000000 -0500
-+++ linux-2.6.37.2/arch/arm/mach-omap2/mux.c	2011-02-27 15:27:38.000000000 -0500
-@@ -393,7 +393,7 @@ static void __init omap_mux_dbg_init(voi
- 	list_for_each_entry(e, &muxmodes, node) {
- 		struct omap_mux *m = &e->mux;
- 
--		(void)debugfs_create_file(m->muxnames[0], S_IWUGO, mux_dbg_dir,
-+		(void)debugfs_create_file(m->muxnames[0], S_IWUSR, mux_dbg_dir,
- 					m, &omap_mux_dbg_signal_fops);
- 	}
- }
-diff -urNp linux-2.6.37.2/arch/arm/mach-omap2/pm24xx.c linux-2.6.37.2/arch/arm/mach-omap2/pm24xx.c
---- linux-2.6.37.2/arch/arm/mach-omap2/pm24xx.c	2011-01-04 19:50:19.000000000 -0500
-+++ linux-2.6.37.2/arch/arm/mach-omap2/pm24xx.c	2011-01-17 02:41:00.000000000 -0500
-@@ -359,7 +359,7 @@ static void omap2_pm_end(void)
- 	suspend_state = PM_SUSPEND_ON;
- }
- 
--static struct platform_suspend_ops omap_pm_ops = {
-+static const struct platform_suspend_ops omap_pm_ops = {
- 	.begin		= omap2_pm_begin,
- 	.prepare	= omap2_pm_prepare,
- 	.enter		= omap2_pm_enter,
-diff -urNp linux-2.6.37.2/arch/arm/mach-omap2/pm34xx.c linux-2.6.37.2/arch/arm/mach-omap2/pm34xx.c
---- linux-2.6.37.2/arch/arm/mach-omap2/pm34xx.c	2011-01-04 19:50:19.000000000 -0500
-+++ linux-2.6.37.2/arch/arm/mach-omap2/pm34xx.c	2011-01-17 02:41:00.000000000 -0500
-@@ -617,7 +617,7 @@ static void omap3_pm_end(void)
- 	return;
- }
- 
--static struct platform_suspend_ops omap_pm_ops = {
-+static const struct platform_suspend_ops omap_pm_ops = {
- 	.begin		= omap3_pm_begin,
- 	.end		= omap3_pm_end,
- 	.prepare	= omap3_pm_prepare,
-diff -urNp linux-2.6.37.2/arch/arm/mach-omap2/pm44xx.c linux-2.6.37.2/arch/arm/mach-omap2/pm44xx.c
---- linux-2.6.37.2/arch/arm/mach-omap2/pm44xx.c	2011-01-04 19:50:19.000000000 -0500
-+++ linux-2.6.37.2/arch/arm/mach-omap2/pm44xx.c	2011-01-17 02:41:00.000000000 -0500
-@@ -75,7 +75,7 @@ static void omap4_pm_end(void)
- 	return;
- }
- 
--static struct platform_suspend_ops omap_pm_ops = {
-+static const struct platform_suspend_ops omap_pm_ops = {
- 	.begin		= omap4_pm_begin,
- 	.end		= omap4_pm_end,
- 	.prepare	= omap4_pm_prepare,
-diff -urNp linux-2.6.37.2/arch/arm/mach-omap2/pm-debug.c linux-2.6.37.2/arch/arm/mach-omap2/pm-debug.c
---- linux-2.6.37.2/arch/arm/mach-omap2/pm-debug.c	2011-01-04 19:50:19.000000000 -0500
-+++ linux-2.6.37.2/arch/arm/mach-omap2/pm-debug.c	2011-02-27 15:28:01.000000000 -0500
-@@ -632,14 +632,14 @@ static int __init pm_dbg_init(void)
- 
- 		}
- 
--	(void) debugfs_create_file("enable_off_mode", S_IRUGO | S_IWUGO, d,
-+	(void) debugfs_create_file("enable_off_mode", S_IRUGO | S_IWUSR, d,
- 				   &enable_off_mode, &pm_dbg_option_fops);
--	(void) debugfs_create_file("sleep_while_idle", S_IRUGO | S_IWUGO, d,
-+	(void) debugfs_create_file("sleep_while_idle", S_IRUGO | S_IWUSR, d,
- 				   &sleep_while_idle, &pm_dbg_option_fops);
--	(void) debugfs_create_file("wakeup_timer_seconds", S_IRUGO | S_IWUGO, d,
-+	(void) debugfs_create_file("wakeup_timer_seconds", S_IRUGO | S_IWUSR, d,
- 				   &wakeup_timer_seconds, &pm_dbg_option_fops);
- 	(void) debugfs_create_file("wakeup_timer_milliseconds",
--			S_IRUGO | S_IWUGO, d, &wakeup_timer_milliseconds,
-+			S_IRUGO | S_IWUSR, d, &wakeup_timer_milliseconds,
- 			&pm_dbg_option_fops);
- 	pm_dbg_init_done = 1;
- 
-diff -urNp linux-2.6.37.2/arch/arm/mach-pnx4008/pm.c linux-2.6.37.2/arch/arm/mach-pnx4008/pm.c
---- linux-2.6.37.2/arch/arm/mach-pnx4008/pm.c	2011-01-04 19:50:19.000000000 -0500
-+++ linux-2.6.37.2/arch/arm/mach-pnx4008/pm.c	2011-01-17 02:41:00.000000000 -0500
-@@ -119,7 +119,7 @@ static int pnx4008_pm_valid(suspend_stat
- 	       (state == PM_SUSPEND_MEM);
- }
- 
--static struct platform_suspend_ops pnx4008_pm_ops = {
-+static const struct platform_suspend_ops pnx4008_pm_ops = {
- 	.enter = pnx4008_pm_enter,
- 	.valid = pnx4008_pm_valid,
- };
-diff -urNp linux-2.6.37.2/arch/arm/mach-pxa/pm.c linux-2.6.37.2/arch/arm/mach-pxa/pm.c
---- linux-2.6.37.2/arch/arm/mach-pxa/pm.c	2011-01-04 19:50:19.000000000 -0500
-+++ linux-2.6.37.2/arch/arm/mach-pxa/pm.c	2011-01-17 02:41:00.000000000 -0500
-@@ -96,7 +96,7 @@ void pxa_pm_finish(void)
- 		pxa_cpu_pm_fns->finish();
- }
- 
--static struct platform_suspend_ops pxa_pm_ops = {
-+static const struct platform_suspend_ops pxa_pm_ops = {
- 	.valid		= pxa_pm_valid,
- 	.enter		= pxa_pm_enter,
- 	.prepare	= pxa_pm_prepare,
-diff -urNp linux-2.6.37.2/arch/arm/mach-pxa/sharpsl_pm.c linux-2.6.37.2/arch/arm/mach-pxa/sharpsl_pm.c
---- linux-2.6.37.2/arch/arm/mach-pxa/sharpsl_pm.c	2011-01-04 19:50:19.000000000 -0500
-+++ linux-2.6.37.2/arch/arm/mach-pxa/sharpsl_pm.c	2011-01-17 02:41:00.000000000 -0500
-@@ -868,7 +868,7 @@ static void sharpsl_apm_get_power_status
- }
- 
- #ifdef CONFIG_PM
--static struct platform_suspend_ops sharpsl_pm_ops = {
-+static const struct platform_suspend_ops sharpsl_pm_ops = {
- 	.prepare	= pxa_pm_prepare,
- 	.finish		= pxa_pm_finish,
- 	.enter		= corgi_pxa_pm_enter,
-diff -urNp linux-2.6.37.2/arch/arm/mach-sa1100/pm.c linux-2.6.37.2/arch/arm/mach-sa1100/pm.c
---- linux-2.6.37.2/arch/arm/mach-sa1100/pm.c	2011-01-04 19:50:19.000000000 -0500
-+++ linux-2.6.37.2/arch/arm/mach-sa1100/pm.c	2011-01-17 02:41:00.000000000 -0500
-@@ -120,7 +120,7 @@ unsigned long sleep_phys_sp(void *sp)
- 	return virt_to_phys(sp);
- }
- 
--static struct platform_suspend_ops sa11x0_pm_ops = {
-+static const struct platform_suspend_ops sa11x0_pm_ops = {
- 	.enter		= sa11x0_pm_enter,
- 	.valid		= suspend_valid_only_mem,
- };
-diff -urNp linux-2.6.37.2/arch/arm/mach-ux500/mbox.c linux-2.6.37.2/arch/arm/mach-ux500/mbox.c
---- linux-2.6.37.2/arch/arm/mach-ux500/mbox.c	2011-01-04 19:50:19.000000000 -0500
-+++ linux-2.6.37.2/arch/arm/mach-ux500/mbox.c	2011-02-27 15:26:39.000000000 -0500
+ };
+diff -urNp linux-2.6.38.1/arch/arm/mach-ux500/mbox-db5500.c linux-2.6.38.1-new/arch/arm/mach-ux500/mbox-db5500.c
+--- linux-2.6.38.1/arch/arm/mach-ux500/mbox-db5500.c	2011-03-14 21:20:32.000000000 -0400
++++ linux-2.6.38.1-new/arch/arm/mach-ux500/mbox-db5500.c	2011-03-21 18:31:35.000000000 -0400
 @@ -168,7 +168,7 @@ static ssize_t mbox_read_fifo(struct dev
  	return sprintf(buf, "0x%X\n", mbox_value);
  }
@@ -597,9 +420,9 @@
  
  static int mbox_show(struct seq_file *s, void *data)
  {
-diff -urNp linux-2.6.37.2/arch/arm/mm/fault.c linux-2.6.37.2/arch/arm/mm/fault.c
---- linux-2.6.37.2/arch/arm/mm/fault.c	2011-01-04 19:50:19.000000000 -0500
-+++ linux-2.6.37.2/arch/arm/mm/fault.c	2011-01-17 02:41:00.000000000 -0500
+diff -urNp linux-2.6.38.1/arch/arm/mm/fault.c linux-2.6.38.1-new/arch/arm/mm/fault.c
+--- linux-2.6.38.1/arch/arm/mm/fault.c	2011-03-14 21:20:32.000000000 -0400
++++ linux-2.6.38.1-new/arch/arm/mm/fault.c	2011-03-21 18:31:35.000000000 -0400
 @@ -167,6 +167,13 @@ __do_user_fault(struct task_struct *tsk,
  	}
  #endif
@@ -648,9 +471,9 @@
  /*
   * First Level Translation Fault Handler
   *
-diff -urNp linux-2.6.37.2/arch/arm/mm/mmap.c linux-2.6.37.2/arch/arm/mm/mmap.c
---- linux-2.6.37.2/arch/arm/mm/mmap.c	2011-01-04 19:50:19.000000000 -0500
-+++ linux-2.6.37.2/arch/arm/mm/mmap.c	2011-01-17 02:41:00.000000000 -0500
+diff -urNp linux-2.6.38.1/arch/arm/mm/mmap.c linux-2.6.38.1-new/arch/arm/mm/mmap.c
+--- linux-2.6.38.1/arch/arm/mm/mmap.c	2011-03-14 21:20:32.000000000 -0400
++++ linux-2.6.38.1-new/arch/arm/mm/mmap.c	2011-03-21 18:31:35.000000000 -0400
 @@ -64,6 +64,10 @@ arch_get_unmapped_area(struct file *filp
  	if (len > TASK_SIZE)
  		return -ENOMEM;
@@ -700,21 +523,9 @@
  			/*
  			 * Remember the place where we stopped the search:
  			 */
-diff -urNp linux-2.6.37.2/arch/arm/plat-samsung/pm.c linux-2.6.37.2/arch/arm/plat-samsung/pm.c
---- linux-2.6.37.2/arch/arm/plat-samsung/pm.c	2011-01-04 19:50:19.000000000 -0500
-+++ linux-2.6.37.2/arch/arm/plat-samsung/pm.c	2011-01-17 02:41:00.000000000 -0500
-@@ -355,7 +355,7 @@ static void s3c_pm_finish(void)
- 	s3c_pm_check_cleanup();
- }
- 
--static struct platform_suspend_ops s3c_pm_ops = {
-+static const struct platform_suspend_ops s3c_pm_ops = {
- 	.enter		= s3c_pm_enter,
- 	.prepare	= s3c_pm_prepare,
- 	.finish		= s3c_pm_finish,
-diff -urNp linux-2.6.37.2/arch/avr32/include/asm/elf.h linux-2.6.37.2/arch/avr32/include/asm/elf.h
---- linux-2.6.37.2/arch/avr32/include/asm/elf.h	2011-01-04 19:50:19.000000000 -0500
-+++ linux-2.6.37.2/arch/avr32/include/asm/elf.h	2011-01-17 02:41:00.000000000 -0500
+diff -urNp linux-2.6.38.1/arch/avr32/include/asm/elf.h linux-2.6.38.1-new/arch/avr32/include/asm/elf.h
+--- linux-2.6.38.1/arch/avr32/include/asm/elf.h	2011-03-14 21:20:32.000000000 -0400
++++ linux-2.6.38.1-new/arch/avr32/include/asm/elf.h	2011-03-21 18:31:35.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.  */
@@ -731,9 +542,9 @@
  
  /* This yields a mask that user programs can use to figure out what
     instruction set this CPU supports.  This could be done in user space,
-diff -urNp linux-2.6.37.2/arch/avr32/include/asm/kmap_types.h linux-2.6.37.2/arch/avr32/include/asm/kmap_types.h
---- linux-2.6.37.2/arch/avr32/include/asm/kmap_types.h	2011-01-04 19:50:19.000000000 -0500
-+++ linux-2.6.37.2/arch/avr32/include/asm/kmap_types.h	2011-01-17 02:41:00.000000000 -0500
+diff -urNp linux-2.6.38.1/arch/avr32/include/asm/kmap_types.h linux-2.6.38.1-new/arch/avr32/include/asm/kmap_types.h
+--- linux-2.6.38.1/arch/avr32/include/asm/kmap_types.h	2011-03-14 21:20:32.000000000 -0400
++++ linux-2.6.38.1-new/arch/avr32/include/asm/kmap_types.h	2011-03-21 18:31:35.000000000 -0400
 @@ -22,7 +22,8 @@ D(10)	KM_IRQ0,
  D(11)	KM_IRQ1,
  D(12)	KM_SOFTIRQ0,
@@ -744,21 +555,9 @@
  };
  
  #undef D
-diff -urNp linux-2.6.37.2/arch/avr32/mach-at32ap/pm.c linux-2.6.37.2/arch/avr32/mach-at32ap/pm.c
---- linux-2.6.37.2/arch/avr32/mach-at32ap/pm.c	2011-01-04 19:50:19.000000000 -0500
-+++ linux-2.6.37.2/arch/avr32/mach-at32ap/pm.c	2011-01-17 02:41:00.000000000 -0500
-@@ -176,7 +176,7 @@ out:
- 	return 0;
- }
- 
--static struct platform_suspend_ops avr32_pm_ops = {
-+static const struct platform_suspend_ops avr32_pm_ops = {
- 	.valid	= avr32_pm_valid_state,
- 	.enter	= avr32_pm_enter,
- };
-diff -urNp linux-2.6.37.2/arch/avr32/mm/fault.c linux-2.6.37.2/arch/avr32/mm/fault.c
---- linux-2.6.37.2/arch/avr32/mm/fault.c	2011-01-04 19:50:19.000000000 -0500
-+++ linux-2.6.37.2/arch/avr32/mm/fault.c	2011-01-17 02:41:00.000000000 -0500
+diff -urNp linux-2.6.38.1/arch/avr32/mm/fault.c linux-2.6.38.1-new/arch/avr32/mm/fault.c
+--- linux-2.6.38.1/arch/avr32/mm/fault.c	2011-03-14 21:20:32.000000000 -0400
++++ linux-2.6.38.1-new/arch/avr32/mm/fault.c	2011-03-21 18:31:35.000000000 -0400
 @@ -41,6 +41,23 @@ static inline int notify_page_fault(stru
  
  int exception_trace = 1;
@@ -800,10 +599,10 @@
  		if (exception_trace && printk_ratelimit())
  			printk("%s%s[%d]: segfault at %08lx pc %08lx "
  			       "sp %08lx ecr %lu\n",
-diff -urNp linux-2.6.37.2/arch/blackfin/kernel/kgdb.c linux-2.6.37.2/arch/blackfin/kernel/kgdb.c
---- linux-2.6.37.2/arch/blackfin/kernel/kgdb.c	2011-01-04 19:50:19.000000000 -0500
-+++ linux-2.6.37.2/arch/blackfin/kernel/kgdb.c	2011-01-17 02:41:00.000000000 -0500
-@@ -397,7 +397,7 @@ int kgdb_arch_handle_exception(int vecto
+diff -urNp linux-2.6.38.1/arch/blackfin/kernel/kgdb.c linux-2.6.38.1-new/arch/blackfin/kernel/kgdb.c
+--- linux-2.6.38.1/arch/blackfin/kernel/kgdb.c	2011-03-14 21:20:32.000000000 -0400
++++ linux-2.6.38.1-new/arch/blackfin/kernel/kgdb.c	2011-03-21 18:31:35.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 */
  }
  
@@ -812,21 +611,9 @@
  	.gdb_bpt_instr = {0xa1},
  #ifdef CONFIG_SMP
  	.flags = KGDB_HW_BREAKPOINT|KGDB_THR_PROC_SWAP,
-diff -urNp linux-2.6.37.2/arch/blackfin/mach-common/pm.c linux-2.6.37.2/arch/blackfin/mach-common/pm.c
---- linux-2.6.37.2/arch/blackfin/mach-common/pm.c	2011-01-04 19:50:19.000000000 -0500
-+++ linux-2.6.37.2/arch/blackfin/mach-common/pm.c	2011-01-17 02:41:00.000000000 -0500
-@@ -233,7 +233,7 @@ static int bfin_pm_enter(suspend_state_t
- 	return 0;
- }
- 
--struct platform_suspend_ops bfin_pm_ops = {
-+const struct platform_suspend_ops bfin_pm_ops = {
- 	.enter = bfin_pm_enter,
- 	.valid	= bfin_pm_valid,
- };
-diff -urNp linux-2.6.37.2/arch/blackfin/mm/maccess.c linux-2.6.37.2/arch/blackfin/mm/maccess.c
---- linux-2.6.37.2/arch/blackfin/mm/maccess.c	2011-01-04 19:50:19.000000000 -0500
-+++ linux-2.6.37.2/arch/blackfin/mm/maccess.c	2011-01-17 02:41:00.000000000 -0500
+diff -urNp linux-2.6.38.1/arch/blackfin/mm/maccess.c linux-2.6.38.1-new/arch/blackfin/mm/maccess.c
+--- linux-2.6.38.1/arch/blackfin/mm/maccess.c	2011-03-14 21:20:32.000000000 -0400
++++ linux-2.6.38.1-new/arch/blackfin/mm/maccess.c	2011-03-21 18:31:35.000000000 -0400
 @@ -16,7 +16,7 @@ static int validate_memory_access_addres
  	return bfin_mem_access_type(addr, size);
  }
@@ -845,9 +632,9 @@
  {
  	unsigned long ldst = (unsigned long)dst;
  	int mem_type;
-diff -urNp linux-2.6.37.2/arch/frv/include/asm/kmap_types.h linux-2.6.37.2/arch/frv/include/asm/kmap_types.h
---- linux-2.6.37.2/arch/frv/include/asm/kmap_types.h	2011-01-04 19:50:19.000000000 -0500
-+++ linux-2.6.37.2/arch/frv/include/asm/kmap_types.h	2011-01-17 02:41:00.000000000 -0500
+diff -urNp linux-2.6.38.1/arch/frv/include/asm/kmap_types.h linux-2.6.38.1-new/arch/frv/include/asm/kmap_types.h
+--- linux-2.6.38.1/arch/frv/include/asm/kmap_types.h	2011-03-14 21:20:32.000000000 -0400
++++ linux-2.6.38.1-new/arch/frv/include/asm/kmap_types.h	2011-03-21 18:31:35.000000000 -0400
 @@ -23,6 +23,7 @@ enum km_type {
  	KM_IRQ1,
  	KM_SOFTIRQ0,
@@ -856,9 +643,9 @@
  	KM_TYPE_NR
  };
  
-diff -urNp linux-2.6.37.2/arch/frv/mm/elf-fdpic.c linux-2.6.37.2/arch/frv/mm/elf-fdpic.c
---- linux-2.6.37.2/arch/frv/mm/elf-fdpic.c	2011-01-04 19:50:19.000000000 -0500
-+++ linux-2.6.37.2/arch/frv/mm/elf-fdpic.c	2011-01-17 02:41:00.000000000 -0500
+diff -urNp linux-2.6.38.1/arch/frv/mm/elf-fdpic.c linux-2.6.38.1-new/arch/frv/mm/elf-fdpic.c
+--- linux-2.6.38.1/arch/frv/mm/elf-fdpic.c	2011-03-14 21:20:32.000000000 -0400
++++ linux-2.6.38.1-new/arch/frv/mm/elf-fdpic.c	2011-03-21 18:31:35.000000000 -0400
 @@ -73,8 +73,7 @@ unsigned long arch_get_unmapped_area(str
  	if (addr) {
  		addr = PAGE_ALIGN(addr);
@@ -887,9 +674,9 @@
  				goto success;
  			addr = vma->vm_end;
<<Diff was trimmed, longer than 597 lines>>

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/kernel/kernel.spec?r1=1.895&r2=1.896&f=u
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/kernel/kernel-grsec_full.patch?r1=1.61&r2=1.62&f=u



More information about the pld-cvs-commit mailing list