Michael Neuling d2b9d2a5ad powerpc/tm: Block signal return setting invalid MSR state
Currently we allow both the MSR T and S bits to be set by userspace on
a signal return.  Unfortunately this is a reserved configuration and
will cause a TM Bad Thing exception if attempted (via rfid).

This patch checks for this case in both the 32 and 64 bit signals
code.  If both T and S are set, we mark the context as invalid.

Found using a syscall fuzzer.

Fixes: 2b0a576d15e0 ("powerpc: Add new transactional memory state to the signal context")
Cc: stable@vger.kernel.org # v3.9+
Signed-off-by: Michael Neuling <mikey@neuling.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
2015-11-23 20:06:31 +11:00
..
2015-09-10 16:42:49 -07:00
2014-11-27 09:32:58 +11:00
2014-12-11 17:48:14 -08:00
2014-08-13 15:13:42 +10:00
2014-09-25 23:14:46 +10:00
2014-11-03 12:12:32 +11:00
2014-11-03 12:12:32 +11:00
2015-08-06 15:10:20 +10:00
2015-10-27 18:13:30 -05:00
2015-03-24 13:15:52 +11:00
2014-12-11 17:48:14 -08:00
2015-09-08 14:35:59 -07:00
2015-09-03 16:41:38 -07:00
2015-07-30 14:34:44 +10:00
2014-09-25 23:14:41 +10:00
2014-08-06 13:04:32 +02:00
2012-03-28 18:30:02 +01:00
2015-04-07 17:15:13 +10:00
2015-06-24 17:49:38 -07:00