android_kernel_xiaomi_sm8350/arch/powerpc
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
..
boot [PATCH] powerpc: Fix clean_files in arch/powerpc/boot Makefile 2006-01-11 16:28:13 +11:00
configs [PATCH] enable the RTC driver in ppc64_defconfig 2006-01-11 14:47:13 +11:00
kernel [PATCH] powerpc: Avoid potential FP corruption with preempt and UP 2006-01-12 20:09:29 +11:00
lib powerpc: Fix find_next_bit on 32-bit 2005-11-10 12:01:41 +11:00
mm [PATCH] powerpc: IOMMU: don't ioremap null addresses 2006-01-10 15:30:31 +11:00
oprofile [PATCH] ppc64: Fix oprofile when compiled as a module 2006-01-09 16:02:52 +11:00
platforms [PATCH] powerpc: Remove redundant setting of htab_address 2006-01-11 15:35:46 +11:00
sysdev [PATCH] powerpc: Updated Kconfig and Makefiles for 83xx support 2006-01-11 15:35:29 +11:00
xmon [PATCH] powerpc: Add a is_kernel_addr() macro 2006-01-09 14:51:50 +11:00
Kconfig [PATCH] powerpc: Updated Kconfig and Makefiles for 83xx support 2006-01-11 15:35:29 +11:00
Kconfig.debug [PATCH] powerpc: Make early debugging configurable via Kconfig 2006-01-11 14:48:26 +11:00
Makefile Merge ssh://master.kernel.org/pub/scm/linux/kernel/git/sam/kbuild 2006-01-10 08:21:33 -08:00