x86/xsave: initialize extended register state when guests enable it
authorJan Beulich <jbeulich@suse.com>
Wed, 25 Sep 2013 08:41:25 +0000 (10:41 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 25 Sep 2013 08:41:25 +0000 (10:41 +0200)
commit63a75ba0de817d6f384f96d25427a05c313e2179
tree04152e1333dc64d701f4f0107832b70cc297ca31
parent5fc2176d9b3c5988c041fa5926fdd2da2ad560b9
x86/xsave: initialize extended register state when guests enable it

Till now, when setting previously unset bits in XCR0 we wouldn't touch
the active register state, thus leaving in the newly enabled registers
whatever a prior user of it left there, i.e. potentially leaking
information between guests.

This is CVE-2013-1442 / XSA-62.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/xstate.c