Revision ccec44563b18a0ce90e2d4f332784b3cb25c8e9c authored by Paul Mackerras on 05 March 2016, 08:34:39 UTC, committed by Paul Mackerras on 08 March 2016, 02:36:42 UTC
Thomas Huth discovered that a guest could cause a hard hang of a
host CPU by setting the Instruction Authority Mask Register (IAMR)
to a suitable value.  It turns out that this is because when the
code was added to context-switch the new special-purpose registers
(SPRs) that were added in POWER8, we forgot to add code to ensure
that they were restored to a sane value on guest exit.

This adds code to set those registers where a bad value could
compromise the execution of the host kernel to a suitable neutral
value on guest exit.

Cc: stable@vger.kernel.org # v3.14+
Fixes: b005255e12a3
Reported-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
1 parent 2680d6d
History
File Mode Size
.gitignore -rw-r--r-- 42 bytes
Makefile -rw-r--r-- 413 bytes
genksyms.c -rw-r--r-- 22.4 KB
genksyms.h -rw-r--r-- 2.7 KB
keywords.gperf -rw-r--r-- 1.6 KB
keywords.hash.c_shipped -rw-r--r-- 8.6 KB
lex.l -rw-r--r-- 9.4 KB
lex.lex.c_shipped -rw-r--r-- 57.1 KB
parse.tab.c_shipped -rw-r--r-- 72.6 KB
parse.tab.h_shipped -rw-r--r-- 3.4 KB
parse.y -rw-r--r-- 11.1 KB

back to top