OpenCloudOS-Kernel/include
Paul Mackerras 5388fb1025 [PATCH] powerpc: Avoid potential FP corruption with preempt and UP
Heikki Lindholm pointed out that there was a potential race with the
lazy CPU state (FP, VR, EVR) stuff if preempt is enabled.  The race
is that in the process of restoring FP state on sigreturn, the task
gets preempted by a user task that wants to use the FPU.  It will take
an FP unavailable exception, which will write the current FPU state
to the thread_struct, overwriting the values which sigreturn has
stored.  Note that this can only happen on UP since we don't implement
lazy CPU state on SMP.

The fix is to flush the lazy CPU state before updating the
thread_struct.  To do this we re-use the flush_lazy_cpu_state()
function from process.c.

Signed-off-by: Paul Mackerras <paulus@samba.org>
2006-01-12 20:09:29 +11:00
..
acpi [ACPI] increase owner_id limit to 64 from 32 2005-12-21 04:52:16 -05:00
asm-alpha [PATCH] mutex subsystem, add default include/asm-*/mutex.h files 2006-01-09 15:59:19 -08:00
asm-arm [PATCH] Generic ioctl.h 2006-01-10 08:01:34 -08:00
asm-arm26 [PATCH] Generic ioctl.h 2006-01-10 08:01:34 -08:00
asm-cris [PATCH] Generic ioctl.h 2006-01-10 08:01:34 -08:00
asm-frv [PATCH] Generic ioctl.h 2006-01-10 08:01:34 -08:00
asm-generic Fix mutex_trylock() copy-and-paste bug (x86, x86-64, generic mutex-dec.h) 2006-01-11 15:50:47 -08:00
asm-h8300 [PATCH] include/asm-h8300/page.h: remove unused KTHREAD_SIZE #define 2006-01-11 18:42:09 -08:00
asm-i386 [PATCH] i386: Replace broken serialize_cpu in microcode driver with correct sync_core 2006-01-11 19:04:58 -08:00
asm-ia64 [PATCH] kprobes: fix build breakage 2006-01-10 08:01:40 -08:00
asm-m32r [PATCH] Generic ioctl.h 2006-01-10 08:01:34 -08:00
asm-m68k [PATCH] Generic ioctl.h 2006-01-10 08:01:34 -08:00
asm-m68knommu [PATCH] m68knommu: save reg a5 on context change 2006-01-10 09:31:27 -08:00
asm-mips MIPS: R2: Try to bulletproof instruction_hazard against miss-compilation. 2006-01-10 13:39:08 +00:00
asm-parisc [PARISC] Use C99 initializers in asm-parisc/processor.h 2006-01-10 21:52:45 -05:00
asm-powerpc [PATCH] powerpc: Avoid potential FP corruption with preempt and UP 2006-01-12 20:09:29 +11:00
asm-ppc [PATCH] powerpc: pci_address_to_pio fix 2006-01-09 15:05:56 +11:00
asm-s390 [PATCH] Generic ioctl.h 2006-01-10 08:01:34 -08:00
asm-sh [PATCH] Generic ioctl.h 2006-01-10 08:01:34 -08:00
asm-sh64 [PATCH] include/asm-sh64/: "extern inline" -> "static inline" 2006-01-10 08:02:02 -08:00
asm-sparc [PATCH] mutex subsystem, add default include/asm-*/mutex.h files 2006-01-09 15:59:19 -08:00
asm-sparc64 [PATCH] kprobes: fix build breakage 2006-01-10 08:01:40 -08:00
asm-um [PATCH] dump_thread() cleanup 2006-01-10 08:01:25 -08:00
asm-v850 [PATCH] Generic ioctl.h 2006-01-10 08:01:34 -08:00
asm-x86_64 [PATCH] x86_64: Some housekeeping in local APIC code 2006-01-11 19:05:03 -08:00
asm-xtensa [PATCH] Generic ioctl.h 2006-01-10 08:01:34 -08:00
keys [PATCH] Keys: Remove key duplication 2006-01-06 08:33:29 -08:00
linux [PATCH] x86_64: Inclusion of ScaleMP vSMP architecture patches - vsmp_arch 2006-01-11 19:05:01 -08:00
math-emu
media V4L/DVB (3347): Fixes some bad global variables 2006-01-11 20:26:13 -02:00
mtd [MTD] user-abi: Clean up trailing white spaces 2005-11-07 14:43:11 +01:00
net [INET]: congestion and af_ops can be const 2006-01-10 12:54:26 -08:00
pcmcia [PATCH] pcmcia: unify attach, EVENT_CARD_INSERTION handlers into one probe callback 2006-01-06 00:03:24 +01:00
rdma [IB] uverbs: have kernel return QP capabilities 2005-11-10 10:22:50 -08:00
rxrpc [PATCH] gfp flags annotations - part 1 2005-10-08 15:00:57 -07:00
scsi Merge branch 'post-2.6.15' of git://brick.kernel.dk/data/git/linux-2.6-block 2006-01-06 09:01:25 -08:00
sound [PATCH] DocBook: fix kernel-doc comments 2006-01-10 08:01:53 -08:00
video [PATCH] include/video/newport.h: "extern inline" -> "static inline" 2006-01-10 08:01:50 -08:00