diff options
author | Yu-cheng Yu <yu-cheng.yu@intel.com> | 2020-01-09 13:14:52 -0800 |
---|---|---|
committer | Borislav Petkov <bp@suse.de> | 2020-02-12 15:43:34 +0100 |
commit | e70b100806d63fb79775858ea92e1a716da46186 (patch) | |
tree | ab9fcc22a0c0f9c48f0138b6efe1296b08cfb69b /arch/x86/include/asm/pkeys.h | |
parent | 49a91d61aed1db01097b51a24c77137eb348a0bf (diff) |
x86/fpu/xstate: Warn when checking alignment of disabled xfeatures
An XSAVES component's alignment/offset is meaningful only when the
feature is enabled. Return zero and WARN_ONCE on checking alignment of
disabled features.
Signed-off-by: Yu-cheng Yu <yu-cheng.yu@intel.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Reviewed-by: Dave Hansen <dave.hansen@linux.intel.com>
Link: https://lkml.kernel.org/r/20200109211452.27369-4-yu-cheng.yu@intel.com
Diffstat (limited to 'arch/x86/include/asm/pkeys.h')
0 files changed, 0 insertions, 0 deletions