x86/fpu: Rename copy_user_to_xregs() and copy_xregs_to_user()
authorThomas Gleixner <tglx@linutronix.de>
Wed, 23 Jun 2021 12:01:53 +0000 (14:01 +0200)
committerBorislav Petkov <bp@suse.de>
Wed, 23 Jun 2021 16:01:56 +0000 (18:01 +0200)
commit6b862ba1821441e6083cf061404694d33a841526
tree484fbaf0fddd95c10e92cf50794460ca6bae7790
parentb16313f71c1050ad5c92548925e0e9cec26989ab
x86/fpu: Rename copy_user_to_xregs() and copy_xregs_to_user()

The function names for xsave[s]/xrstor[s] operations are horribly named and
a permanent source of confusion.

Rename:
copy_xregs_to_user() to xsave_to_user_sigframe()
copy_user_to_xregs() to xrstor_from_user_sigframe()

so it's entirely clear what this is about. This is also a clear indicator
of the potentially different storage format because this is user ABI and
cannot use compacted format.

No functional change.

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/20210623121453.924266705@linutronix.de
arch/x86/include/asm/fpu/internal.h
arch/x86/kernel/fpu/signal.c