summaryrefslogtreecommitdiffstats
path: root/arch/x86/lib
diff options
context:
space:
mode:
authorFenghua Yu <fenghua.yu@intel.com>2022-02-07 15:02:53 -0800
committerPeter Zijlstra <peterz@infradead.org>2022-03-15 10:32:30 +0100
commit227a06553fe6c785f23d76eece3bb10e2db5059c (patch)
tree8aa7068e4d48d9e40d1482e6428ccad859acf6f9 /arch/x86/lib
parent09688c0166e76ce2fb85e86b9d99be8b0084cdf9 (diff)
downloadlinux-stable-227a06553fe6c785f23d76eece3bb10e2db5059c.tar.gz
linux-stable-227a06553fe6c785f23d76eece3bb10e2db5059c.tar.bz2
linux-stable-227a06553fe6c785f23d76eece3bb10e2db5059c.zip
tools/objtool: Check for use of the ENQCMD instruction in the kernel
The ENQCMD instruction implicitly accesses the PASID_MSR to fill in the pasid field of the descriptor being submitted to an accelerator. But there is no precise (and stable across kernel changes) point at which the PASID_MSR is updated from the value for one task to the next. Kernel code that uses accelerators must always use the ENQCMDS instruction which does not access the PASID_MSR. Check for use of the ENQCMD instruction in the kernel and warn on its usage. Signed-off-by: Fenghua Yu <fenghua.yu@intel.com> Signed-off-by: Borislav Petkov <bp@suse.de> Reviewed-by: Tony Luck <tony.luck@intel.com> Acked-by: Josh Poimboeuf <jpoimboe@redhat.com> Link: https://lore.kernel.org/r/20220207230254.3342514-11-fenghua.yu@intel.com Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Diffstat (limited to 'arch/x86/lib')
0 files changed, 0 insertions, 0 deletions