Messages in this thread | | | Date | Tue, 6 Apr 2004 17:40:50 +0100 (BST) | From | Hugh Dickins <> | Subject | racing anon_vma_prepares |
| |
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
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |