mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* racing anon_vma_prepares
@ 2004-04-06 16:40 Hugh Dickins
  2004-04-06 17:05 ` Andrea Arcangeli
  0 siblings, 1 reply; 4+ messages in thread
From: Hugh Dickins @ 2004-04-06 16:40 UTC (permalink / raw)
  To: Andrea Arcangeli; +Cc: linux-kernel

Just noticed that you rely on mmap_sem to protect anon_vma_prepare:
but it doesn't, since concurrent faults can both down_read(&mmap_sem).
I think the anon_vma_alloc should be done where you have anon_vma_prepare,
but some kind of set_anon_vma under page_table_lock to set or free it.

Hugh


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-04-06 17:58 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-04-06 16:40 racing anon_vma_prepares Hugh Dickins
2004-04-06 17:05 ` Andrea Arcangeli
2004-04-06 17:28   ` Hugh Dickins
2004-04-06 17:58     ` Andrea Arcangeli

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®