Re: [PATCH v2 13/17] x86/mm: Force LDT desc accessed bit

2017-12-14 Thread Andy Lutomirski
On Thu, Dec 14, 2017 at 3:27 AM, Peter Zijlstra wrote: > In preparation to mapping the LDT RO, unconditionally set the accessed > bit. I like this patch, but only as part of a standalone series to harden the kernel by making the LDT be RO so we can revert the series if needed. I don't like it as

[PATCH v2 13/17] x86/mm: Force LDT desc accessed bit

2017-12-14 Thread Peter Zijlstra
In preparation to mapping the LDT RO, unconditionally set the accessed bit. Signed-off-by: Peter Zijlstra (Intel) --- arch/x86/include/asm/desc.h |5 + arch/x86/kernel/tls.c | 11 ++- 2 files changed, 7 insertions(+), 9 deletions(-) --- a/arch/x86/include/asm/desc.h +++