x86/fpu/signal: Move header zeroing out of xsave_to_user_sigframe()
authorThomas Gleixner <tglx@linutronix.de>
Wed, 8 Sep 2021 13:29:29 +0000 (15:29 +0200)
committerBorislav Petkov <bp@suse.de>
Tue, 14 Sep 2021 19:10:03 +0000 (21:10 +0200)
commit4164a482a5d92c29eaf53d01755103f6bbce38f2
tree997efc3799555dfc8d172afdc45b959c93f6a412
parent4339d0c63c2d5bea1fe6de4091ee2fe9eeea09a7
x86/fpu/signal: Move header zeroing out of xsave_to_user_sigframe()

There is no reason to have the header zeroing in the pagefault disabled
region. Do it upfront once.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20210908132525.621674721@linutronix.de
arch/x86/include/asm/fpu/internal.h
arch/x86/kernel/fpu/signal.c