]> git.baikalelectronics.ru Git - kernel.git/commit
x86, smap: Do not abuse the [f][x]rstor_checking() functions for user space
authorH. Peter Anvin <hpa@zytor.com>
Tue, 25 Sep 2012 22:42:18 +0000 (15:42 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Tue, 25 Sep 2012 22:42:18 +0000 (15:42 -0700)
commit4a7efead0312fd24382b42f1e3490e916a2a74fc
tree2094d5154d34ce212c7110ed3a30d975026e5c75
parent80782c63b6dacd281f6f3e4e97cd4c1cd82a20bd
x86, smap: Do not abuse the [f][x]rstor_checking() functions for user space

With SMAP, the [f][x]rstor_checking() functions are no longer usable
for user-space pointers by applying a simple __force cast.  Instead,
create new [f][x]rstor_user() functions which do the proper SMAP
magic.

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Cc: Suresh Siddha <suresh.b.siddha@intel.com>
Link: http://lkml.kernel.org/r/1343171129-2747-3-git-send-email-suresh.b.siddha@intel.com
arch/x86/include/asm/fpu-internal.h
arch/x86/kernel/xsave.c