aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/fpu/internal.h
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2021-06-23 14:01:51 +0200
committerBorislav Petkov <bp@suse.de>2021-06-23 17:53:31 +0200
commit1f3171252dc586745bb548d48f3bcedfea34b58d (patch)
treeecd2505dd43d3255d2a49498e1312fbd3d0162c4 /arch/x86/include/asm/fpu/internal.h
parentx86/fpu: Cleanup arch_set_user_pkey_access() (diff)
downloadlinux-dev-1f3171252dc586745bb548d48f3bcedfea34b58d.tar.xz
linux-dev-1f3171252dc586745bb548d48f3bcedfea34b58d.zip
x86/fpu: Get rid of copy_supervisor_to_kernel()
If the fast path of restoring the FPU state on sigreturn fails or is not taken and the current task's FPU is active then the FPU has to be deactivated for the slow path to allow a safe update of the tasks FPU memory state. With supervisor states enabled, this requires to save the supervisor state in the memory state first. Supervisor states require XSAVES so saving only the supervisor state requires to reshuffle the memory buffer because XSAVES uses the compacted format and therefore stores the supervisor states at the beginning of the memory state. That's just an overengineered optimization. Get rid of it and save the full state for this case. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Borislav Petkov <bp@suse.de> Reviewed-by: Andy Lutomirski <luto@kernel.org> Reviewed-by: Borislav Petkov <bp@suse.de> Link: https://lkml.kernel.org/r/20210623121453.734561971@linutronix.de
Diffstat (limited to 'arch/x86/include/asm/fpu/internal.h')
0 files changed, 0 insertions, 0 deletions