Re: [PATCH 4/4] x86,module: Detect CRn and DRn manipulation

From: Nadav Amit
Date: Tue Apr 07 2020 - 14:55:39 EST


> On Apr 7, 2020, at 4:02 AM, Peter Zijlstra <peterz@xxxxxxxxxxxxx> wrote:
>
> Since we now have infrastructure to analyze module text, disallow
> modules that write to CRn and DRn registers.

Assuming the kernel is built without CONFIG_PARAVIRT, what is the right way
for out-of-tree modules to write to CRs? Letâs say CR2?