[kernel] r15591 - in dists/sid/linux-2.6/debian: . patches/bugfix/powerpc patches/series
Dann Frazier
dannf at alioth.debian.org
Fri Apr 30 06:58:19 UTC 2010
Author: dannf
Date: Fri Apr 30 06:58:07 2010
New Revision: 15591
Log:
[powerpc] KGDB: don't needlessly skip PAGE_USER test for Fsl booke
Note: KGDB is not currently enabled in debian builds (CVE-2010-1446)
Added:
dists/sid/linux-2.6/debian/patches/bugfix/powerpc/kgdb-dont-needlessly-skip-PAGE_USER-test-for-Fsl-booke.patch
Modified:
dists/sid/linux-2.6/debian/changelog
dists/sid/linux-2.6/debian/patches/series/12
Modified: dists/sid/linux-2.6/debian/changelog
==============================================================================
--- dists/sid/linux-2.6/debian/changelog Fri Apr 30 06:40:47 2010 (r15590)
+++ dists/sid/linux-2.6/debian/changelog Fri Apr 30 06:58:07 2010 (r15591)
@@ -66,6 +66,8 @@
errors (CVE-2010-1173)
* [CIFS] Allow null nd (as nfs server uses) on create (CVE-2010-1148)
* tipc: Fix oops on send prior to entering networked mode (CVE-2010-1187)
+ * [powerpc] KGDB: don't needlessly skip PAGE_USER test for Fsl booke
+ Note: KGDB is not currently enabled in debian builds (CVE-2010-1446)
[ Aurelien Jarno ]
* [sh4] Add a sh7751r flavour.
Added: dists/sid/linux-2.6/debian/patches/bugfix/powerpc/kgdb-dont-needlessly-skip-PAGE_USER-test-for-Fsl-booke.patch
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ dists/sid/linux-2.6/debian/patches/bugfix/powerpc/kgdb-dont-needlessly-skip-PAGE_USER-test-for-Fsl-booke.patch Fri Apr 30 06:58:07 2010 (r15591)
@@ -0,0 +1,42 @@
+commit 56151e753468e34aeb322af4b0309ab727c97d2e
+Author: Wufei <fei.wu at windriver.com>
+Date: Wed Apr 28 17:42:32 2010 -0400
+
+ kgdb: don't needlessly skip PAGE_USER test for Fsl booke
+
+ The bypassing of this test is a leftover from 2.4 vintage
+ kernels, and is no longer appropriate, or even used by KGDB.
+ Currently KGDB uses probe_kernel_write() for all access to
+ memory via the KGDB core, so it can simply be deleted.
+
+ This fixes CVE-2010-1446.
+
+ CC: Benjamin Herrenschmidt <benh at kernel.crashing.org>
+ CC: Paul Mackerras <paulus at samba.org>
+ CC: Kumar Gala <galak at kernel.crashing.org>
+ Signed-off-by: Wufei <fei.wu at windriver.com>
+ Signed-off-by: Jason Wessel <jason.wessel at windriver.com>
+
+
+Adjusted to apply to Debian's 2.6.32 by dann frazier <dannf at debian.org>
+
+
+diff -urpN a/arch/powerpc/mm/fsl_booke_mmu.c b/arch/powerpc/mm/fsl_booke_mmu.c
+--- a/arch/powerpc/mm/fsl_booke_mmu.c 2009-12-02 20:51:21.000000000 -0700
++++ b/arch/powerpc/mm/fsl_booke_mmu.c 2010-04-30 00:49:04.000000000 -0600
+@@ -131,15 +131,10 @@ void settlbcam(int index, unsigned long
+ TLBCAM[index].MAS3 = (phys & PAGE_MASK) | MAS3_SX | MAS3_SR;
+ TLBCAM[index].MAS3 |= ((flags & _PAGE_RW) ? MAS3_SW : 0);
+
+-#ifndef CONFIG_KGDB /* want user access for breakpoints */
+ if (flags & _PAGE_USER) {
+ TLBCAM[index].MAS3 |= MAS3_UX | MAS3_UR;
+ TLBCAM[index].MAS3 |= ((flags & _PAGE_RW) ? MAS3_UW : 0);
+ }
+-#else
+- TLBCAM[index].MAS3 |= MAS3_UX | MAS3_UR;
+- TLBCAM[index].MAS3 |= ((flags & _PAGE_RW) ? MAS3_UW : 0);
+-#endif
+
+ tlbcam_addrs[index].start = virt;
+ tlbcam_addrs[index].limit = virt + size - 1;
Modified: dists/sid/linux-2.6/debian/patches/series/12
==============================================================================
--- dists/sid/linux-2.6/debian/patches/series/12 Fri Apr 30 06:40:47 2010 (r15590)
+++ dists/sid/linux-2.6/debian/patches/series/12 Fri Apr 30 06:58:07 2010 (r15591)
@@ -62,3 +62,4 @@
+ bugfix/all/sctp-fix-skb_over_panic-resulting-from-multiple-invalid-parameter-errors.patch
+ bugfix/all/cifs-allow-null-nd-on-create.patch
+ bugfix/all/tipc-fix-oops-on-send-prior-to-entering-networked-mode.patch
++ bugfix/powerpc/kgdb-dont-needlessly-skip-PAGE_USER-test-for-Fsl-booke.patch
More information about the Kernel-svn-changes
mailing list