]> xenbits.xensource.com Git - xen.git/commit
x86: fix information leak on AMD CPUs
authorJan Beulich <jbeulich@suse.com>
Tue, 29 Mar 2016 13:24:29 +0000 (15:24 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 29 Mar 2016 13:24:29 +0000 (15:24 +0200)
commit8fa31952e2d08ef63897c43b5e8b33475ebf5d93
tree474ae5c3dd4997f21c1bd8556585fe18c9cbfc19
parent4db81940ee9eb82b3b3895c449ccbbab4a7147a4
x86: fix information leak on AMD CPUs

The fix for XSA-52 was wrong, and so was the change synchronizing that
new behavior to the FXRSTOR logic: AMD's manuals explictly state that
writes to the ES bit are ignored, and it instead gets calculated from
the exception and mask bits (it gets set whenever there is an unmasked
exception, and cleared otherwise). Hence we need to follow that model
in our workaround.

This is CVE-2016-3158 / XSA-172.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
master commit: 7bd9dc3adfbb014c55f0928ebb3b20950ca9c019
master date: 2016-03-29 14:24:26 +0200
xen/arch/x86/xstate.c