expand_stack: small race

From: Manfred Spraul (manfred@colorfullife.com)
Date: Fri May 04 2001 - 09:20:20 EST


expand_stack is only protected with down_read(&mmap_sem), and thus 2
thread could grow a vma at the same time.

I think the spin_lock(&page_table_lock) should be moved up before the
calculation of grow.

And map_user_kiobuf() doesn't honor VM_LOCKED for VM_GROWSDOWN segments.
Probably it should be switched to find_extend_vma instead of the
do-it-yourself implementation.

--
	Manfred
-
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/



This archive was generated by hypermail 2b29 : Mon May 07 2001 - 21:00:20 EST