linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* mmap/MAP_SHARED and mandatory flock
@ 1999-06-23 18:12 Kanoj Sarcar
  0 siblings, 0 replies; only message in thread
From: Kanoj Sarcar @ 1999-06-23 18:12 UTC (permalink / raw)
  To: linux-mm, linux-kernel

It seems to me that the mmap/MAP_SHARED locks_verify_locked() check
and fcntl_setlk() have no synchronization. For example, a process
invoking fcntl_setlk on a IS_MANDLOCK inode can check that it has
no i_mmap vma list, then go on and sleep later before queueing a
file_lock on the inode i_flock. Subsequently, an mmaper can come
in, invoke locks_verify_locked(), see no file_lock on the inode
i_flock, and succeed. The file locker can then wake up and also
return success.

Am I missing some synchronization lock/algorithm?

Kanoj
kanoj@engr.sgi.com
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://humbolt.geo.uu.nl/Linux-MM/

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1999-06-23 18:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-06-23 18:12 mmap/MAP_SHARED and mandatory flock Kanoj Sarcar

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