Re: [PATCH v2 06/17] x86/ldt: Do not install LDT for kernel threads

2017-12-14 Thread Andy Lutomirski
On Thu, Dec 14, 2017 at 11:43 AM, Peter Zijlstra wrote: > On Thu, Dec 14, 2017 at 12:27:32PM +0100, Peter Zijlstra wrote: >> From: Thomas Gleixner >> >> Kernel threads can use the mm of a user process temporarily via use_mm(), >> but there is no point in installing the LDT which is associated to

Re: [PATCH v2 06/17] x86/ldt: Do not install LDT for kernel threads

2017-12-14 Thread Peter Zijlstra
On Thu, Dec 14, 2017 at 12:27:32PM +0100, Peter Zijlstra wrote: > From: Thomas Gleixner > > Kernel threads can use the mm of a user process temporarily via use_mm(), > but there is no point in installing the LDT which is associated to that mm > for the kernel thread. So thinking about this a bit

[PATCH v2 06/17] x86/ldt: Do not install LDT for kernel threads

2017-12-14 Thread Peter Zijlstra
From: Thomas Gleixner Kernel threads can use the mm of a user process temporarily via use_mm(), but there is no point in installing the LDT which is associated to that mm for the kernel thread. Signed-off-by: Thomas Gleixner --- arch/x86/include/asm/mmu_context.h |3 +-- 1 file changed, 1