Re: [patch 00/60] x86/kpti: Kernel Page Table Isolation (was KAISER)
From: Linus Torvalds
Date: Mon Dec 04 2017 - 13:28:35 EST
On Mon, Dec 4, 2017 at 10:18 AM, Thomas Gleixner <tglx@xxxxxxxxxxxxx> wrote:
>>
>> How much of this is considered worth trying to integrate early?
>
> Probably the entry changes, but we need to sort out that fixmap issue first
> and that affects the entry changes as well. Give me a day or two and I can
> tell you.
Sure. I've skimmed through the patches, and a number of the early ones
seem to be "obviously safe and independently nice cleanups". Even the
sysenter stack setup etc that isn't really required without the other
work seems sane and fine.
In fact, I have to say that the patches themselves look very good.
Nothing made me go "Christ, what an ugly hack". Maybe that is because
of just the skimming through, but still, it was not an unpleasant
read-through.
The problem, of course, is how *subtle* all the interactions are, and
how one missed "oh, the CPU also needs this" makes for some really
nasty breakage. So it may all look nice and clean, and then blow up
horribly in some very particular configuration.
And yes, paravirtualization is evil.
Linus