Re: [patch 13/16] x86/ldt: Introduce LDT write fault handler

From: Peter Zijlstra
Date: Tue Dec 12 2017 - 17:26:12 EST


On Tue, Dec 12, 2017 at 10:41:03PM +0100, Thomas Gleixner wrote:
> Now that made me go back to the state of the patch series which made us
> make that magic 'touch' and write fault handler. The difference to the code
> today is that it did not prepopulate the user visible mapping.
>
> We added that later because we were worried about not being able to
> populate it in the #PF due to memory pressure without ripping out the magic
> cure again.
>
> But I did now and actually removing both the user exit magic 'touch' code
> and the write fault handler keeps it working.

Argh, had we really not tried that!? Bah.