Re: [patch] mm: fix anon_vma races

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Nick Piggin
Date: Friday, October 17, 2008 - 10:49 pm

On Sat, Oct 18, 2008 at 01:50:57PM +1100, Paul Mackerras wrote:

I think it can be called transitive. Basically (assumememory starts off zeroed)
CPU0
x := 1

CPU1
if (x == 1) {
  fence
  y := 1
}

CPU2
if (y == 1) {
  fence
  assert(x == 1)
}


As opposed to pairwise, which only provides an ordering of visibility between
any given two CPUs (so the store to y might be propogated to CPU2 after the
store to x, regardless of the fences).

Apparently pairwise ordering is more interesting than just a theoretical
thing, and not just restricted to Alpha's funny caches. It can allow for
arbitrary network propogating stores / cache coherency between CPUs. x86's
publically documented memory model supposedly could allow for such ordering
up until a year or so ago (when they clarified and strengthened it).



The section on cumulative ordering sounds like it might do the trick. But
I haven't really worked through exactly what it is saying ;)

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

Messages in current thread:
Re: [patch] mm: fix anon_vma races, Hugh Dickins, (Fri Oct 17, 3:14 pm)
Re: [patch] mm: fix anon_vma races, Linus Torvalds, (Fri Oct 17, 4:05 pm)
Re: [patch] mm: fix anon_vma races, Hugh Dickins, (Fri Oct 17, 5:13 pm)
Re: [patch] mm: fix anon_vma races, Linus Torvalds, (Fri Oct 17, 5:25 pm)
Re: [patch] mm: fix anon_vma races, Nick Piggin, (Fri Oct 17, 6:53 pm)
Re: [patch] mm: fix anon_vma races, Paul Mackerras, (Fri Oct 17, 7:50 pm)
Re: [patch] mm: fix anon_vma races, Linus Torvalds, (Fri Oct 17, 7:57 pm)
Re: [patch] mm: fix anon_vma races, Nick Piggin, (Fri Oct 17, 10:49 pm)
Re: [patch] mm: fix anon_vma races, Paul Mackerras, (Sat Oct 18, 3:49 am)
Re: [patch] mm: fix anon_vma races, Linus Torvalds, (Sat Oct 18, 10:00 am)
Re: [patch] mm: fix anon_vma races, Matthew Wilcox, (Sat Oct 18, 11:44 am)
Re: [patch] mm: fix anon_vma races, Nick Piggin, (Sat Oct 18, 7:53 pm)
Re: [patch] mm: fix anon_vma races, Nick Piggin, (Sat Oct 18, 7:54 pm)