diff options
author | Jim Mattson <jmattson@google.com> | 2023-08-30 21:32:21 -0700 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2023-08-31 23:29:49 +0200 |
commit | 18032b47adf1db7b7f5fb2d1344e65aafe6417df (patch) | |
tree | 7847bbd9a68b4544ebd74c07a5e2f5d7c210c0a0 /drivers/clk | |
parent | d87e89c2735772fbed933be0d19e032c1910a51f (diff) | |
download | linux-stable-18032b47adf1db7b7f5fb2d1344e65aafe6417df.tar.gz linux-stable-18032b47adf1db7b7f5fb2d1344e65aafe6417df.tar.bz2 linux-stable-18032b47adf1db7b7f5fb2d1344e65aafe6417df.zip |
x86/fpu/xstate: Fix PKRU covert channel
When XCR0[9] is set, PKRU can be read and written from userspace with
XSAVE and XRSTOR, even when CR4.PKE is clear.
Clear XCR0[9] when protection keys are disabled.
Reported-by: Tavis Ormandy <taviso@google.com>
Signed-off-by: Jim Mattson <jmattson@google.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Acked-by: Dave Hansen <dave.hansen@linux.intel.com>
Link: https://lore.kernel.org/r/20230831043228.1194256-1-jmattson@google.com
Diffstat (limited to 'drivers/clk')
0 files changed, 0 insertions, 0 deletions