]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
x86/fpu: Restrict xsaves()/xrstors() to independent states
authorThomas Gleixner <tglx@linutronix.de>
Fri, 15 Oct 2021 01:15:59 +0000 (03:15 +0200)
committerBorislav Petkov <bp@suse.de>
Wed, 20 Oct 2021 13:27:26 +0000 (15:27 +0200)
commitf5daf836f292f795f9cf8f36e036bf47adcbc3a3
tree5530839c1e9645441471c027fe401387c421546f
parentb50854eca0e014c2d3738073b387ab8ec85118ab
x86/fpu: Restrict xsaves()/xrstors() to independent states

These interfaces are really only valid for features which are independently
managed and not part of the task context state for various reasons.

Tighten the checks and adjust the misleading comments.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20211015011538.608492174@linutronix.de
arch/x86/kernel/fpu/xstate.c