linux/arch/powerpc
Michael Neuling 2c27a18f87 powerpc/tm: Fix restoration of MSR on 32bit signal return
Currently we clear out the MSR TM bits on signal return assuming that the
signal should never return to an active transaction.

This is bogus as the user may do this.  It's most likely the transaction will
be doomed due to a treclaim but that's a problem for the HW not the kernel.

The current code is a legacy of earlier kernel implementations which did
software rollback of active transactions in the kernel.  That code has now gone
but we didn't correctly fix up this part of the signals code which still makes
the assumption that it must be returning to a suspended transaction.

This pulls out both MSR TM bits from the user supplied context rather than just
setting TM suspend.  We pull out only the bits needed to ensure the user can't
do anything dangerous to the MSR.

Signed-off-by: Michael Neuling <mikey@neuling.org>
cc: stable@vger.kernel.org (v3.9+)
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
2013-06-20 17:05:22 +10:00
..
boot powerpc: Update currituck pci/usb fixup for new board revision 2013-06-20 16:55:13 +10:00
configs powerpc: Update default configurations 2013-06-20 16:55:12 +10:00
crypto
include powerpc/eeh: Enhance converting EEH dev 2013-06-20 17:04:36 +10:00
kernel powerpc/tm: Fix restoration of MSR on 32bit signal return 2013-06-20 17:05:22 +10:00
kvm kvm/ppc/booke64: Fix lazy ee handling in kvmppc_handle_exit() 2013-06-11 11:11:00 +03:00
lib powerpc: Fix single step emulation of 32bit overflowed branches 2013-06-20 16:55:13 +10:00
math-emu powerpc/math-emu: Fix decoding of some instructions 2013-06-20 17:05:05 +10:00
mm powerpc/mm: Make mmap_64.c compile on 32bit powerpc 2013-06-20 16:55:11 +10:00
net
oprofile
perf powerpc/perf: Fix deadlock caused by calling printk() in PMU exception 2013-06-10 08:36:32 +10:00
platforms powerpc/pseries: Read common partition via pstore 2013-06-20 17:05:02 +10:00
sysdev powerpc: Mark low level irq handlers NO_THREAD 2013-06-20 16:55:08 +10:00
xmon Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc 2013-05-02 10:16:16 -07:00
Kconfig powerpc/8xx: Remove 8xx specific "minimal FPU emulation" 2013-06-20 17:05:12 +10:00
Kconfig.debug powerpc: Add a configuration option for early BootX/OpenFirmware debug 2013-06-20 16:55:12 +10:00
Makefile
relocs_check.pl