Re: [PATCH] x86/mm/mem_encrypt: Disable all instrumentation for SME early boot code

From: Borislav Petkov
Date: Fri Apr 26 2019 - 12:24:29 EST


On Fri, Apr 26, 2019 at 03:11:17PM +0000, Gary R Hook wrote:
> 2) Turn off instrumentation for lib/cmdline.c. The risk is that any
> changes to its code would not enjoy the benefits of KASAN/etc testing
> (if enabled).

What happened to Thomas' suggestion to turn off instrumentation for
those files only when CONFIG_AMD_MEM_ENCRYPT=y?

Which is a variant of 2) above with ifdeffery.

--
Regards/Gruss,
Boris.

Good mailing practices for 400: avoid top-posting and trim the reply.