Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1457189

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

From Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Newsgroups linux.kernel
Subject Re: [PATCH] x86/mm: disable preemption during CR3 read+write
Date 2016-08-05 18:00 +0200
Message-ID <s2PHr-12s-9@gated-at.bofh.it> (permalink)
References <s2NvX-89z-13@gated-at.bofh.it> <s2PxL-YZ-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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@kernel.org>

Sebastian

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH] x86/mm: disable preemption during CR3 read+write Sebastian Andrzej Siewior <bigeasy@linutronix.de> - 2016-08-05 15:40 +0200
  Re: [PATCH] x86/mm: disable preemption during CR3 read+write Peter Zijlstra <peterz@infradead.org> - 2016-08-05 16:00 +0200
  Re: [PATCH] x86/mm: disable preemption during CR3 read+write Rik van Riel <riel@redhat.com> - 2016-08-05 16:40 +0200
  Re: [PATCH] x86/mm: disable preemption during CR3 read+write Andy Lutomirski <luto@amacapital.net> - 2016-08-05 17:50 +0200
    Re: [PATCH] x86/mm: disable preemption during CR3 read+write Sebastian Andrzej Siewior <bigeasy@linutronix.de> - 2016-08-05 18:00 +0200
  [tip:x86/urgent] x86/mm: Disable preemption during CR3 read+write tip-bot for Sebastian Andrzej Siewior <tipbot@zytor.com> - 2016-08-10 23:00 +0200

csiph-web