Re: [PATCH] x86/mm: Disable various instrumentations of mem_encrypt.c

2017-10-11 Thread Borislav Petkov
On Tue, Oct 10, 2017 at 02:45:04PM -0500, Tom Lendacky wrote: > Some routines in mem_encrypt.c are called very early in the boot process, > e.g. sme_enable(). When CONFIG_KCOV is defined the resulting code added > to sme_enable() (and others) for KCOV instrumentation results in a kernel > crash.

[PATCH] x86/mm: Disable various instrumentations of mem_encrypt.c

2017-10-10 Thread Tom Lendacky
Some routines in mem_encrypt.c are called very early in the boot process, e.g. sme_enable(). When CONFIG_KCOV is defined the resulting code added to sme_enable() (and others) for KCOV instrumentation results in a kernel crash. Disable the KCOV instrumentation for mem_encrypt.c by adding KCOV_INST