Re: preempt bug in set_pmd_pfn?

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Jeremy Fitzhardinge <jeremy@...>
Cc: Hugh Dickins <hugh@...>, H. Peter Anvin <hpa@...>, Andi Kleen <ak@...>, Linux Kernel Mailing List <linux-kernel@...>
Date: Thursday, March 6, 2008 - 8:52 am

* Jeremy Fitzhardinge <jeremy@goop.org> wrote:


actually, i think the correct approach is to remove the TLB flushing and 
perhaps to check that the old pte is not present. Do we ever _change_ 
mappings via __set_fixmap()? I think we only ever install them.

but if we ever change them somewhere then the correct approach is to do 
a flush_tlb_all(). It's not just about preemption but about the fact 
that we modified the kernel address space and we must propagate that to 
all CPUs.

the vmalloc() backtrace you sent - how did set_pte_pfn() get into that 
codepath - vmalloc shouldnt be using __set_fixmap().

	Ingo
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
preempt bug in set_pmd_pfn?, Jeremy Fitzhardinge, (Tue Mar 4, 5:13 pm)
Re: preempt bug in set_pmd_pfn?, Andi Kleen, (Tue Mar 4, 8:06 pm)
Re: preempt bug in set_pmd_pfn?, Jeremy Fitzhardinge, (Tue Mar 4, 8:07 pm)
Re: preempt bug in set_pmd_pfn?, Andi Kleen, (Tue Mar 4, 8:16 pm)
Re: preempt bug in set_pmd_pfn?, Jeremy Fitzhardinge, (Tue Mar 4, 8:19 pm)
Re: preempt bug in set_pmd_pfn?, Andi Kleen, (Tue Mar 4, 9:28 pm)
Re: preempt bug in set_pmd_pfn?, Ingo Molnar, (Tue Mar 4, 5:28 pm)
Re: preempt bug in set_pmd_pfn?, Jeremy Fitzhardinge, (Tue Mar 4, 5:27 pm)
Re: preempt bug in set_pmd_pfn?, Ingo Molnar, (Wed Mar 5, 2:48 am)
Re: preempt bug in set_pmd_pfn?, Jeremy Fitzhardinge, (Wed Mar 5, 12:45 pm)
Re: preempt bug in set_pmd_pfn?, Hugh Dickins, (Wed Mar 5, 10:29 am)
Re: preempt bug in set_pmd_pfn?, Jeremy Fitzhardinge, (Wed Mar 5, 12:48 pm)
Re: preempt bug in set_pmd_pfn?, Hugh Dickins, (Wed Mar 5, 1:38 pm)
Re: preempt bug in set_pmd_pfn?, Jeremy Fitzhardinge, (Wed Mar 5, 3:18 pm)
Re: preempt bug in set_pmd_pfn?, Ingo Molnar, (Thu Mar 6, 8:52 am)
Re: preempt bug in set_pmd_pfn?, Jeremy Fitzhardinge, (Thu Mar 6, 2:19 pm)
Re: preempt bug in set_pmd_pfn?, Hugh Dickins, (Wed Mar 5, 4:40 pm)