aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorJoerg Roedel <[email protected]>2011-01-14 15:45:01 +0000
committerAvi Kivity <[email protected]>2011-02-09 16:31:36 +0000
commit893a5ab6ee7d51b231ed45aa844f8088642cb6bf (patch)
tree9bb299eb2b957b47371d09fd33a307882e7b9e7a /net/unix/af_unix.c
parentRevert "exofs: Set i_mapping->backing_dev_info anyway" (diff)
downloadkernel-893a5ab6ee7d51b231ed45aa844f8088642cb6bf.tar.gz
kernel-893a5ab6ee7d51b231ed45aa844f8088642cb6bf.zip
KVM: SVM: Make sure KERNEL_GS_BASE is valid when loading gs_index
The gs_index loading code uses the swapgs instruction to switch to the user gs_base temporarily. This is unsave in an lightweight exit-path in KVM on AMD because the KERNEL_GS_BASE MSR is switches lazily. An NMI happening in the critical path of load_gs_index may use the wrong GS_BASE value then leading to unpredictable behavior, e.g. a triple-fault. This patch fixes the issue by making sure that load_gs_index is called only with a valid KERNEL_GS_BASE value loaded in KVM. Signed-off-by: Joerg Roedel <[email protected]> Signed-off-by: Avi Kivity <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions