Skip to content
Commit 45fdc3a7 authored by Roland McGrath's avatar Roland McGrath Committed by Ingo Molnar
Browse files

x86 ptrace: fix PTRACE_GETFPXREGS error



ptrace has always returned only -EIO for all failures to access
registers.  The user_regset calls are allowed to return a more
meaningful variety of errors.  The REGSET_XFP calls use -ENODEV
for !cpu_has_fxsr hardware.  Make ptrace return the traditional
-EIO instead of the error code from the user_regset call.

Signed-off-by: default avatarRoland McGrath <roland@redhat.com>
Cc: stable@kernel.org
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent e1441b9a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment