Re: [Xen-devel] [PATCH] x86/xsaves: get_xsave_addr needs check the xsave header

2015-12-18 Thread Andrew Cooper
On 18/12/15 10:50, Huaitong Han wrote: > The check needs to be against the xsave header in the area, rather than > Xen's maximum xfeature_mask. A guest might easily have a smaller xcr0 > than the maximum Xen is willing to allow, causing the pointer below to > be bogus. > > Signed-off-by: Huaitong H

[Xen-devel] [PATCH] x86/xsaves: get_xsave_addr needs check the xsave header

2015-12-18 Thread Huaitong Han
The check needs to be against the xsave header in the area, rather than Xen's maximum xfeature_mask. A guest might easily have a smaller xcr0 than the maximum Xen is willing to allow, causing the pointer below to be bogus. Signed-off-by: Huaitong Han --- xen/arch/x86/xstate.c | 7 --- 1 file