Re: [PATCH 3/3] x86/msr: Add an MSR write callback

From: Borislav Petkov
Date: Wed Jun 10 2020 - 09:21:54 EST


On Wed, Jun 10, 2020 at 02:32:26PM +0200, Peter Zijlstra wrote:
> We cache a whole bunch of MSRs in kernel. Why is this one special?

If the others need the post-write handling, they should be added there
too. I did it with this one only as a start.

> If you write using the stupid msr device, you get to keep all pieces.

Yes, the tainting-on-write is the next thing that goes ontop of this.

--
Regards/Gruss,
Boris.

https://people.kernel.org/tglx/notes-about-netiquette