Thomas Gleixner b2681e791d x86/fpu: Rename and sanitize fpu__save/copy()
Both function names are a misnomer.

fpu__save() is actually about synchronizing the hardware register state
into the task's memory state so that either coredump or a math exception
handler can inspect the state at the time where the problem happens.

The function guarantees to preserve the register state, while "save" is a
common terminology for saving the current state so it can be modified and
restored later. This is clearly not the case here.

Rename it to fpu_sync_fpstate().

fpu__copy() is used to clone the current task's FPU state when duplicating
task_struct. While the register state is a copy the rest of the FPU state
is not.

Name it accordingly and remove the really pointless @src argument along
with the warning which comes along with it.

Nothing can ever copy the FPU state of a non-current task. It's clearly
just a consequence of arch_dup_task_struct(), but it makes no sense to
proliferate that further.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Borislav Petkov <bp@suse.de>
Reviewed-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20210623121455.196727450@linutronix.de
2021-06-23 18:55:56 +02:00
..
2021-03-18 15:31:53 +01:00
2021-05-05 21:50:13 +02:00
2020-01-23 10:41:20 -08:00
2021-03-18 15:31:53 +01:00
2021-04-28 13:03:44 -07:00
2021-05-01 10:14:08 -07:00
2020-05-07 16:06:20 +02:00
2020-10-28 20:26:25 +01:00
2018-08-15 13:44:10 -07:00
2021-03-31 16:20:22 +02:00
2020-11-26 12:58:56 +01:00
2019-04-16 12:26:18 +02:00
2021-03-18 15:31:53 +01:00
2020-11-06 23:14:58 +01:00
2021-03-18 15:31:53 +01:00
2019-04-22 11:42:59 +02:00
2021-02-24 16:32:23 -08:00
2020-12-15 23:58:04 -08:00
2020-09-16 16:52:28 +02:00
2021-03-15 16:24:59 +01:00
2020-10-14 11:42:04 -07:00
2021-02-17 14:12:43 +01:00
2021-03-15 10:49:00 +01:00
2018-03-20 10:01:57 +01:00
2019-04-10 09:53:31 +02:00
2020-03-21 16:03:25 +01:00
2021-03-06 12:59:10 +01:00
2020-11-17 14:36:13 +01:00
2020-08-10 19:07:44 -07:00
2020-03-23 18:45:14 +01:00
2020-01-14 12:20:58 +01:00