packages: kernel/kernel-grsec_full.patch, kernel/kernel.spec, kernel/kernel...

arekm arekm at pld-linux.org
Tue Sep 21 07:32:28 CEST 2010


Author: arekm                        Date: Tue Sep 21 05:32:28 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- up to 2.6.35.5

---- Files affected:
packages/kernel:
   kernel-grsec_full.patch (1.41 -> 1.42) , kernel.spec (1.824 -> 1.825) , kernel-netfilter-bug-669.patch (1.1 -> NONE)  (REMOVED)

---- Diffs:

================================================================
Index: packages/kernel/kernel-grsec_full.patch
diff -u packages/kernel/kernel-grsec_full.patch:1.41 packages/kernel/kernel-grsec_full.patch:1.42
--- packages/kernel/kernel-grsec_full.patch:1.41	Sun Sep 19 19:40:05 2010
+++ packages/kernel/kernel-grsec_full.patch	Tue Sep 21 07:32:21 2010
@@ -812,18 +812,6 @@
  	.alloc_coherent		= sba_alloc_coherent,
  	.free_coherent		= sba_free_coherent,
  	.map_page		= sba_map_page,
-diff -urNp linux-2.6.35.4/arch/ia64/include/asm/compat.h linux-2.6.35.4/arch/ia64/include/asm/compat.h
---- linux-2.6.35.4/arch/ia64/include/asm/compat.h	2010-08-26 19:47:12.000000000 -0400
-+++ linux-2.6.35.4/arch/ia64/include/asm/compat.h	2010-09-17 20:12:37.000000000 -0400
-@@ -199,7 +199,7 @@ ptr_to_compat(void __user *uptr)
- }
- 
- static __inline__ void __user *
--compat_alloc_user_space (long len)
-+arch_compat_alloc_user_space (long len)
- {
- 	struct pt_regs *regs = task_pt_regs(current);
- 	return (void __user *) (((regs->r12 & 0xffffffff) & -16) - len);
 diff -urNp linux-2.6.35.4/arch/ia64/include/asm/dma-mapping.h linux-2.6.35.4/arch/ia64/include/asm/dma-mapping.h
 --- linux-2.6.35.4/arch/ia64/include/asm/dma-mapping.h	2010-08-26 19:47:12.000000000 -0400
 +++ linux-2.6.35.4/arch/ia64/include/asm/dma-mapping.h	2010-09-17 20:12:09.000000000 -0400
@@ -1409,18 +1397,6 @@
  	.valid		= suspend_valid_only_mem,
  	.begin		= db1x_pm_begin,
  	.enter		= db1x_pm_enter,
-diff -urNp linux-2.6.35.4/arch/mips/include/asm/compat.h linux-2.6.35.4/arch/mips/include/asm/compat.h
---- linux-2.6.35.4/arch/mips/include/asm/compat.h	2010-08-26 19:47:12.000000000 -0400
-+++ linux-2.6.35.4/arch/mips/include/asm/compat.h	2010-09-17 20:12:37.000000000 -0400
-@@ -145,7 +145,7 @@ static inline compat_uptr_t ptr_to_compa
- 	return (u32)(unsigned long)uptr;
- }
- 
--static inline void __user *compat_alloc_user_space(long len)
-+static inline void __user *arch_compat_alloc_user_space(long len)
- {
- 	struct pt_regs *regs = (struct pt_regs *)
- 		((unsigned long) current_thread_info() + THREAD_SIZE - 32) - 1;
 diff -urNp linux-2.6.35.4/arch/mips/include/asm/elf.h linux-2.6.35.4/arch/mips/include/asm/elf.h
 --- linux-2.6.35.4/arch/mips/include/asm/elf.h	2010-08-26 19:47:12.000000000 -0400
 +++ linux-2.6.35.4/arch/mips/include/asm/elf.h	2010-09-17 20:12:09.000000000 -0400
@@ -1601,18 +1577,6 @@
  /*
   * This routine handles page faults.  It determines the address,
   * and the problem, and then passes it off to one of the appropriate
-diff -urNp linux-2.6.35.4/arch/parisc/include/asm/compat.h linux-2.6.35.4/arch/parisc/include/asm/compat.h
---- linux-2.6.35.4/arch/parisc/include/asm/compat.h	2010-08-26 19:47:12.000000000 -0400
-+++ linux-2.6.35.4/arch/parisc/include/asm/compat.h	2010-09-17 20:12:37.000000000 -0400
-@@ -147,7 +147,7 @@ static inline compat_uptr_t ptr_to_compa
- 	return (u32)(unsigned long)uptr;
- }
- 
--static __inline__ void __user *compat_alloc_user_space(long len)
-+static __inline__ void __user *arch_compat_alloc_user_space(long len)
- {
- 	struct pt_regs *regs = &current->thread.regs;
- 	return (void __user *)regs->gr[30];
 diff -urNp linux-2.6.35.4/arch/parisc/include/asm/elf.h linux-2.6.35.4/arch/parisc/include/asm/elf.h
 --- linux-2.6.35.4/arch/parisc/include/asm/elf.h	2010-08-26 19:47:12.000000000 -0400
 +++ linux-2.6.35.4/arch/parisc/include/asm/elf.h	2010-09-17 20:12:09.000000000 -0400
@@ -1970,18 +1934,6 @@
  
  	/*
  	 * If for any reason at all we couldn't handle the fault, make
-diff -urNp linux-2.6.35.4/arch/powerpc/include/asm/compat.h linux-2.6.35.4/arch/powerpc/include/asm/compat.h
---- linux-2.6.35.4/arch/powerpc/include/asm/compat.h	2010-08-26 19:47:12.000000000 -0400
-+++ linux-2.6.35.4/arch/powerpc/include/asm/compat.h	2010-09-17 20:12:37.000000000 -0400
-@@ -134,7 +134,7 @@ static inline compat_uptr_t ptr_to_compa
- 	return (u32)(unsigned long)uptr;
- }
- 
--static inline void __user *compat_alloc_user_space(long len)
-+static inline void __user *arch_compat_alloc_user_space(long len)
- {
- 	struct pt_regs *regs = current->thread.regs;
- 	unsigned long usp = regs->gpr[1];
 diff -urNp linux-2.6.35.4/arch/powerpc/include/asm/device.h linux-2.6.35.4/arch/powerpc/include/asm/device.h
 --- linux-2.6.35.4/arch/powerpc/include/asm/device.h	2010-08-26 19:47:12.000000000 -0400
 +++ linux-2.6.35.4/arch/powerpc/include/asm/device.h	2010-09-17 20:12:09.000000000 -0400
@@ -3029,18 +2981,6 @@
  	.valid = pmc_suspend_valid,
  	.enter = pmc_suspend_enter,
  };
-diff -urNp linux-2.6.35.4/arch/s390/include/asm/compat.h linux-2.6.35.4/arch/s390/include/asm/compat.h
---- linux-2.6.35.4/arch/s390/include/asm/compat.h	2010-08-26 19:47:12.000000000 -0400
-+++ linux-2.6.35.4/arch/s390/include/asm/compat.h	2010-09-17 20:12:37.000000000 -0400
-@@ -181,7 +181,7 @@ static inline int is_compat_task(void)
- 
- #endif
- 
--static inline void __user *compat_alloc_user_space(long len)
-+static inline void __user *arch_compat_alloc_user_space(long len)
- {
- 	unsigned long stack;
- 
 diff -urNp linux-2.6.35.4/arch/s390/include/asm/elf.h linux-2.6.35.4/arch/s390/include/asm/elf.h
 --- linux-2.6.35.4/arch/s390/include/asm/elf.h	2010-08-26 19:47:12.000000000 -0400
 +++ linux-2.6.35.4/arch/s390/include/asm/elf.h	2010-09-17 20:12:09.000000000 -0400
@@ -3624,18 +3564,6 @@
  }
  
  #define atomic64_inc_not_zero(v) atomic64_add_unless((v), 1, 0)
-diff -urNp linux-2.6.35.4/arch/sparc/include/asm/compat.h linux-2.6.35.4/arch/sparc/include/asm/compat.h
---- linux-2.6.35.4/arch/sparc/include/asm/compat.h	2010-08-26 19:47:12.000000000 -0400
-+++ linux-2.6.35.4/arch/sparc/include/asm/compat.h	2010-09-17 20:12:37.000000000 -0400
-@@ -167,7 +167,7 @@ static inline compat_uptr_t ptr_to_compa
- 	return (u32)(unsigned long)uptr;
- }
- 
--static inline void __user *compat_alloc_user_space(long len)
-+static inline void __user *arch_compat_alloc_user_space(long len)
- {
- 	struct pt_regs *regs = current_thread_info()->kregs;
- 	unsigned long usp = regs->u_regs[UREG_I6];
 diff -urNp linux-2.6.35.4/arch/sparc/include/asm/dma-mapping.h linux-2.6.35.4/arch/sparc/include/asm/dma-mapping.h
 --- linux-2.6.35.4/arch/sparc/include/asm/dma-mapping.h	2010-08-26 19:47:12.000000000 -0400
 +++ linux-2.6.35.4/arch/sparc/include/asm/dma-mapping.h	2010-09-17 20:12:09.000000000 -0400
@@ -6016,28 +5944,6 @@
  #include <linux/linkage.h>
  
  /* Avoid __ASSEMBLER__'ifying <linux/audit.h> just for this.  */
-@@ -50,7 +51,12 @@
- 	/*
- 	 * Reload arg registers from stack in case ptrace changed them.
- 	 * We don't reload %eax because syscall_trace_enter() returned
--	 * the value it wants us to use in the table lookup.
-+	 * the %rax value we should see.  Instead, we just truncate that
-+	 * value to 32 bits again as we did on entry from user mode.
-+	 * If it's a new value set by user_regset during entry tracing,
-+	 * this matches the normal truncation of the user-mode value.
-+	 * If it's -1 to make us punt the syscall, then (u32)-1 is still
-+	 * an appropriately invalid value.
- 	 */
- 	.macro LOAD_ARGS32 offset, _r9=0
- 	.if \_r9
-@@ -60,6 +66,7 @@
- 	movl \offset+48(%rsp),%edx
- 	movl \offset+56(%rsp),%esi
- 	movl \offset+64(%rsp),%edi
-+	movl %eax,%eax			/* zero extension */
- 	.endm
- 	
- 	.macro CFI_STARTPROC32 simple
 @@ -114,6 +121,11 @@ ENTRY(ia32_sysenter_target)
  	SWAPGS_UNSAFE_STACK
  	movq	PER_CPU_VAR(kernel_stack), %rsp
@@ -6063,15 +5969,6 @@
  1:	movl	(%rbp),%ebp
   	.section __ex_table,"a"
   	.quad 1b,ia32_badarg
-@@ -153,7 +171,7 @@ ENTRY(ia32_sysenter_target)
- 	testl  $_TIF_WORK_SYSCALL_ENTRY,TI_flags(%r10)
- 	CFI_REMEMBER_STATE
- 	jnz  sysenter_tracesys
--	cmpl	$(IA32_NR_syscalls-1),%eax
-+	cmpq	$(IA32_NR_syscalls-1),%rax
- 	ja	ia32_badsys
- sysenter_do_call:
- 	IA32_ARG_FIXUP
 @@ -166,6 +184,11 @@ sysenter_dispatch:
  	testl	$_TIF_ALLWORK_MASK,TI_flags(%r10)
  	jnz	sysexit_audit
@@ -6084,24 +5981,6 @@
  	andl    $~TS_COMPAT,TI_status(%r10)
  	/* clear IF, that popfq doesn't enable interrupts early */
  	andl  $~0x200,EFLAGS-R11(%rsp) 
-@@ -195,7 +218,7 @@ sysexit_from_sys_call:
- 	movl $AUDIT_ARCH_I386,%edi	/* 1st arg: audit arch */
- 	call audit_syscall_entry
- 	movl RAX-ARGOFFSET(%rsp),%eax	/* reload syscall number */
--	cmpl $(IA32_NR_syscalls-1),%eax
-+	cmpq $(IA32_NR_syscalls-1),%rax
- 	ja ia32_badsys
- 	movl %ebx,%edi			/* reload 1st syscall arg */
- 	movl RCX-ARGOFFSET(%rsp),%esi	/* reload 2nd syscall arg */
-@@ -248,7 +271,7 @@ sysenter_tracesys:
- 	call	syscall_trace_enter
- 	LOAD_ARGS32 ARGOFFSET  /* reload args from stack in case ptrace changed it */
- 	RESTORE_REST
--	cmpl	$(IA32_NR_syscalls-1),%eax
-+	cmpq	$(IA32_NR_syscalls-1),%rax
- 	ja	int_ret_from_sys_call /* sysenter_tracesys has set RAX(%rsp) */
- 	jmp	sysenter_do_call
- 	CFI_ENDPROC
 @@ -284,6 +307,11 @@ ENTRY(ia32_cstar_target)
  	movl	%esp,%r8d
  	CFI_REGISTER	rsp,r8
@@ -6127,15 +6006,6 @@
  1:	movl	(%r8),%r9d
  	.section __ex_table,"a"
  	.quad 1b,ia32_badarg
-@@ -314,7 +348,7 @@ ENTRY(ia32_cstar_target)
- 	testl $_TIF_WORK_SYSCALL_ENTRY,TI_flags(%r10)
- 	CFI_REMEMBER_STATE
- 	jnz   cstar_tracesys
--	cmpl $IA32_NR_syscalls-1,%eax
-+	cmpq $IA32_NR_syscalls-1,%rax
- 	ja  ia32_badsys
- cstar_do_call:
- 	IA32_ARG_FIXUP 1
 @@ -327,6 +361,11 @@ cstar_dispatch:
  	testl $_TIF_ALLWORK_MASK,TI_flags(%r10)
  	jnz sysretl_audit
@@ -6148,15 +6018,6 @@
  	andl $~TS_COMPAT,TI_status(%r10)
  	RESTORE_ARGS 1,-ARG_SKIP,1,1,1
  	movl RIP-ARGOFFSET(%rsp),%ecx
-@@ -367,7 +406,7 @@ cstar_tracesys:
- 	LOAD_ARGS32 ARGOFFSET, 1  /* reload args from stack in case ptrace changed it */
- 	RESTORE_REST
- 	xchgl %ebp,%r9d
--	cmpl $(IA32_NR_syscalls-1),%eax
-+	cmpq $(IA32_NR_syscalls-1),%rax
- 	ja int_ret_from_sys_call /* cstar_tracesys has set RAX(%rsp) */
- 	jmp cstar_do_call
- END(ia32_cstar_target)
 @@ -409,6 +448,11 @@ ENTRY(ia32_syscall)
  	CFI_REL_OFFSET	rip,RIP-RIP
  	PARAVIRT_ADJUST_EXCEPTION_FRAME
@@ -6169,24 +6030,6 @@
  	/*
  	 * No need to follow this irqs on/off section: the syscall
  	 * disabled irqs and here we enable it straight after entry:
-@@ -425,7 +469,7 @@ ENTRY(ia32_syscall)
- 	orl   $TS_COMPAT,TI_status(%r10)
- 	testl $_TIF_WORK_SYSCALL_ENTRY,TI_flags(%r10)
- 	jnz ia32_tracesys
--	cmpl $(IA32_NR_syscalls-1),%eax
-+	cmpq $(IA32_NR_syscalls-1),%rax
- 	ja ia32_badsys
- ia32_do_call:
- 	IA32_ARG_FIXUP
-@@ -444,7 +488,7 @@ ia32_tracesys:			 
- 	call syscall_trace_enter
- 	LOAD_ARGS32 ARGOFFSET  /* reload args from stack in case ptrace changed it */
- 	RESTORE_REST
--	cmpl $(IA32_NR_syscalls-1),%eax
-+	cmpq $(IA32_NR_syscalls-1),%rax
- 	ja  int_ret_from_sys_call	/* ia32_tracesys has set RAX(%rsp) */
- 	jmp ia32_do_call
- END(ia32_syscall)
 diff -urNp linux-2.6.35.4/arch/x86/ia32/ia32_signal.c linux-2.6.35.4/arch/x86/ia32/ia32_signal.c
 --- linux-2.6.35.4/arch/x86/ia32/ia32_signal.c	2010-08-26 19:47:12.000000000 -0400
 +++ linux-2.6.35.4/arch/x86/ia32/ia32_signal.c	2010-09-17 20:12:09.000000000 -0400
@@ -6989,18 +6832,6 @@
  						 len, sum, NULL, err_ptr);
  
  	if (len)
-diff -urNp linux-2.6.35.4/arch/x86/include/asm/compat.h linux-2.6.35.4/arch/x86/include/asm/compat.h
---- linux-2.6.35.4/arch/x86/include/asm/compat.h	2010-08-26 19:47:12.000000000 -0400
-+++ linux-2.6.35.4/arch/x86/include/asm/compat.h	2010-09-17 20:12:37.000000000 -0400
-@@ -205,7 +205,7 @@ static inline compat_uptr_t ptr_to_compa
- 	return (u32)(unsigned long)uptr;
- }
- 
--static inline void __user *compat_alloc_user_space(long len)
-+static inline void __user *arch_compat_alloc_user_space(long len)
- {
- 	struct pt_regs *regs = task_pt_regs(current);
- 	return (void __user *)regs->sp - len;
 diff -urNp linux-2.6.35.4/arch/x86/include/asm/cpufeature.h linux-2.6.35.4/arch/x86/include/asm/cpufeature.h
 --- linux-2.6.35.4/arch/x86/include/asm/cpufeature.h	2010-08-26 19:47:12.000000000 -0400
 +++ linux-2.6.35.4/arch/x86/include/asm/cpufeature.h	2010-09-17 20:12:09.000000000 -0400
@@ -44149,18 +43980,6 @@
  
  /* audit system wants to get cap info from files as well */
  struct dentry;
-diff -urNp linux-2.6.35.4/include/linux/compat.h linux-2.6.35.4/include/linux/compat.h
---- linux-2.6.35.4/include/linux/compat.h	2010-08-26 19:47:12.000000000 -0400
-+++ linux-2.6.35.4/include/linux/compat.h	2010-09-17 20:12:37.000000000 -0400
-@@ -360,5 +360,8 @@ extern ssize_t compat_rw_copy_check_uvec
- 		const struct compat_iovec __user *uvector, unsigned long nr_segs,
- 		unsigned long fast_segs, struct iovec *fast_pointer,
- 		struct iovec **ret_pointer);
-+
-+extern void __user *compat_alloc_user_space(unsigned long len);
-+
- #endif /* CONFIG_COMPAT */
- #endif /* _LINUX_COMPAT_H */
 diff -urNp linux-2.6.35.4/include/linux/compiler-gcc4.h linux-2.6.35.4/include/linux/compiler-gcc4.h
 --- linux-2.6.35.4/include/linux/compiler-gcc4.h	2010-08-26 19:47:12.000000000 -0400
 +++ linux-2.6.35.4/include/linux/compiler-gcc4.h	2010-09-17 20:12:09.000000000 -0400
@@ -47740,42 +47559,6 @@
 +
  EXPORT_SYMBOL(capable);
 +EXPORT_SYMBOL(capable_nolog);
-diff -urNp linux-2.6.35.4/kernel/compat.c linux-2.6.35.4/kernel/compat.c
---- linux-2.6.35.4/kernel/compat.c	2010-08-26 19:47:12.000000000 -0400
-+++ linux-2.6.35.4/kernel/compat.c	2010-09-17 20:12:37.000000000 -0400
-@@ -13,6 +13,7 @@
- 
- #include <linux/linkage.h>
- #include <linux/compat.h>
-+#include <linux/module.h>
- #include <linux/errno.h>
- #include <linux/time.h>
- #include <linux/signal.h>
-@@ -1137,3 +1138,24 @@ compat_sys_sysinfo(struct compat_sysinfo
- 
- 	return 0;
- }
-+
-+/*
-+ * Allocate user-space memory for the duration of a single system call,
-+ * in order to marshall parameters inside a compat thunk.
-+ */
-+void __user *compat_alloc_user_space(unsigned long len)
-+{
-+	void __user *ptr;
-+
-+	/* If len would occupy more than half of the entire compat space... */
-+	if (unlikely(len > (((compat_uptr_t)~0) >> 1)))
-+		return NULL;
-+
-+	ptr = arch_compat_alloc_user_space(len);
-+
-+	if (unlikely(!access_ok(VERIFY_WRITE, ptr, len)))
-+		return NULL;
-+
-+	return ptr;
-+}
-+EXPORT_SYMBOL_GPL(compat_alloc_user_space);
 diff -urNp linux-2.6.35.4/kernel/configs.c linux-2.6.35.4/kernel/configs.c
 --- linux-2.6.35.4/kernel/configs.c	2010-08-26 19:47:12.000000000 -0400
 +++ linux-2.6.35.4/kernel/configs.c	2010-09-17 20:12:37.000000000 -0400

================================================================
Index: packages/kernel/kernel.spec
diff -u packages/kernel/kernel.spec:1.824 packages/kernel/kernel.spec:1.825
--- packages/kernel/kernel.spec:1.824	Mon Sep 20 23:21:04 2010
+++ packages/kernel/kernel.spec	Tue Sep 21 07:32:22 2010
@@ -114,8 +114,8 @@
 %endif
 
 %define		basever		2.6.35
-%define		postver		.4
-%define		rel		3
+%define		postver		.5
+%define		rel		1
 
 %define		_enable_debug_packages			0
 
@@ -158,7 +158,7 @@
 # Source0-md5:	091abeb4684ce03d1d936851618687b6
 %if "%{postver}" != "%{nil}"
 Source1:	http://www.kernel.org/pub/linux/kernel/v2.6/patch-%{version}.bz2
-# Source1-md5:	738f762746488345b1a8707d00895eef
+# Source1-md5:	5bf1900e4ea72b8c65f4f7aae0a28d14
 %endif
 
 Source3:	kernel-autoconf.h
@@ -316,7 +316,6 @@
 Patch2000:	kernel-small_fixes.patch
 Patch2001:	kernel-pwc-uncompress.patch
 Patch2003:	kernel-regressions.patch
-Patch2004:	kernel-netfilter-bug-669.patch
 
 # kill some thousands of warnings
 # (only warnings, so just remove parts of this patch if conflics)
@@ -862,7 +861,6 @@
 %patch2000 -p1
 %patch2001 -p1
 #%patch2003 -p1
-%patch2004 -p1
 
 # Fix EXTRAVERSION in main Makefile
 sed -i 's#EXTRAVERSION =.*#EXTRAVERSION = %{postver}%{?alt_kernel:_%{alt_kernel}}#g' Makefile
@@ -1599,6 +1597,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.825  2010/09/21 05:32:22  arekm
+- up to 2.6.35.5
+
 Revision 1.824  2010/09/20 21:21:04  witekfl
 - fix issue with menuconfig (grey Select, Exit, Help buttons)
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/kernel/kernel-grsec_full.patch?r1=1.41&r2=1.42&f=u
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/kernel/kernel.spec?r1=1.824&r2=1.825&f=u



More information about the pld-cvs-commit mailing list