* expand_stack: small race
@ 2001-05-04 14:20 Manfred Spraul
0 siblings, 0 replies; only message in thread
From: Manfred Spraul @ 2001-05-04 14:20 UTC (permalink / raw)
To: linux-kernel
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2001-05-04 14:20 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-05-04 14:20 expand_stack: small race Manfred Spraul
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox