diff options
author | Yu-cheng Yu <[email protected]> | 2016-07-11 09:18:56 -0700 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2016-07-11 16:44:00 +0200 |
commit | 35ac2d7ba787eb4b7418a5a6f5919c25e10a780a (patch) | |
tree | 735223525166e0cdaf3451d0c401adf4267a8435 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | 5060b91513b866f774da15dfd82157864c4b1683 (diff) |
x86/fpu/xstate: Fix fpstate_init() for XRSTORS
In XSAVES mode if fpstate_init() is used to initialize a
task's extended state area, xsave.header.xcomp_bv[63] must
be set. Otherwise, when the task is scheduled, a warning is
triggered from copy_kernel_to_xregs().
One such test case is: setting an invalid extended state
through PTRACE. When xstateregs_set() rejects the syscall
and re-initializes the task's extended state area. This triggers
the warning mentioned above.
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/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions