Re: [PATCH 12/23] x86, kaiser: map dynamically-allocated LDTs

2017-11-01 Thread Ingo Molnar
* Andy Lutomirski wrote: > On Tue, Oct 31, 2017 at 3:32 PM, Dave Hansen > wrote: > > > > Normally, a process just has a NULL mm->context.ldt. But, we > > have a syscall for a process to set a new one. If a process does > > that, we need to map the new LDT. > > > > The original KAISER patch mi

Re: [PATCH 12/23] x86, kaiser: map dynamically-allocated LDTs

2017-11-01 Thread Andy Lutomirski
On Tue, Oct 31, 2017 at 3:32 PM, Dave Hansen wrote: > > Normally, a process just has a NULL mm->context.ldt. But, we > have a syscall for a process to set a new one. If a process does > that, we need to map the new LDT. > > The original KAISER patch missed this case. Tglx suggested that we inst

[PATCH 12/23] x86, kaiser: map dynamically-allocated LDTs

2017-10-31 Thread Dave Hansen
Normally, a process just has a NULL mm->context.ldt. But, we have a syscall for a process to set a new one. If a process does that, we need to map the new LDT. The original KAISER patch missed this case. Signed-off-by: Dave Hansen Cc: Moritz Lipp Cc: Daniel Gruss Cc: Michael Schwarz Cc: An