Commit 2a25299b authored by Fenghua Yu's avatar Fenghua Yu Committed by Xiaochen Shen
Browse files

x86/traps: Demand-populate PASID MSR via #GP

mainline inclusion
from mainline-v5.18
commit fa6af69f
category: feature
bugzilla: https://gitee.com/openeuler/intel-kernel/issues/I596WO


CVE: NA

Intel-SIG: commit fa6af69f x86/traps: Demand-populate PASID MSR via #GP.
Incremental backporting patches for DSA/IAA on Intel Xeon platform.

--------------------------------

All tasks start with PASID state disabled. This means that the first
time they execute an ENQCMD instruction they will take a #GP fault.

Modify the #GP fault handler to check if the "mm" for the task has
already been allocated a PASID. If so, try to fix the #GP fault by
loading the IA32_PASID MSR.

Signed-off-by: default avatarFenghua Yu <fenghua.yu@intel.com>
Signed-off-by: default avatarBorislav Petkov <bp@suse.de>
Reviewed-by: default avatarTony Luck <tony.luck@intel.com>
Reviewed-by: default avatarThomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20220207230254.3342514-9-fenghua.yu@intel.com


Signed-off-by: default avatarXiaochen Shen <xiaochen.shen@intel.com>
parent ad0345ab
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment