[kernel] r7684 - in dists/trunk/linux-2.6/debian: .
patches/bugfix/sparc patches/series
Jurij Smakov
jurij-guest at alioth.debian.org
Thu Nov 2 17:35:50 UTC 2006
Author: jurij-guest
Date: Thu Nov 2 18:35:49 2006
New Revision: 7684
Added:
dists/trunk/linux-2.6/debian/patches/bugfix/sparc/t1k-cpu-lockup.patch
Modified:
dists/trunk/linux-2.6/debian/changelog
dists/trunk/linux-2.6/debian/patches/series/4
Log:
* [sparc] Add bugfix/sparc/t1k-cpu-lockup.patch (thanks to David Miller)
to prevent soft CPU lockup on T1000 servers, which can be triggered from
userspace, resulting in denial of service.
Ref: http://marc.theaimsgroup.com/?t=116241422600003&r=1&w=2
Modified: dists/trunk/linux-2.6/debian/changelog
==============================================================================
--- dists/trunk/linux-2.6/debian/changelog (original)
+++ dists/trunk/linux-2.6/debian/changelog Thu Nov 2 18:35:49 2006
@@ -23,6 +23,9 @@
(closes: #394697).
* [sparc] Add bugfix/sparc/sunblade1k-boot-fix.patch (thanks to David
Miller) to fix a boottime crash on SunBlade1000.
+ * [sparc] Add bugfix/sparc/t1k-cpu-lockup.patch (thanks to David Miller)
+ to prevent soft CPU lockup on T1000 servers, which can be triggered from
+ userspace, resulting in denial of service.
[ Martin Michlmayr ]
* arm/iop32x: Fix the interrupt of the 2nd Ethernet slot on N2100.
Added: dists/trunk/linux-2.6/debian/patches/bugfix/sparc/t1k-cpu-lockup.patch
==============================================================================
--- (empty file)
+++ dists/trunk/linux-2.6/debian/patches/bugfix/sparc/t1k-cpu-lockup.patch Thu Nov 2 18:35:49 2006
@@ -0,0 +1,37 @@
+diff --git a/include/asm-sparc64/futex.h b/include/asm-sparc64/futex.h
+index dee4020..7392fc4 100644
+--- a/include/asm-sparc64/futex.h
++++ b/include/asm-sparc64/futex.h
+@@ -87,24 +87,22 @@ static inline int
+ futex_atomic_cmpxchg_inatomic(int __user *uaddr, int oldval, int newval)
+ {
+ __asm__ __volatile__(
+- "\n1: lduwa [%2] %%asi, %0\n"
+- "2: casa [%2] %%asi, %0, %1\n"
+- "3:\n"
++ "\n1: casa [%3] %%asi, %2, %0\n"
++ "2:\n"
+ " .section .fixup,#alloc,#execinstr\n"
+ " .align 4\n"
+- "4: ba 3b\n"
+- " mov %3, %0\n"
++ "3: ba 2b\n"
++ " mov %4, %0\n"
+ " .previous\n"
+ " .section __ex_table,\"a\"\n"
+ " .align 4\n"
+- " .word 1b, 4b\n"
+- " .word 2b, 4b\n"
++ " .word 1b, 3b\n"
+ " .previous\n"
+- : "=&r" (oldval)
+- : "r" (newval), "r" (uaddr), "i" (-EFAULT)
++ : "=r" (newval)
++ : "0" (newval), "r" (oldval), "r" (uaddr), "i" (-EFAULT)
+ : "memory");
+
+- return oldval;
++ return newval;
+ }
+
+ #endif /* !(_SPARC64_FUTEX_H) */
Modified: dists/trunk/linux-2.6/debian/patches/series/4
==============================================================================
--- dists/trunk/linux-2.6/debian/patches/series/4 (original)
+++ dists/trunk/linux-2.6/debian/patches/series/4 Thu Nov 2 18:35:49 2006
@@ -41,3 +41,4 @@
+ features/mips/qemu-kernel.patch
+ features/mips/backtrace.patch
+ features/fintek-f75375.patch
++ bugfix/sparc/t1k-cpu-lockup.patch
More information about the Kernel-svn-changes
mailing list