Re: [PATCH v2 10/20] x86: avoid W^X being broken during modules loading

From: Borislav Petkov
Date: Mon Feb 11 2019 - 14:01:36 EST

On Mon, Feb 11, 2019 at 10:45:26AM -0800, Nadav Amit wrote:
> Are you sure about that? This path is still used when modules are loaded.

Yes, I'm sure. Loading a module does a gazillion things so saving a
couple of insns - yes, boot_cpu_has() is usually a RIP-relative MOV and a
TEST - doesn't show even as a blip on any radar.


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