]> git.baikalelectronics.ru Git - kernel.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)
commita57c4ffb0d6a8460224b5c592f5930ca9649a6c4
tree5530839c1e9645441471c027fe401387c421546f
parent594e498de2546a37c70fcc7d82fee5bb3b1f9f11
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