projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
facbf4d
)
x86/xsaves: Clear reserved bits in xsave header
author
Fenghua Yu
<fenghua.yu@intel.com>
Thu, 29 May 2014 18:12:39 +0000
(11:12 -0700)
committer
H. Peter Anvin
<hpa@linux.intel.com>
Thu, 29 May 2014 21:33:00 +0000
(14:33 -0700)
The reserved bits (128~511) in the xsave header must be zero according to
X86 SDM. Clear the bits in this patch.
Signed-off-by: Fenghua Yu <fenghua.yu@intel.com>
Link:
http://lkml.kernel.org/r/1401387164-43416-12-git-send-email-fenghua.yu@intel.com
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
arch/x86/kernel/i387.c
patch
|
blob
|
history
diff --git
a/arch/x86/kernel/i387.c
b/arch/x86/kernel/i387.c
index d5dd808144190ffd1d443229b4dbbd56740fface..a9a4229f6161b25b6e8a5752be7943f478525d21 100644
(file)
--- a/
arch/x86/kernel/i387.c
+++ b/
arch/x86/kernel/i387.c
@@
-375,7
+375,7
@@
int xstateregs_set(struct task_struct *target, const struct user_regset *regset,
/*
* These bits must be zero.
*/
-
xsave_hdr->reserved1[0] = xsave_hdr->reserved1[1] = 0
;
+
memset(xsave_hdr->reserved, 0, 48)
;
return ret;
}