summaryrefslogtreecommitdiff
path: root/arch/x86/kernel/process.c
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2021-06-23 14:02:17 +0200
committerBorislav Petkov <bp@suse.de>2021-06-23 19:33:32 +0200
commit2ebe81c6d800576e1213f9d7cf0068017ae610c1 (patch)
treee2d315cf6dfda3988070df9aa52d739a982bef87 /arch/x86/kernel/process.c
parent65e952102122bf89f0e4f1bebf8664e32587aaed (diff)
downloadlinux-2ebe81c6d800576e1213f9d7cf0068017ae610c1.tar.gz
linux-2ebe81c6d800576e1213f9d7cf0068017ae610c1.tar.bz2
linux-2ebe81c6d800576e1213f9d7cf0068017ae610c1.zip
x86/fpu: Dont restore PKRU in fpregs_restore_userspace()
switch_to() and flush_thread() write the task's PKRU value eagerly so the PKRU value of current is always valid in the hardware. That means there is no point in restoring PKRU on exit to user or when reactivating the task's FPU registers in the signal frame setup path. This allows to remove all the xstate buffer updates with PKRU values once the PKRU state is stored in thread struct while a task is scheduled out. 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/20210623121456.303919033@linutronix.de
Diffstat (limited to 'arch/x86/kernel/process.c')
0 files changed, 0 insertions, 0 deletions