Re: [patch 1/2] x86,module: Detect VMX modules and disable Split-Lock-Detect

From: Christoph Hellwig
Date: Mon Apr 06 2020 - 11:18:54 EST


On Mon, Apr 06, 2020 at 04:40:20PM +0200, Peter Zijlstra wrote:
> It is absolutely bonkers, but at the same time we can extend this
> infrastructure to scan for dubious code patterns we don't want to
> support. Like for instance direct manipulation of CR4.

But that is not what this code does - it disables split lock detection.
If it failed to load the module the whole thing would make a little
more sense.