x86/process: Clone FPU in copy_thread()
authorThomas Gleixner <tglx@linutronix.de>
Fri, 15 Oct 2021 01:16:04 +0000 (03:16 +0200)
committerBorislav Petkov <bp@suse.de>
Wed, 20 Oct 2021 13:27:26 +0000 (15:27 +0200)
commit2d16a1876f20218f8970ea4b7f679cead1cdb510
tree1d87314e9523c5fe6d7c8e02b52b25f985871b99
parent01f9f62d3ae75077a54a11d2777082f1e58e2d9f
x86/process: Clone FPU in copy_thread()

There is no reason to clone FPU in arch_dup_task_struct(). Quite the
contrary - it prevents optimizations. Move it to copy_thread().

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20211015011538.780714235@linutronix.de
arch/x86/kernel/process.c