Re: [PATCH] x86/mm: disable preemption during CR3 read+write

From: Sebastian Andrzej Siewior
Date: Fri Aug 05 2016 - 11:52:49 EST


On 08/05/2016 05:42 PM, Andy Lutomirski wrote:
>
> This should affect kernel threads too, right?

I don't think so because they don't have a MM in the first place so
they don't shouldn't need to flush a TLB. But then there is iounmap()
and vfree() for instance which does

vmap_debug_free_range()
{
if (debug_pagealloc_enabled()) {
vunmap_page_range(start, end);
flush_tlb_kernel_range(start, end);
}
}

so it looks like a candidate.

> Acked-by: Andy Lutomirski <luto@xxxxxxxxxx>

Sebastian