racing anon_vma_prepares

From: Hugh Dickins
Date: Tue Apr 06 2004 - 11:50:26 EST


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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/