[lkml]   [1999]   [Jun]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Subjectmmap/MAP_SHARED and mandatory flock
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?


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:52    [W:0.021 / U:2.504 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site