aboutsummaryrefslogtreecommitdiffstats
path: root/lib/test_bitops.c
diff options
context:
space:
mode:
authorThomas Gleixner <[email protected]>2021-06-23 12:02:22 +0000
committerBorislav Petkov <[email protected]>2021-06-23 17:55:16 +0000
commit0e8c54f6b2c8b1037cef9276e451522ee90ed969 (patch)
tree7c4460026cf1f124a922172f03ced464c785da57 /lib/test_bitops.c
parentx86/fpu: Remove PKRU handling from switch_fpu_finish() (diff)
downloadkernel-0e8c54f6b2c8b1037cef9276e451522ee90ed969.tar.gz
kernel-0e8c54f6b2c8b1037cef9276e451522ee90ed969.zip
x86/fpu: Don't store PKRU in xstate in fpu_reset_fpstate()
PKRU for a task is stored in task->thread.pkru when the task is scheduled out. For 'current' the authoritative source of PKRU is the hardware. fpu_reset_fpstate() has two callers: 1) fpu__clear_user_states() for !FPU systems. For those PKRU is irrelevant 2) fpu_flush_thread() which is invoked from flush_thread(). flush_thread() resets the hardware to the kernel restrictive default value. Signed-off-by: Thomas Gleixner <[email protected]> Signed-off-by: Borislav Petkov <[email protected]> Reviewed-by: Borislav Petkov <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'lib/test_bitops.c')
0 files changed, 0 insertions, 0 deletions