aboutsummaryrefslogtreecommitdiff
path: root/net/unix/sysctl_net_unix.c
diff options
context:
space:
mode:
authorXiaotian Feng <[email protected]>2010-08-13 15:19:11 +0800
committerAvi Kivity <[email protected]>2010-08-15 14:10:15 +0300
commitf45755b8346f1a089ca7957dce5f4c3c6cb26e6f (patch)
treef0b34312371aeaf88fed462857af0630a2c19af8 /net/unix/sysctl_net_unix.c
parent3cfc2c42c1cbc8e238bb9c0612c0df4565e3a8b4 (diff)
KVM: fix poison overwritten caused by using wrong xstate size
fpu.state is allocated from task_xstate_cachep, the size of task_xstate_cachep is xstate_size. xstate_size is set from cpuid instruction, which is often smaller than sizeof(struct xsave_struct). kvm is using sizeof(struct xsave_struct) to fill in/out fpu.state.xsave, as what we allocated for fpu.state is xstate_size, kernel will write out of memory and caused poison/redzone/padding overwritten warnings. Signed-off-by: Xiaotian Feng <[email protected]> Reviewed-by: Sheng Yang <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: "H. Peter Anvin" <[email protected]> Cc: Suresh Siddha <[email protected]> Cc: Brian Gerst <[email protected]> Cc: Avi Kivity <[email protected]> Cc: Robert Richter <[email protected]> Cc: Sheng Yang <[email protected]> Cc: Marcelo Tosatti <[email protected]> Cc: Gleb Natapov <[email protected]> Cc: Jan Kiszka <[email protected]> Signed-off-by: Avi Kivity <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions