WSL2-Linux-Kernel/tools/objtool
Fenghua Yu 6e3133d901 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
2022-02-15 11:31:43 +01:00
..
Documentation
arch/x86 tools/objtool: Check for use of the ENQCMD instruction in the kernel 2022-02-15 11:31:43 +01:00
include/objtool - Get rid of all the .fixup sections because this generates 2022-01-12 16:31:19 -08:00
.gitignore
Build
Makefile
builtin-check.c objtool: Add straight-line-speculation validation 2021-12-08 19:26:50 +01:00
builtin-orc.c
check.c objtool: Fix truncated string warning 2022-01-24 10:09:06 -08:00
elf.c objtool: Fix pv_ops noinstr validation 2021-12-03 09:11:42 +01:00
objtool.c objtool: Fix pv_ops noinstr validation 2021-12-03 09:11:42 +01:00
orc_dump.c
orc_gen.c
special.c
sync-check.sh
weak.c