diff options
author | Yu-cheng Yu <[email protected]> | 2016-07-11 09:18:54 -0700 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2016-07-11 16:43:59 +0200 |
commit | 1fc2b67b43d5001b92b3a002b988884ad0137e99 (patch) | |
tree | 1e396558f22e3671c9e9d3f4de85903f4eaaa69c /tools/perf/scripts/python/export-to-postgresql.py | |
parent | ac73b27aea4eacdd7555f664d5fc6e1d4d1c8bf6 (diff) |
x86/fpu/xstate: Fix __fpu_restore_sig() for XSAVES
When the kernel is using XSAVES compacted format, we cannot do
__copy_from_user() from a signal frame, which has standard-format data.
Fix it by using copyin_to_xsaves(), which converts between formats and
filters out all supervisor states that we do not allow userspace to
write.
Signed-off-by: Yu-cheng Yu <[email protected]>
Signed-off-by: Fenghua Yu <[email protected]>
Reviewed-by: Dave Hansen <[email protected]>
Cc: H. Peter Anvin <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Ravi V Shankar <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions