patch-2.4.0-test11 linux/arch/i386/kernel/i387.c
Next file: linux/arch/i386/kernel/i8259.c
Previous file: linux/arch/i386/kernel/i386_ksyms.c
Back to the patch index
Back to the overall index
- Lines: 9
- Date:
Fri Nov 3 09:47:48 2000
- Orig file:
v2.4.0-test10/linux/arch/i386/kernel/i387.c
- Orig date:
Tue Oct 31 12:42:26 2000
diff -u --recursive --new-file v2.4.0-test10/linux/arch/i386/kernel/i387.c linux/arch/i386/kernel/i387.c
@@ -442,6 +442,8 @@
if ( HAVE_FXSR ) {
__copy_from_user( &tsk->thread.i387.fxsave, (void *)buf,
sizeof(struct user_fxsr_struct) );
+ /* mxcsr bit 6 and 31-16 must be zero for security reasons */
+ tsk->thread.i387.fxsave.mxcsr &= 0xffbf;
return 0;
} else {
return -EIO;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)